diff --git a/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels.pb.go b/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels.pb.go index 92962b40..a2ed24cf 100644 --- a/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels.pb.go +++ b/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels.pb.go @@ -123,20 +123,79 @@ func (ExpressionMode) EnumDescriptor() ([]byte, []int) { return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{1} } +type ExpressionChannelReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ChannelReference string `protobuf:"bytes,1,opt,name=channel_reference,json=channelReference,proto3" json:"channel_reference,omitempty"` + ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` +} + +func (x *ExpressionChannelReference) Reset() { + *x = ExpressionChannelReference{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExpressionChannelReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExpressionChannelReference) ProtoMessage() {} + +func (x *ExpressionChannelReference) ProtoReflect() protoreflect.Message { + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExpressionChannelReference.ProtoReflect.Descriptor instead. +func (*ExpressionChannelReference) Descriptor() ([]byte, []int) { + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{0} +} + +func (x *ExpressionChannelReference) GetChannelReference() string { + if x != nil { + return x.ChannelReference + } + return "" +} + +func (x *ExpressionChannelReference) GetChannelId() string { + if x != nil { + return x.ChannelId + } + return "" +} + type ExpressionRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid). - ChannelReferences map[string]string `protobuf:"bytes,1,rep,name=channel_references,json=channelReferences,proto3" json:"channel_references,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` + // This is deprecated and should be passed in expression_channel_references instead. + // + // Deprecated: Do not use. + ChannelReferences map[string]string `protobuf:"bytes,1,rep,name=channel_references,json=channelReferences,proto3" json:"channel_references,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` + ExpressionChannelReferences []*ExpressionChannelReference `protobuf:"bytes,3,rep,name=expression_channel_references,json=expressionChannelReferences,proto3" json:"expression_channel_references,omitempty"` } func (x *ExpressionRequest) Reset() { *x = ExpressionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[0] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -149,7 +208,7 @@ func (x *ExpressionRequest) String() string { func (*ExpressionRequest) ProtoMessage() {} func (x *ExpressionRequest) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[0] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -162,9 +221,10 @@ func (x *ExpressionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExpressionRequest.ProtoReflect.Descriptor instead. func (*ExpressionRequest) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{0} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{1} } +// Deprecated: Do not use. func (x *ExpressionRequest) GetChannelReferences() map[string]string { if x != nil { return x.ChannelReferences @@ -179,6 +239,13 @@ func (x *ExpressionRequest) GetExpression() string { return "" } +func (x *ExpressionRequest) GetExpressionChannelReferences() []*ExpressionChannelReference { + if x != nil { + return x.ExpressionChannelReferences + } + return nil +} + type ListExpressionIdentifiersRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -193,7 +260,7 @@ type ListExpressionIdentifiersRequest struct { func (x *ListExpressionIdentifiersRequest) Reset() { *x = ListExpressionIdentifiersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[1] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -206,7 +273,7 @@ func (x *ListExpressionIdentifiersRequest) String() string { func (*ListExpressionIdentifiersRequest) ProtoMessage() {} func (x *ListExpressionIdentifiersRequest) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[1] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -219,7 +286,7 @@ func (x *ListExpressionIdentifiersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListExpressionIdentifiersRequest.ProtoReflect.Descriptor instead. func (*ListExpressionIdentifiersRequest) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{1} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{2} } func (x *ListExpressionIdentifiersRequest) GetPageSize() uint32 { @@ -254,7 +321,7 @@ type ListExpressionIdentifiersResponse struct { func (x *ListExpressionIdentifiersResponse) Reset() { *x = ListExpressionIdentifiersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[2] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -267,7 +334,7 @@ func (x *ListExpressionIdentifiersResponse) String() string { func (*ListExpressionIdentifiersResponse) ProtoMessage() {} func (x *ListExpressionIdentifiersResponse) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[2] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -280,7 +347,7 @@ func (x *ListExpressionIdentifiersResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListExpressionIdentifiersResponse.ProtoReflect.Descriptor instead. func (*ListExpressionIdentifiersResponse) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{2} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{3} } func (x *ListExpressionIdentifiersResponse) GetIdentifiers() []*ExpressionIdentifier { @@ -304,7 +371,7 @@ type ExpressionIdentifier struct { func (x *ExpressionIdentifier) Reset() { *x = ExpressionIdentifier{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[3] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -317,7 +384,7 @@ func (x *ExpressionIdentifier) String() string { func (*ExpressionIdentifier) ProtoMessage() {} func (x *ExpressionIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[3] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -330,7 +397,7 @@ func (x *ExpressionIdentifier) ProtoReflect() protoreflect.Message { // Deprecated: Use ExpressionIdentifier.ProtoReflect.Descriptor instead. func (*ExpressionIdentifier) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{3} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{4} } func (x *ExpressionIdentifier) GetName() string { @@ -373,7 +440,7 @@ type ValidateExpressionRequest struct { func (x *ValidateExpressionRequest) Reset() { *x = ValidateExpressionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[4] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -386,7 +453,7 @@ func (x *ValidateExpressionRequest) String() string { func (*ValidateExpressionRequest) ProtoMessage() {} func (x *ValidateExpressionRequest) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[4] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -399,7 +466,7 @@ func (x *ValidateExpressionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateExpressionRequest.ProtoReflect.Descriptor instead. func (*ValidateExpressionRequest) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{4} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{5} } func (x *ValidateExpressionRequest) GetExpression() *ExpressionRequest { @@ -431,7 +498,7 @@ type ValidateExpressionResponse struct { func (x *ValidateExpressionResponse) Reset() { *x = ValidateExpressionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -444,7 +511,7 @@ func (x *ValidateExpressionResponse) String() string { func (*ValidateExpressionResponse) ProtoMessage() {} func (x *ValidateExpressionResponse) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -457,7 +524,7 @@ func (x *ValidateExpressionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ValidateExpressionResponse.ProtoReflect.Descriptor instead. func (*ValidateExpressionResponse) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{5} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{6} } func (m *ValidateExpressionResponse) GetResult() isValidateExpressionResponse_Result { @@ -508,7 +575,7 @@ type ErrorValidatingExpressionResult struct { func (x *ErrorValidatingExpressionResult) Reset() { *x = ErrorValidatingExpressionResult{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -521,7 +588,7 @@ func (x *ErrorValidatingExpressionResult) String() string { func (*ErrorValidatingExpressionResult) ProtoMessage() {} func (x *ErrorValidatingExpressionResult) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -534,7 +601,7 @@ func (x *ErrorValidatingExpressionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrorValidatingExpressionResult.ProtoReflect.Descriptor instead. func (*ErrorValidatingExpressionResult) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{6} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{7} } func (x *ErrorValidatingExpressionResult) GetErrorMessage() string { @@ -555,7 +622,7 @@ type SuccessValidatingExpressionResult struct { func (x *SuccessValidatingExpressionResult) Reset() { *x = SuccessValidatingExpressionResult{} if protoimpl.UnsafeEnabled { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[7] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -568,7 +635,7 @@ func (x *SuccessValidatingExpressionResult) String() string { func (*SuccessValidatingExpressionResult) ProtoMessage() {} func (x *SuccessValidatingExpressionResult) ProtoReflect() protoreflect.Message { - mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[7] + mi := &file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -581,7 +648,7 @@ func (x *SuccessValidatingExpressionResult) ProtoReflect() protoreflect.Message // Deprecated: Use SuccessValidatingExpressionResult.ProtoReflect.Descriptor instead. func (*SuccessValidatingExpressionResult) Descriptor() ([]byte, []int) { - return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{7} + return file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP(), []int{8} } func (x *SuccessValidatingExpressionResult) GetDataType() v1.ChannelDataType { @@ -609,18 +676,33 @@ var file_sift_calculated_channels_v1_calculated_channels_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xf9, 0x01, 0x0a, 0x11, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x79, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, + 0x22, 0x72, 0x0a, 0x1a, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x30, + 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x44, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x49, 0x64, 0x22, 0xf5, 0x02, 0x0a, 0x11, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x78, 0x0a, 0x12, 0x63, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x61, + 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x65, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x7b, 0x0a, 0x1d, 0x65, 0x78, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x37, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x1b, 0x65, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x1a, 0x44, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, @@ -802,40 +884,42 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_rawDescGZIP() [] } var file_sift_calculated_channels_v1_calculated_channels_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_sift_calculated_channels_v1_calculated_channels_proto_goTypes = []interface{}{ (ExpressionIdentifierType)(0), // 0: sift.calculated_channels.v1.ExpressionIdentifierType (ExpressionMode)(0), // 1: sift.calculated_channels.v1.ExpressionMode - (*ExpressionRequest)(nil), // 2: sift.calculated_channels.v1.ExpressionRequest - (*ListExpressionIdentifiersRequest)(nil), // 3: sift.calculated_channels.v1.ListExpressionIdentifiersRequest - (*ListExpressionIdentifiersResponse)(nil), // 4: sift.calculated_channels.v1.ListExpressionIdentifiersResponse - (*ExpressionIdentifier)(nil), // 5: sift.calculated_channels.v1.ExpressionIdentifier - (*ValidateExpressionRequest)(nil), // 6: sift.calculated_channels.v1.ValidateExpressionRequest - (*ValidateExpressionResponse)(nil), // 7: sift.calculated_channels.v1.ValidateExpressionResponse - (*ErrorValidatingExpressionResult)(nil), // 8: sift.calculated_channels.v1.ErrorValidatingExpressionResult - (*SuccessValidatingExpressionResult)(nil), // 9: sift.calculated_channels.v1.SuccessValidatingExpressionResult - nil, // 10: sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntry - (v1.ChannelDataType)(0), // 11: sift.common.type.v1.ChannelDataType + (*ExpressionChannelReference)(nil), // 2: sift.calculated_channels.v1.ExpressionChannelReference + (*ExpressionRequest)(nil), // 3: sift.calculated_channels.v1.ExpressionRequest + (*ListExpressionIdentifiersRequest)(nil), // 4: sift.calculated_channels.v1.ListExpressionIdentifiersRequest + (*ListExpressionIdentifiersResponse)(nil), // 5: sift.calculated_channels.v1.ListExpressionIdentifiersResponse + (*ExpressionIdentifier)(nil), // 6: sift.calculated_channels.v1.ExpressionIdentifier + (*ValidateExpressionRequest)(nil), // 7: sift.calculated_channels.v1.ValidateExpressionRequest + (*ValidateExpressionResponse)(nil), // 8: sift.calculated_channels.v1.ValidateExpressionResponse + (*ErrorValidatingExpressionResult)(nil), // 9: sift.calculated_channels.v1.ErrorValidatingExpressionResult + (*SuccessValidatingExpressionResult)(nil), // 10: sift.calculated_channels.v1.SuccessValidatingExpressionResult + nil, // 11: sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntry + (v1.ChannelDataType)(0), // 12: sift.common.type.v1.ChannelDataType } var file_sift_calculated_channels_v1_calculated_channels_proto_depIdxs = []int32{ - 10, // 0: sift.calculated_channels.v1.ExpressionRequest.channel_references:type_name -> sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntry - 1, // 1: sift.calculated_channels.v1.ListExpressionIdentifiersRequest.mode:type_name -> sift.calculated_channels.v1.ExpressionMode - 5, // 2: sift.calculated_channels.v1.ListExpressionIdentifiersResponse.identifiers:type_name -> sift.calculated_channels.v1.ExpressionIdentifier - 0, // 3: sift.calculated_channels.v1.ExpressionIdentifier.type:type_name -> sift.calculated_channels.v1.ExpressionIdentifierType - 2, // 4: sift.calculated_channels.v1.ValidateExpressionRequest.expression:type_name -> sift.calculated_channels.v1.ExpressionRequest - 1, // 5: sift.calculated_channels.v1.ValidateExpressionRequest.mode:type_name -> sift.calculated_channels.v1.ExpressionMode - 8, // 6: sift.calculated_channels.v1.ValidateExpressionResponse.error:type_name -> sift.calculated_channels.v1.ErrorValidatingExpressionResult - 9, // 7: sift.calculated_channels.v1.ValidateExpressionResponse.success:type_name -> sift.calculated_channels.v1.SuccessValidatingExpressionResult - 11, // 8: sift.calculated_channels.v1.SuccessValidatingExpressionResult.data_type:type_name -> sift.common.type.v1.ChannelDataType - 3, // 9: sift.calculated_channels.v1.CalculatedChannelsService.ListExpressionIdentifiers:input_type -> sift.calculated_channels.v1.ListExpressionIdentifiersRequest - 6, // 10: sift.calculated_channels.v1.CalculatedChannelsService.ValidateExpression:input_type -> sift.calculated_channels.v1.ValidateExpressionRequest - 4, // 11: sift.calculated_channels.v1.CalculatedChannelsService.ListExpressionIdentifiers:output_type -> sift.calculated_channels.v1.ListExpressionIdentifiersResponse - 7, // 12: sift.calculated_channels.v1.CalculatedChannelsService.ValidateExpression:output_type -> sift.calculated_channels.v1.ValidateExpressionResponse - 11, // [11:13] is the sub-list for method output_type - 9, // [9:11] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 11, // 0: sift.calculated_channels.v1.ExpressionRequest.channel_references:type_name -> sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntry + 2, // 1: sift.calculated_channels.v1.ExpressionRequest.expression_channel_references:type_name -> sift.calculated_channels.v1.ExpressionChannelReference + 1, // 2: sift.calculated_channels.v1.ListExpressionIdentifiersRequest.mode:type_name -> sift.calculated_channels.v1.ExpressionMode + 6, // 3: sift.calculated_channels.v1.ListExpressionIdentifiersResponse.identifiers:type_name -> sift.calculated_channels.v1.ExpressionIdentifier + 0, // 4: sift.calculated_channels.v1.ExpressionIdentifier.type:type_name -> sift.calculated_channels.v1.ExpressionIdentifierType + 3, // 5: sift.calculated_channels.v1.ValidateExpressionRequest.expression:type_name -> sift.calculated_channels.v1.ExpressionRequest + 1, // 6: sift.calculated_channels.v1.ValidateExpressionRequest.mode:type_name -> sift.calculated_channels.v1.ExpressionMode + 9, // 7: sift.calculated_channels.v1.ValidateExpressionResponse.error:type_name -> sift.calculated_channels.v1.ErrorValidatingExpressionResult + 10, // 8: sift.calculated_channels.v1.ValidateExpressionResponse.success:type_name -> sift.calculated_channels.v1.SuccessValidatingExpressionResult + 12, // 9: sift.calculated_channels.v1.SuccessValidatingExpressionResult.data_type:type_name -> sift.common.type.v1.ChannelDataType + 4, // 10: sift.calculated_channels.v1.CalculatedChannelsService.ListExpressionIdentifiers:input_type -> sift.calculated_channels.v1.ListExpressionIdentifiersRequest + 7, // 11: sift.calculated_channels.v1.CalculatedChannelsService.ValidateExpression:input_type -> sift.calculated_channels.v1.ValidateExpressionRequest + 5, // 12: sift.calculated_channels.v1.CalculatedChannelsService.ListExpressionIdentifiers:output_type -> sift.calculated_channels.v1.ListExpressionIdentifiersResponse + 8, // 13: sift.calculated_channels.v1.CalculatedChannelsService.ValidateExpression:output_type -> sift.calculated_channels.v1.ValidateExpressionResponse + 12, // [12:14] is the sub-list for method output_type + 10, // [10:12] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_sift_calculated_channels_v1_calculated_channels_proto_init() } @@ -845,7 +929,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } if !protoimpl.UnsafeEnabled { file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExpressionRequest); i { + switch v := v.(*ExpressionChannelReference); i { case 0: return &v.state case 1: @@ -857,7 +941,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListExpressionIdentifiersRequest); i { + switch v := v.(*ExpressionRequest); i { case 0: return &v.state case 1: @@ -869,7 +953,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListExpressionIdentifiersResponse); i { + switch v := v.(*ListExpressionIdentifiersRequest); i { case 0: return &v.state case 1: @@ -881,7 +965,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExpressionIdentifier); i { + switch v := v.(*ListExpressionIdentifiersResponse); i { case 0: return &v.state case 1: @@ -893,7 +977,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateExpressionRequest); i { + switch v := v.(*ExpressionIdentifier); i { case 0: return &v.state case 1: @@ -905,7 +989,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateExpressionResponse); i { + switch v := v.(*ValidateExpressionRequest); i { case 0: return &v.state case 1: @@ -917,7 +1001,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorValidatingExpressionResult); i { + switch v := v.(*ValidateExpressionResponse); i { case 0: return &v.state case 1: @@ -929,6 +1013,18 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorValidatingExpressionResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SuccessValidatingExpressionResult); i { case 0: return &v.state @@ -941,7 +1037,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { } } } - file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_sift_calculated_channels_v1_calculated_channels_proto_msgTypes[6].OneofWrappers = []interface{}{ (*ValidateExpressionResponse_Error)(nil), (*ValidateExpressionResponse_Success)(nil), } @@ -951,7 +1047,7 @@ func file_sift_calculated_channels_v1_calculated_channels_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sift_calculated_channels_v1_calculated_channels_proto_rawDesc, NumEnums: 2, - NumMessages: 9, + NumMessages: 10, NumExtensions: 0, NumServices: 1, }, diff --git a/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels_vtproto.pb.go b/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels_vtproto.pb.go index d856f68d..d281f675 100644 --- a/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels_vtproto.pb.go +++ b/go/gen/protos/go/sift/calculated_channels/v1/calculated_channels_vtproto.pb.go @@ -25,6 +25,24 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +func (m *ExpressionChannelReference) CloneVT() *ExpressionChannelReference { + if m == nil { + return (*ExpressionChannelReference)(nil) + } + r := new(ExpressionChannelReference) + r.ChannelReference = m.ChannelReference + r.ChannelId = m.ChannelId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ExpressionChannelReference) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *ExpressionRequest) CloneVT() *ExpressionRequest { if m == nil { return (*ExpressionRequest)(nil) @@ -38,6 +56,13 @@ func (m *ExpressionRequest) CloneVT() *ExpressionRequest { } r.ChannelReferences = tmpContainer } + if rhs := m.ExpressionChannelReferences; rhs != nil { + tmpContainer := make([]*ExpressionChannelReference, len(rhs)) + for k, v := range rhs { + tmpContainer[k] = v.CloneVT() + } + r.ExpressionChannelReferences = tmpContainer + } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) @@ -202,6 +227,28 @@ func (m *SuccessValidatingExpressionResult) CloneMessageVT() proto.Message { return m.CloneVT() } +func (this *ExpressionChannelReference) EqualVT(that *ExpressionChannelReference) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.ChannelReference != that.ChannelReference { + return false + } + if this.ChannelId != that.ChannelId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ExpressionChannelReference) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ExpressionChannelReference) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *ExpressionRequest) EqualVT(that *ExpressionRequest) bool { if this == that { return true @@ -223,6 +270,23 @@ func (this *ExpressionRequest) EqualVT(that *ExpressionRequest) bool { if this.Expression != that.Expression { return false } + if len(this.ExpressionChannelReferences) != len(that.ExpressionChannelReferences) { + return false + } + for i, vx := range this.ExpressionChannelReferences { + vy := that.ExpressionChannelReferences[i] + if p, q := vx, vy; p != q { + if p == nil { + p = &ExpressionChannelReference{} + } + if q == nil { + q = &ExpressionChannelReference{} + } + if !p.EqualVT(q) { + return false + } + } + } return string(this.unknownFields) == string(that.unknownFields) } @@ -590,6 +654,53 @@ var CalculatedChannelsService_ServiceDesc = grpc.ServiceDesc{ Metadata: "sift/calculated_channels/v1/calculated_channels.proto", } +func (m *ExpressionChannelReference) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExpressionChannelReference) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *ExpressionChannelReference) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelReference) > 0 { + i -= len(m.ChannelReference) + copy(dAtA[i:], m.ChannelReference) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelReference))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ExpressionRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -620,6 +731,18 @@ func (m *ExpressionRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ExpressionChannelReferences) > 0 { + for iNdEx := len(m.ExpressionChannelReferences) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ExpressionChannelReferences[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } if len(m.Expression) > 0 { i -= len(m.Expression) copy(dAtA[i:], m.Expression) @@ -1009,6 +1132,53 @@ func (m *SuccessValidatingExpressionResult) MarshalToSizedBufferVT(dAtA []byte) return len(dAtA) - i, nil } +func (m *ExpressionChannelReference) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExpressionChannelReference) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ExpressionChannelReference) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelReference) > 0 { + i -= len(m.ChannelReference) + copy(dAtA[i:], m.ChannelReference) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelReference))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *ExpressionRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -1039,6 +1209,18 @@ func (m *ExpressionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.ExpressionChannelReferences) > 0 { + for iNdEx := len(m.ExpressionChannelReferences) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.ExpressionChannelReferences[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + } if len(m.Expression) > 0 { i -= len(m.Expression) copy(dAtA[i:], m.Expression) @@ -1433,6 +1615,24 @@ func (m *SuccessValidatingExpressionResult) MarshalToSizedBufferVTStrict(dAtA [] return len(dAtA) - i, nil } +func (m *ExpressionChannelReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelReference) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ChannelId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + func (m *ExpressionRequest) SizeVT() (n int) { if m == nil { return 0 @@ -1451,6 +1651,12 @@ func (m *ExpressionRequest) SizeVT() (n int) { if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if len(m.ExpressionChannelReferences) > 0 { + for _, e := range m.ExpressionChannelReferences { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } @@ -1597,6 +1803,121 @@ func (m *SuccessValidatingExpressionResult) SizeVT() (n int) { return n } +func (m *ExpressionChannelReference) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExpressionChannelReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExpressionChannelReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelReference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelReference = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ExpressionRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1785,6 +2106,40 @@ func (m *ExpressionRequest) UnmarshalVT(dAtA []byte) error { } m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpressionChannelReferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExpressionChannelReferences = append(m.ExpressionChannelReferences, &ExpressionChannelReference{}) + if err := m.ExpressionChannelReferences[len(m.ExpressionChannelReferences)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -2571,6 +2926,129 @@ func (m *SuccessValidatingExpressionResult) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *ExpressionChannelReference) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExpressionChannelReference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExpressionChannelReference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelReference", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ChannelReference = stringValue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ChannelId = stringValue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ExpressionRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2771,6 +3249,40 @@ func (m *ExpressionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } m.Expression = stringValue iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExpressionChannelReferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExpressionChannelReferences = append(m.ExpressionChannelReferences, &ExpressionChannelReference{}) + if err := m.ExpressionChannelReferences[len(m.ExpressionChannelReferences)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) diff --git a/go/gen/protos/go/sift/ingestion_configs/v1/ingestion_configs.pb.go b/go/gen/protos/go/sift/ingestion_configs/v1/ingestion_configs.pb.go index 6d71cc7e..2449c3cc 100644 --- a/go/gen/protos/go/sift/ingestion_configs/v1/ingestion_configs.pb.go +++ b/go/gen/protos/go/sift/ingestion_configs/v1/ingestion_configs.pb.go @@ -702,7 +702,7 @@ type ListIngestionConfigFlowsRequest struct { // A [Common Expression Language (CEL)](https://github.com/google/cel-spec) filter string. // Available fields to filter by are `flow_name`, `flow_id`, `created_date`, and `modified_date`. // For further information about how to use CELs, please refer to [this guide](https://github.com/google/cel-spec/blob/master/doc/langdef.md#standard-definitions). - // For more information about the fields used for filtering, please refer to [this definition](/ingestion/api#sift_ingestion_configs_v1-proto). Optional. + // For more information about the fields used for filtering, please refer to [this definition](/protocol-buffers/documentation#ingestionconfig). Optional. Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` } diff --git a/go/gen/protos/go/sift/rules/v1/rules.pb.go b/go/gen/protos/go/sift/rules/v1/rules.pb.go index e15cc107..9206d887 100644 --- a/go/gen/protos/go/sift/rules/v1/rules.pb.go +++ b/go/gen/protos/go/sift/rules/v1/rules.pb.go @@ -1358,6 +1358,9 @@ func (*DeleteRuleResponse) Descriptor() ([]byte, []int) { return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{16} } +// Deprecated - use ViewJsonRulesRequest. +// +// Deprecated: Do not use. type ViewHumanFriendlyRulesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1405,6 +1408,9 @@ func (x *ViewHumanFriendlyRulesRequest) GetAssetId() string { return "" } +// Deprecated - use ViewJsonRulesResponse. +// +// Deprecated: Do not use. type ViewHumanFriendlyRulesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1452,6 +1458,9 @@ func (x *ViewHumanFriendlyRulesResponse) GetRulesJson() string { return "" } +// Deprecated - use UpdateJsonRulesRequest. +// +// Deprecated: Do not use. type UpdateHumanFriendlyRulesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1515,6 +1524,9 @@ func (x *UpdateHumanFriendlyRulesRequest) GetOrganizationId() string { return "" } +// Deprecated - use UpdateJsonRulesResponse. +// +// Deprecated: Do not use. type UpdateHumanFriendlyRulesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1578,6 +1590,438 @@ func (x *UpdateHumanFriendlyRulesResponse) GetMessages() string { return "" } +type ViewJsonRulesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` +} + +func (x *ViewJsonRulesRequest) Reset() { + *x = ViewJsonRulesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ViewJsonRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ViewJsonRulesRequest) ProtoMessage() {} + +func (x *ViewJsonRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ViewJsonRulesRequest.ProtoReflect.Descriptor instead. +func (*ViewJsonRulesRequest) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{21} +} + +func (x *ViewJsonRulesRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +type ViewJsonRulesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RulesJson string `protobuf:"bytes,1,opt,name=rules_json,json=rulesJson,proto3" json:"rules_json,omitempty"` +} + +func (x *ViewJsonRulesResponse) Reset() { + *x = ViewJsonRulesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ViewJsonRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ViewJsonRulesResponse) ProtoMessage() {} + +func (x *ViewJsonRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ViewJsonRulesResponse.ProtoReflect.Descriptor instead. +func (*ViewJsonRulesResponse) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{22} +} + +func (x *ViewJsonRulesResponse) GetRulesJson() string { + if x != nil { + return x.RulesJson + } + return "" +} + +type JsonRulesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + RulesJson string `protobuf:"bytes,2,opt,name=rules_json,json=rulesJson,proto3" json:"rules_json,omitempty"` + OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` +} + +func (x *JsonRulesRequest) Reset() { + *x = JsonRulesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JsonRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JsonRulesRequest) ProtoMessage() {} + +func (x *JsonRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JsonRulesRequest.ProtoReflect.Descriptor instead. +func (*JsonRulesRequest) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{23} +} + +func (x *JsonRulesRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *JsonRulesRequest) GetRulesJson() string { + if x != nil { + return x.RulesJson + } + return "" +} + +func (x *JsonRulesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type JsonRulesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` + TotalRulesCount int32 `protobuf:"varint,2,opt,name=total_rules_count,json=totalRulesCount,proto3" json:"total_rules_count,omitempty"` + RulesCreatedCount int32 `protobuf:"varint,3,opt,name=rules_created_count,json=rulesCreatedCount,proto3" json:"rules_created_count,omitempty"` + RulesUpdatedCount int32 `protobuf:"varint,4,opt,name=rules_updated_count,json=rulesUpdatedCount,proto3" json:"rules_updated_count,omitempty"` + RulesDeletedCount int32 `protobuf:"varint,5,opt,name=rules_deleted_count,json=rulesDeletedCount,proto3" json:"rules_deleted_count,omitempty"` + ErrorMessages *string `protobuf:"bytes,6,opt,name=error_messages,json=errorMessages,proto3,oneof" json:"error_messages,omitempty"` +} + +func (x *JsonRulesResponse) Reset() { + *x = JsonRulesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JsonRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JsonRulesResponse) ProtoMessage() {} + +func (x *JsonRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JsonRulesResponse.ProtoReflect.Descriptor instead. +func (*JsonRulesResponse) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{24} +} + +func (x *JsonRulesResponse) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +func (x *JsonRulesResponse) GetTotalRulesCount() int32 { + if x != nil { + return x.TotalRulesCount + } + return 0 +} + +func (x *JsonRulesResponse) GetRulesCreatedCount() int32 { + if x != nil { + return x.RulesCreatedCount + } + return 0 +} + +func (x *JsonRulesResponse) GetRulesUpdatedCount() int32 { + if x != nil { + return x.RulesUpdatedCount + } + return 0 +} + +func (x *JsonRulesResponse) GetRulesDeletedCount() int32 { + if x != nil { + return x.RulesDeletedCount + } + return 0 +} + +func (x *JsonRulesResponse) GetErrorMessages() string { + if x != nil && x.ErrorMessages != nil { + return *x.ErrorMessages + } + return "" +} + +type ValidateJsonRulesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Request *JsonRulesRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` +} + +func (x *ValidateJsonRulesRequest) Reset() { + *x = ValidateJsonRulesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateJsonRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateJsonRulesRequest) ProtoMessage() {} + +func (x *ValidateJsonRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateJsonRulesRequest.ProtoReflect.Descriptor instead. +func (*ValidateJsonRulesRequest) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{25} +} + +func (x *ValidateJsonRulesRequest) GetRequest() *JsonRulesRequest { + if x != nil { + return x.Request + } + return nil +} + +type ValidateJsonRulesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Response *JsonRulesResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` +} + +func (x *ValidateJsonRulesResponse) Reset() { + *x = ValidateJsonRulesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateJsonRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateJsonRulesResponse) ProtoMessage() {} + +func (x *ValidateJsonRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateJsonRulesResponse.ProtoReflect.Descriptor instead. +func (*ValidateJsonRulesResponse) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{26} +} + +func (x *ValidateJsonRulesResponse) GetResponse() *JsonRulesResponse { + if x != nil { + return x.Response + } + return nil +} + +type UpdateJsonRulesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Request *JsonRulesRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` +} + +func (x *UpdateJsonRulesRequest) Reset() { + *x = UpdateJsonRulesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateJsonRulesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateJsonRulesRequest) ProtoMessage() {} + +func (x *UpdateJsonRulesRequest) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateJsonRulesRequest.ProtoReflect.Descriptor instead. +func (*UpdateJsonRulesRequest) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{27} +} + +func (x *UpdateJsonRulesRequest) GetRequest() *JsonRulesRequest { + if x != nil { + return x.Request + } + return nil +} + +type UpdateJsonRulesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Response *JsonRulesResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` +} + +func (x *UpdateJsonRulesResponse) Reset() { + *x = UpdateJsonRulesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_sift_rules_v1_rules_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateJsonRulesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateJsonRulesResponse) ProtoMessage() {} + +func (x *UpdateJsonRulesResponse) ProtoReflect() protoreflect.Message { + mi := &file_sift_rules_v1_rules_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateJsonRulesResponse.ProtoReflect.Descriptor instead. +func (*UpdateJsonRulesResponse) Descriptor() ([]byte, []int) { + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{28} +} + +func (x *UpdateJsonRulesResponse) GetResponse() *JsonRulesResponse { + if x != nil { + return x.Response + } + return nil +} + type RuleConditionExpression struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1593,7 +2037,7 @@ type RuleConditionExpression struct { func (x *RuleConditionExpression) Reset() { *x = RuleConditionExpression{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[21] + mi := &file_sift_rules_v1_rules_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1606,7 +2050,7 @@ func (x *RuleConditionExpression) String() string { func (*RuleConditionExpression) ProtoMessage() {} func (x *RuleConditionExpression) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[21] + mi := &file_sift_rules_v1_rules_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1619,7 +2063,7 @@ func (x *RuleConditionExpression) ProtoReflect() protoreflect.Message { // Deprecated: Use RuleConditionExpression.ProtoReflect.Descriptor instead. func (*RuleConditionExpression) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{21} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{29} } func (m *RuleConditionExpression) GetExpression() isRuleConditionExpression_Expression { @@ -1680,7 +2124,7 @@ type SingleChannelComparisonExpression struct { func (x *SingleChannelComparisonExpression) Reset() { *x = SingleChannelComparisonExpression{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[22] + mi := &file_sift_rules_v1_rules_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1693,7 +2137,7 @@ func (x *SingleChannelComparisonExpression) String() string { func (*SingleChannelComparisonExpression) ProtoMessage() {} func (x *SingleChannelComparisonExpression) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[22] + mi := &file_sift_rules_v1_rules_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1706,7 +2150,7 @@ func (x *SingleChannelComparisonExpression) ProtoReflect() protoreflect.Message // Deprecated: Use SingleChannelComparisonExpression.ProtoReflect.Descriptor instead. func (*SingleChannelComparisonExpression) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{22} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{30} } func (x *SingleChannelComparisonExpression) GetChannelComponent() string { @@ -1789,7 +2233,7 @@ type LastValueThreshold struct { func (x *LastValueThreshold) Reset() { *x = LastValueThreshold{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[23] + mi := &file_sift_rules_v1_rules_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1802,7 +2246,7 @@ func (x *LastValueThreshold) String() string { func (*LastValueThreshold) ProtoMessage() {} func (x *LastValueThreshold) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[23] + mi := &file_sift_rules_v1_rules_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1815,7 +2259,7 @@ func (x *LastValueThreshold) ProtoReflect() protoreflect.Message { // Deprecated: Use LastValueThreshold.ProtoReflect.Descriptor instead. func (*LastValueThreshold) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{23} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{31} } type CalculatedChannelConfig struct { @@ -1830,7 +2274,7 @@ type CalculatedChannelConfig struct { func (x *CalculatedChannelConfig) Reset() { *x = CalculatedChannelConfig{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[24] + mi := &file_sift_rules_v1_rules_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1843,7 +2287,7 @@ func (x *CalculatedChannelConfig) String() string { func (*CalculatedChannelConfig) ProtoMessage() {} func (x *CalculatedChannelConfig) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[24] + mi := &file_sift_rules_v1_rules_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1856,7 +2300,7 @@ func (x *CalculatedChannelConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use CalculatedChannelConfig.ProtoReflect.Descriptor instead. func (*CalculatedChannelConfig) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{24} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{32} } func (x *CalculatedChannelConfig) GetChannelReferences() map[string]*ChannelReference { @@ -1885,7 +2329,7 @@ type ChannelReference struct { func (x *ChannelReference) Reset() { *x = ChannelReference{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[25] + mi := &file_sift_rules_v1_rules_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1898,7 +2342,7 @@ func (x *ChannelReference) String() string { func (*ChannelReference) ProtoMessage() {} func (x *ChannelReference) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[25] + mi := &file_sift_rules_v1_rules_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1911,7 +2355,7 @@ func (x *ChannelReference) ProtoReflect() protoreflect.Message { // Deprecated: Use ChannelReference.ProtoReflect.Descriptor instead. func (*ChannelReference) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{25} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{33} } func (x *ChannelReference) GetName() string { @@ -1943,7 +2387,7 @@ type RuleActionConfiguration struct { func (x *RuleActionConfiguration) Reset() { *x = RuleActionConfiguration{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[26] + mi := &file_sift_rules_v1_rules_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1956,7 +2400,7 @@ func (x *RuleActionConfiguration) String() string { func (*RuleActionConfiguration) ProtoMessage() {} func (x *RuleActionConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[26] + mi := &file_sift_rules_v1_rules_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1969,7 +2413,7 @@ func (x *RuleActionConfiguration) ProtoReflect() protoreflect.Message { // Deprecated: Use RuleActionConfiguration.ProtoReflect.Descriptor instead. func (*RuleActionConfiguration) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{26} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{34} } func (m *RuleActionConfiguration) GetConfiguration() isRuleActionConfiguration_Configuration { @@ -2020,7 +2464,7 @@ type NotificationActionConfiguration struct { func (x *NotificationActionConfiguration) Reset() { *x = NotificationActionConfiguration{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[27] + mi := &file_sift_rules_v1_rules_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2033,7 +2477,7 @@ func (x *NotificationActionConfiguration) String() string { func (*NotificationActionConfiguration) ProtoMessage() {} func (x *NotificationActionConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[27] + mi := &file_sift_rules_v1_rules_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2046,7 +2490,7 @@ func (x *NotificationActionConfiguration) ProtoReflect() protoreflect.Message { // Deprecated: Use NotificationActionConfiguration.ProtoReflect.Descriptor instead. func (*NotificationActionConfiguration) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{27} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{35} } func (x *NotificationActionConfiguration) GetRecipientUserIds() []string { @@ -2069,7 +2513,7 @@ type AnnotationActionConfiguration struct { func (x *AnnotationActionConfiguration) Reset() { *x = AnnotationActionConfiguration{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[28] + mi := &file_sift_rules_v1_rules_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2082,7 +2526,7 @@ func (x *AnnotationActionConfiguration) String() string { func (*AnnotationActionConfiguration) ProtoMessage() {} func (x *AnnotationActionConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[28] + mi := &file_sift_rules_v1_rules_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2095,7 +2539,7 @@ func (x *AnnotationActionConfiguration) ProtoReflect() protoreflect.Message { // Deprecated: Use AnnotationActionConfiguration.ProtoReflect.Descriptor instead. func (*AnnotationActionConfiguration) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{28} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{36} } func (x *AnnotationActionConfiguration) GetTagIds() []string { @@ -2136,7 +2580,7 @@ type EvaluateRulesRequest struct { func (x *EvaluateRulesRequest) Reset() { *x = EvaluateRulesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[29] + mi := &file_sift_rules_v1_rules_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2149,7 +2593,7 @@ func (x *EvaluateRulesRequest) String() string { func (*EvaluateRulesRequest) ProtoMessage() {} func (x *EvaluateRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[29] + mi := &file_sift_rules_v1_rules_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2162,7 +2606,7 @@ func (x *EvaluateRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EvaluateRulesRequest.ProtoReflect.Descriptor instead. func (*EvaluateRulesRequest) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{29} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{37} } func (x *EvaluateRulesRequest) GetRuleIds() []string { @@ -2227,7 +2671,7 @@ type EvaluatedAnnotationOptions struct { func (x *EvaluatedAnnotationOptions) Reset() { *x = EvaluatedAnnotationOptions{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[30] + mi := &file_sift_rules_v1_rules_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2240,7 +2684,7 @@ func (x *EvaluatedAnnotationOptions) String() string { func (*EvaluatedAnnotationOptions) ProtoMessage() {} func (x *EvaluatedAnnotationOptions) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[30] + mi := &file_sift_rules_v1_rules_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2253,7 +2697,7 @@ func (x *EvaluatedAnnotationOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use EvaluatedAnnotationOptions.ProtoReflect.Descriptor instead. func (*EvaluatedAnnotationOptions) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{30} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{38} } func (x *EvaluatedAnnotationOptions) GetTagIds() []string { @@ -2275,7 +2719,7 @@ type TimeRangeQuery struct { func (x *TimeRangeQuery) Reset() { *x = TimeRangeQuery{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[31] + mi := &file_sift_rules_v1_rules_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2288,7 +2732,7 @@ func (x *TimeRangeQuery) String() string { func (*TimeRangeQuery) ProtoMessage() {} func (x *TimeRangeQuery) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[31] + mi := &file_sift_rules_v1_rules_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2301,7 +2745,7 @@ func (x *TimeRangeQuery) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeRangeQuery.ProtoReflect.Descriptor instead. func (*TimeRangeQuery) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{31} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{39} } func (x *TimeRangeQuery) GetStartTime() *timestamppb.Timestamp { @@ -2329,7 +2773,7 @@ type EvaluateRulesResponse struct { func (x *EvaluateRulesResponse) Reset() { *x = EvaluateRulesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_sift_rules_v1_rules_proto_msgTypes[32] + mi := &file_sift_rules_v1_rules_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2342,7 +2786,7 @@ func (x *EvaluateRulesResponse) String() string { func (*EvaluateRulesResponse) ProtoMessage() {} func (x *EvaluateRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_sift_rules_v1_rules_proto_msgTypes[32] + mi := &file_sift_rules_v1_rules_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2355,7 +2799,7 @@ func (x *EvaluateRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use EvaluateRulesResponse.ProtoReflect.Descriptor instead. func (*EvaluateRulesResponse) Descriptor() ([]byte, []int) { - return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{32} + return file_sift_rules_v1_rules_proto_rawDescGZIP(), []int{40} } func (x *EvaluateRulesResponse) GetCreatedAnnotationCount() int32 { @@ -2590,277 +3034,351 @@ var file_sift_rules_v1_rules_proto_rawDesc = []byte{ 0x12, 0x1c, 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x0a, 0x1d, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x0a, 0x1d, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x1e, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, - 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x1f, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, - 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1e, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x22, 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, - 0x73, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x0f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x22, 0x88, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, - 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0xf0, 0x01, 0x0a, - 0x17, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x19, 0x73, 0x69, 0x6e, 0x67, - 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x73, 0x69, - 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, - 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, - 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x17, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, - 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x12, 0x63, 0x61, 0x6c, 0x63, - 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x43, - 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x11, - 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0xcb, 0x02, 0x0a, 0x21, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x47, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, - 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x6f, 0x75, 0x62, - 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x06, 0x64, 0x6f, 0x75, 0x62, - 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0a, - 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x6f, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x0b, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x14, 0x0a, - 0x12, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x6f, 0x6c, 0x64, 0x22, 0x98, 0x02, 0x0a, 0x17, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, - 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x71, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x73, 0x69, - 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x63, + 0x73, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x48, 0x0a, 0x1e, 0x56, 0x69, 0x65, + 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x3a, + 0x02, 0x18, 0x01, 0x22, 0x97, 0x01, 0x0a, 0x1f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, + 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, + 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x0f, 0x6f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x8c, 0x01, + 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x72, 0x75, 0x6c, + 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x36, 0x0a, 0x14, + 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x15, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, + 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, + 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, + 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x09, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x2c, 0x0a, 0x0f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc1, 0x02, 0x0a, 0x11, 0x4a, 0x73, 0x6f, + 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, + 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, + 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x2f, 0x0a, + 0x11, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x33, + 0x0a, 0x13, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x11, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x13, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x13, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, + 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x18, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, + 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x5c, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xf0, 0x01, 0x0a, 0x17, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, 0x19, + 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x63, + 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x30, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, + 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x48, 0x00, 0x52, 0x17, 0x73, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x12, 0x57, 0x0a, 0x12, + 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, + 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x48, 0x00, 0x52, 0x11, 0x63, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x43, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x0c, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x02, 0x0a, 0x21, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x45, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x11, 0x63, 0x68, 0x61, + 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, + 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x06, + 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x06, + 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x12, 0x42, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x22, 0x14, 0x0a, 0x12, 0x4c, 0x61, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0x98, 0x02, 0x0a, 0x17, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x65, 0x78, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x65, 0x0a, 0x16, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4e, - 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x09, 0x63, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x22, 0xd0, - 0x01, 0x0a, 0x17, 0x52, 0x75, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, 0x0a, 0x0c, 0x6e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x4e, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x42, 0x0f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x54, 0x0a, 0x1f, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x66, 0x69, 0x67, 0x12, 0x71, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, + 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x65, 0x0a, 0x16, 0x43, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x4e, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x21, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x22, 0xd0, 0x01, 0x0a, 0x17, 0x52, 0x75, 0x6c, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x54, + 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, - 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x1d, 0x41, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x61, 0x67, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x06, 0x74, 0x61, 0x67, 0x49, 0x64, 0x73, 0x12, 0x4c, 0x0a, 0x0f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x13, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x6f, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x72, 0x75, - 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x58, 0x0a, 0x12, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, - 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, 0x64, 0x12, 0x3e, 0x0a, - 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x48, 0x00, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x06, 0x0a, - 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x35, 0x0a, 0x1a, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x67, 0x49, 0x64, 0x73, 0x22, 0x82, 0x01, 0x0a, - 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, - 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, - 0x65, 0x22, 0x51, 0x0a, 0x15, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x5c, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4f, 0x52, - 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, - 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x53, 0x43, - 0x10, 0x02, 0x2a, 0x4f, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x69, 0x6e, 0x64, - 0x12, 0x1f, 0x0a, 0x17, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x02, 0x08, - 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x10, 0x02, 0x2a, 0xad, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x0a, 0x20, 0x43, - 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x52, 0x41, - 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, - 0x41, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, - 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, - 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x19, - 0x0a, 0x15, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, - 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x51, 0x55, - 0x41, 0x4c, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, - 0x4c, 0x10, 0x06, 0x32, 0xdc, 0x0e, 0x0a, 0x0b, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0xb9, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, - 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x92, 0x41, 0x41, 0x12, - 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x32, 0x51, 0x75, - 0x65, 0x72, 0x69, 0x65, 0x73, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x62, 0x61, 0x73, 0x65, - 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x73, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, - 0x7f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1d, 0x2e, 0x73, 0x69, 0x66, - 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, - 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x69, 0x66, 0x74, - 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x92, 0x41, 0x1d, 0x12, 0x08, - 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x11, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, - 0x76, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x0f, 0x12, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, - 0x65, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x92, - 0x41, 0x2a, 0x12, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x1a, 0x19, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x8b, 0x01, - 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x73, - 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, - 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x38, 0x92, 0x41, 0x1d, 0x12, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, - 0x6c, 0x65, 0x1a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x75, - 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, 0x22, 0x0d, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0a, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x73, 0x69, 0x66, - 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, - 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x42, 0x92, 0x41, 0x27, 0x12, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, - 0x1a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x12, 0x3a, 0x01, 0x2a, 0x1a, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, - 0x6c, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, - 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x92, 0x41, 0x1d, 0x12, 0x0a, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x73, 0x20, 0x61, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, - 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xdb, 0x01, 0x0a, 0x0d, 0x45, 0x76, 0x61, - 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x1f, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x69, + 0x70, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x1d, + 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, + 0x07, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, + 0xe0, 0x41, 0x02, 0x52, 0x06, 0x74, 0x61, 0x67, 0x49, 0x64, 0x73, 0x12, 0x4c, 0x0a, 0x0f, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x13, 0x61, 0x73, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x54, 0x6f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, + 0x14, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0xf1, 0x01, 0x0a, 0x14, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, + 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, + 0x0a, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x58, + 0x0a, 0x12, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x92, 0x41, 0x5b, 0x12, 0x0d, 0x45, 0x76, 0x61, 0x6c, - 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x4a, 0x45, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x64, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x20, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x65, 0x76, - 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x12, 0x81, 0x02, 0x0a, 0x16, 0x56, 0x69, 0x65, 0x77, 0x48, - 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, - 0x73, 0x12, 0x2c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, - 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, - 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x89, - 0x01, 0x92, 0x41, 0x5f, 0x12, 0x16, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, - 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x45, 0x52, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x6f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, - 0x61, 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x76, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, - 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x12, 0x91, 0x02, 0x0a, 0x18, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, - 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, - 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, - 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x93, 0x01, 0x92, 0x41, 0x64, 0x12, 0x18, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x11, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x49, + 0x64, 0x12, 0x3e, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x35, 0x0a, 0x1a, 0x45, 0x76, 0x61, + 0x6c, 0x75, 0x61, 0x74, 0x65, 0x64, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x67, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x67, 0x49, 0x64, 0x73, + 0x22, 0x82, 0x01, 0x0a, 0x0e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x51, 0x0a, 0x15, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, + 0x0a, 0x18, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x5c, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, 0x43, + 0x48, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x41, + 0x52, 0x43, 0x48, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x43, 0x10, 0x01, 0x12, + 0x15, 0x0a, 0x11, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x5f, 0x4f, 0x52, 0x44, 0x45, 0x52, 0x5f, + 0x44, 0x45, 0x53, 0x43, 0x10, 0x02, 0x2a, 0x4f, 0x0a, 0x0a, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x17, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4b, + 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x54, 0x49, 0x46, 0x49, 0x43, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4e, 0x4e, 0x4f, 0x54, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x2a, 0xad, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x28, 0x0a, 0x20, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, + 0x50, 0x41, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4c, 0x45, 0x53, + 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x4c, 0x45, 0x53, 0x53, + 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x02, + 0x12, 0x10, 0x0a, 0x0c, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, + 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, + 0x41, 0x4e, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x04, 0x12, 0x09, 0x0a, + 0x05, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x05, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, + 0x45, 0x51, 0x55, 0x41, 0x4c, 0x10, 0x06, 0x32, 0x9f, 0x14, 0x0a, 0x0b, 0x52, 0x75, 0x6c, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb9, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x69, 0x66, + 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, + 0x92, 0x41, 0x41, 0x12, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x1a, 0x32, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, + 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x64, 0x20, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x20, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x73, 0x65, 0x61, + 0x72, 0x63, 0x68, 0x12, 0x7f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x1d, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x92, + 0x41, 0x1d, 0x12, 0x08, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x11, 0x52, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x12, 0xaa, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, + 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x69, + 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, + 0x68, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x4e, 0x92, 0x41, 0x2a, 0x12, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x19, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, + 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, + 0x74, 0x12, 0x8b, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, + 0x12, 0x20, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x92, 0x41, 0x1d, 0x12, 0x0a, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, + 0x61, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, + 0x22, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, + 0x95, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x42, 0x92, 0x41, 0x27, 0x12, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x6e, + 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, 0x1a, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x92, 0x41, 0x1d, + 0x12, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x1a, 0x0f, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xdb, 0x01, 0x0a, + 0x0d, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x23, + 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x92, 0x41, 0x5b, 0x12, 0x0d, + 0x45, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x4a, 0x45, + 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x64, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x62, 0x61, 0x73, 0x65, 0x64, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x3a, + 0x01, 0x2a, 0x22, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x65, 0x12, 0x84, 0x02, 0x0a, 0x16, 0x56, + 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, + 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, + 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x8c, 0x01, 0x88, 0x02, 0x01, 0x92, 0x41, 0x5f, 0x12, 0x16, 0x56, 0x69, 0x65, + 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x1a, 0x45, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, + 0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x67, 0x69, + 0x76, 0x65, 0x6e, 0x20, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, + 0x12, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, + 0x76, 0x69, 0x65, 0x77, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, + 0x79, 0x12, 0xd3, 0x01, 0x0a, 0x0d, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, + 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, + 0x92, 0x41, 0x56, 0x12, 0x0d, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, + 0x65, 0x73, 0x1a, 0x45, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x4a, + 0x53, 0x4f, 0x4e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x67, 0x69, 0x76, + 0x65, 0x6e, 0x20, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, + 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x76, + 0x69, 0x65, 0x77, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x94, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, + 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, + 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, 0x88, 0x02, 0x01, 0x92, 0x41, 0x64, 0x12, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x48, 0x42, 0x61, 0x74, 0x63, 0x68, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x67, 0x69, 0x76, @@ -2869,32 +3387,62 @@ var file_sift_rules_v1_rules_proto_rawDesc = []byte{ 0x53, 0x4f, 0x4e, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x1a, 0xb1, - 0x01, 0x92, 0x41, 0xad, 0x01, 0x12, 0x30, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, - 0x6f, 0x20, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x6c, 0x79, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, - 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x1a, 0x79, 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x64, 0x20, - 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20, 0x77, 0x68, 0x61, 0x74, 0x20, - 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, 0x2e, 0x12, 0x56, 0x68, 0x74, 0x74, 0x70, - 0x73, 0x3a, 0x2f, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x2e, 0x73, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x65, 0x73, 0x6b, 0x2f, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x2f, 0x32, - 0x2f, 0x61, 0x72, 0x74, 0x69, 0x63, 0x6c, 0x65, 0x2f, 0x32, 0x36, 0x35, 0x34, 0x32, 0x31, 0x31, - 0x30, 0x32, 0x42, 0xcb, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, - 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2d, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x69, - 0x66, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, - 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x76, - 0x31, 0x3b, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x52, 0x58, 0xaa, - 0x02, 0x0d, 0x53, 0x69, 0x66, 0x74, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x0d, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x19, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x53, 0x69, - 0x66, 0x74, 0x3a, 0x3a, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x92, 0x41, 0x10, - 0x12, 0x0e, 0x0a, 0x0c, 0x52, 0x75, 0x6c, 0x65, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x6c, 0x79, 0x12, 0xfd, + 0x01, 0x0a, 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, + 0x75, 0x6c, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, + 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, + 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x92, 0x41, 0x6c, 0x12, 0x11, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x1a, 0x57, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x72, + 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x60, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, + 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x4a, 0x53, 0x4f, 0x4e, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, + 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x3a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0xe4, + 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, + 0x65, 0x73, 0x12, 0x25, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4a, 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x81, 0x01, 0x92, 0x41, 0x5b, 0x12, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4a, + 0x73, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x48, 0x42, 0x61, 0x74, 0x63, 0x68, 0x20, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x67, 0x69, 0x76, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x60, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x5f, 0x6a, 0x73, + 0x6f, 0x6e, 0x60, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x4a, + 0x53, 0x4f, 0x4e, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x1a, 0xb1, 0x01, 0x92, 0x41, 0xad, 0x01, 0x12, 0x30, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x74, 0x6f, 0x20, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, + 0x6d, 0x61, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x6c, 0x79, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, + 0x63, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x1a, 0x79, + 0x0a, 0x1f, 0x52, 0x65, 0x61, 0x64, 0x20, 0x6d, 0x6f, 0x72, 0x65, 0x20, 0x61, 0x62, 0x6f, 0x75, + 0x74, 0x20, 0x77, 0x68, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x20, 0x61, 0x72, 0x65, + 0x2e, 0x12, 0x56, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x65, 0x72, 0x2e, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x73, 0x69, 0x66, 0x74, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x64, 0x65, 0x73, 0x6b, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x2f, 0x70, + 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x2f, 0x32, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x63, 0x6c, 0x65, 0x2f, + 0x32, 0x36, 0x35, 0x34, 0x32, 0x31, 0x31, 0x30, 0x32, 0x42, 0xcb, 0x01, 0x0a, 0x11, 0x63, 0x6f, + 0x6d, 0x2e, 0x73, 0x69, 0x66, 0x74, 0x2e, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, + 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2d, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x69, 0x66, 0x74, 0x2f, + 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x52, 0x58, 0xaa, 0x02, 0x0d, 0x53, 0x69, 0x66, 0x74, 0x2e, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0d, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x19, 0x53, 0x69, 0x66, 0x74, 0x5c, 0x52, 0x75, + 0x6c, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0f, 0x53, 0x69, 0x66, 0x74, 0x3a, 0x3a, 0x52, 0x75, 0x6c, 0x65, 0x73, + 0x3a, 0x3a, 0x56, 0x31, 0x92, 0x41, 0x10, 0x12, 0x0e, 0x0a, 0x0c, 0x52, 0x75, 0x6c, 0x65, 0x20, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2910,7 +3458,7 @@ func file_sift_rules_v1_rules_proto_rawDescGZIP() []byte { } var file_sift_rules_v1_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_sift_rules_v1_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 34) +var file_sift_rules_v1_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 42) var file_sift_rules_v1_rules_proto_goTypes = []interface{}{ (SearchOrder)(0), // 0: sift.rules.v1.SearchOrder (ActionKind)(0), // 1: sift.rules.v1.ActionKind @@ -2936,80 +3484,98 @@ var file_sift_rules_v1_rules_proto_goTypes = []interface{}{ (*ViewHumanFriendlyRulesResponse)(nil), // 21: sift.rules.v1.ViewHumanFriendlyRulesResponse (*UpdateHumanFriendlyRulesRequest)(nil), // 22: sift.rules.v1.UpdateHumanFriendlyRulesRequest (*UpdateHumanFriendlyRulesResponse)(nil), // 23: sift.rules.v1.UpdateHumanFriendlyRulesResponse - (*RuleConditionExpression)(nil), // 24: sift.rules.v1.RuleConditionExpression - (*SingleChannelComparisonExpression)(nil), // 25: sift.rules.v1.SingleChannelComparisonExpression - (*LastValueThreshold)(nil), // 26: sift.rules.v1.LastValueThreshold - (*CalculatedChannelConfig)(nil), // 27: sift.rules.v1.CalculatedChannelConfig - (*ChannelReference)(nil), // 28: sift.rules.v1.ChannelReference - (*RuleActionConfiguration)(nil), // 29: sift.rules.v1.RuleActionConfiguration - (*NotificationActionConfiguration)(nil), // 30: sift.rules.v1.NotificationActionConfiguration - (*AnnotationActionConfiguration)(nil), // 31: sift.rules.v1.AnnotationActionConfiguration - (*EvaluateRulesRequest)(nil), // 32: sift.rules.v1.EvaluateRulesRequest - (*EvaluatedAnnotationOptions)(nil), // 33: sift.rules.v1.EvaluatedAnnotationOptions - (*TimeRangeQuery)(nil), // 34: sift.rules.v1.TimeRangeQuery - (*EvaluateRulesResponse)(nil), // 35: sift.rules.v1.EvaluateRulesResponse - nil, // 36: sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry - (*timestamppb.Timestamp)(nil), // 37: google.protobuf.Timestamp - (v1.AnnotationType)(0), // 38: sift.annotations.v1.AnnotationType + (*ViewJsonRulesRequest)(nil), // 24: sift.rules.v1.ViewJsonRulesRequest + (*ViewJsonRulesResponse)(nil), // 25: sift.rules.v1.ViewJsonRulesResponse + (*JsonRulesRequest)(nil), // 26: sift.rules.v1.JsonRulesRequest + (*JsonRulesResponse)(nil), // 27: sift.rules.v1.JsonRulesResponse + (*ValidateJsonRulesRequest)(nil), // 28: sift.rules.v1.ValidateJsonRulesRequest + (*ValidateJsonRulesResponse)(nil), // 29: sift.rules.v1.ValidateJsonRulesResponse + (*UpdateJsonRulesRequest)(nil), // 30: sift.rules.v1.UpdateJsonRulesRequest + (*UpdateJsonRulesResponse)(nil), // 31: sift.rules.v1.UpdateJsonRulesResponse + (*RuleConditionExpression)(nil), // 32: sift.rules.v1.RuleConditionExpression + (*SingleChannelComparisonExpression)(nil), // 33: sift.rules.v1.SingleChannelComparisonExpression + (*LastValueThreshold)(nil), // 34: sift.rules.v1.LastValueThreshold + (*CalculatedChannelConfig)(nil), // 35: sift.rules.v1.CalculatedChannelConfig + (*ChannelReference)(nil), // 36: sift.rules.v1.ChannelReference + (*RuleActionConfiguration)(nil), // 37: sift.rules.v1.RuleActionConfiguration + (*NotificationActionConfiguration)(nil), // 38: sift.rules.v1.NotificationActionConfiguration + (*AnnotationActionConfiguration)(nil), // 39: sift.rules.v1.AnnotationActionConfiguration + (*EvaluateRulesRequest)(nil), // 40: sift.rules.v1.EvaluateRulesRequest + (*EvaluatedAnnotationOptions)(nil), // 41: sift.rules.v1.EvaluatedAnnotationOptions + (*TimeRangeQuery)(nil), // 42: sift.rules.v1.TimeRangeQuery + (*EvaluateRulesResponse)(nil), // 43: sift.rules.v1.EvaluateRulesResponse + nil, // 44: sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry + (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp + (v1.AnnotationType)(0), // 46: sift.annotations.v1.AnnotationType } var file_sift_rules_v1_rules_proto_depIdxs = []int32{ - 37, // 0: sift.rules.v1.Rule.created_date:type_name -> google.protobuf.Timestamp - 37, // 1: sift.rules.v1.Rule.modified_date:type_name -> google.protobuf.Timestamp + 45, // 0: sift.rules.v1.Rule.created_date:type_name -> google.protobuf.Timestamp + 45, // 1: sift.rules.v1.Rule.modified_date:type_name -> google.protobuf.Timestamp 4, // 2: sift.rules.v1.Rule.conditions:type_name -> sift.rules.v1.RuleCondition - 24, // 3: sift.rules.v1.RuleCondition.expression:type_name -> sift.rules.v1.RuleConditionExpression - 37, // 4: sift.rules.v1.RuleCondition.created_date:type_name -> google.protobuf.Timestamp - 37, // 5: sift.rules.v1.RuleCondition.modified_date:type_name -> google.protobuf.Timestamp + 32, // 3: sift.rules.v1.RuleCondition.expression:type_name -> sift.rules.v1.RuleConditionExpression + 45, // 4: sift.rules.v1.RuleCondition.created_date:type_name -> google.protobuf.Timestamp + 45, // 5: sift.rules.v1.RuleCondition.modified_date:type_name -> google.protobuf.Timestamp 5, // 6: sift.rules.v1.RuleCondition.actions:type_name -> sift.rules.v1.RuleAction 1, // 7: sift.rules.v1.RuleAction.action_type:type_name -> sift.rules.v1.ActionKind - 29, // 8: sift.rules.v1.RuleAction.configuration:type_name -> sift.rules.v1.RuleActionConfiguration - 37, // 9: sift.rules.v1.RuleAction.created_date:type_name -> google.protobuf.Timestamp - 37, // 10: sift.rules.v1.RuleAction.modified_date:type_name -> google.protobuf.Timestamp + 37, // 8: sift.rules.v1.RuleAction.configuration:type_name -> sift.rules.v1.RuleActionConfiguration + 45, // 9: sift.rules.v1.RuleAction.created_date:type_name -> google.protobuf.Timestamp + 45, // 10: sift.rules.v1.RuleAction.modified_date:type_name -> google.protobuf.Timestamp 0, // 11: sift.rules.v1.SearchRulesRequest.order:type_name -> sift.rules.v1.SearchOrder 3, // 12: sift.rules.v1.SearchRulesResponse.rules:type_name -> sift.rules.v1.Rule 3, // 13: sift.rules.v1.GetRuleResponse.rule:type_name -> sift.rules.v1.Rule 3, // 14: sift.rules.v1.BatchGetRulesResponse.rules:type_name -> sift.rules.v1.Rule 14, // 15: sift.rules.v1.CreateRuleRequest.update:type_name -> sift.rules.v1.UpdateRuleRequest 15, // 16: sift.rules.v1.UpdateRuleRequest.conditions:type_name -> sift.rules.v1.UpdateConditionRequest - 24, // 17: sift.rules.v1.UpdateConditionRequest.expression:type_name -> sift.rules.v1.RuleConditionExpression + 32, // 17: sift.rules.v1.UpdateConditionRequest.expression:type_name -> sift.rules.v1.RuleConditionExpression 16, // 18: sift.rules.v1.UpdateConditionRequest.actions:type_name -> sift.rules.v1.UpdateActionRequest 1, // 19: sift.rules.v1.UpdateActionRequest.action_type:type_name -> sift.rules.v1.ActionKind - 29, // 20: sift.rules.v1.UpdateActionRequest.configuration:type_name -> sift.rules.v1.RuleActionConfiguration - 25, // 21: sift.rules.v1.RuleConditionExpression.single_channel_comparison:type_name -> sift.rules.v1.SingleChannelComparisonExpression - 27, // 22: sift.rules.v1.RuleConditionExpression.calculated_channel:type_name -> sift.rules.v1.CalculatedChannelConfig - 2, // 23: sift.rules.v1.SingleChannelComparisonExpression.comparator:type_name -> sift.rules.v1.ConditionComparator - 26, // 24: sift.rules.v1.SingleChannelComparisonExpression.last_value:type_name -> sift.rules.v1.LastValueThreshold - 36, // 25: sift.rules.v1.CalculatedChannelConfig.channel_references:type_name -> sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry - 30, // 26: sift.rules.v1.RuleActionConfiguration.notification:type_name -> sift.rules.v1.NotificationActionConfiguration - 31, // 27: sift.rules.v1.RuleActionConfiguration.annotation:type_name -> sift.rules.v1.AnnotationActionConfiguration - 38, // 28: sift.rules.v1.AnnotationActionConfiguration.annotation_type:type_name -> sift.annotations.v1.AnnotationType - 33, // 29: sift.rules.v1.EvaluateRulesRequest.annotation_options:type_name -> sift.rules.v1.EvaluatedAnnotationOptions - 34, // 30: sift.rules.v1.EvaluateRulesRequest.time_range:type_name -> sift.rules.v1.TimeRangeQuery - 37, // 31: sift.rules.v1.TimeRangeQuery.start_time:type_name -> google.protobuf.Timestamp - 37, // 32: sift.rules.v1.TimeRangeQuery.end_time:type_name -> google.protobuf.Timestamp - 28, // 33: sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry.value:type_name -> sift.rules.v1.ChannelReference - 6, // 34: sift.rules.v1.RuleService.SearchRules:input_type -> sift.rules.v1.SearchRulesRequest - 8, // 35: sift.rules.v1.RuleService.GetRule:input_type -> sift.rules.v1.GetRuleRequest - 10, // 36: sift.rules.v1.RuleService.BatchGetRules:input_type -> sift.rules.v1.BatchGetRulesRequest - 12, // 37: sift.rules.v1.RuleService.CreateRule:input_type -> sift.rules.v1.CreateRuleRequest - 14, // 38: sift.rules.v1.RuleService.UpdateRule:input_type -> sift.rules.v1.UpdateRuleRequest - 18, // 39: sift.rules.v1.RuleService.DeleteRule:input_type -> sift.rules.v1.DeleteRuleRequest - 32, // 40: sift.rules.v1.RuleService.EvaluateRules:input_type -> sift.rules.v1.EvaluateRulesRequest - 20, // 41: sift.rules.v1.RuleService.ViewHumanFriendlyRules:input_type -> sift.rules.v1.ViewHumanFriendlyRulesRequest - 22, // 42: sift.rules.v1.RuleService.UpdateHumanFriendlyRules:input_type -> sift.rules.v1.UpdateHumanFriendlyRulesRequest - 7, // 43: sift.rules.v1.RuleService.SearchRules:output_type -> sift.rules.v1.SearchRulesResponse - 9, // 44: sift.rules.v1.RuleService.GetRule:output_type -> sift.rules.v1.GetRuleResponse - 11, // 45: sift.rules.v1.RuleService.BatchGetRules:output_type -> sift.rules.v1.BatchGetRulesResponse - 13, // 46: sift.rules.v1.RuleService.CreateRule:output_type -> sift.rules.v1.CreateRuleResponse - 17, // 47: sift.rules.v1.RuleService.UpdateRule:output_type -> sift.rules.v1.UpdateRuleResponse - 19, // 48: sift.rules.v1.RuleService.DeleteRule:output_type -> sift.rules.v1.DeleteRuleResponse - 35, // 49: sift.rules.v1.RuleService.EvaluateRules:output_type -> sift.rules.v1.EvaluateRulesResponse - 21, // 50: sift.rules.v1.RuleService.ViewHumanFriendlyRules:output_type -> sift.rules.v1.ViewHumanFriendlyRulesResponse - 23, // 51: sift.rules.v1.RuleService.UpdateHumanFriendlyRules:output_type -> sift.rules.v1.UpdateHumanFriendlyRulesResponse - 43, // [43:52] is the sub-list for method output_type - 34, // [34:43] is the sub-list for method input_type - 34, // [34:34] is the sub-list for extension type_name - 34, // [34:34] is the sub-list for extension extendee - 0, // [0:34] is the sub-list for field type_name + 37, // 20: sift.rules.v1.UpdateActionRequest.configuration:type_name -> sift.rules.v1.RuleActionConfiguration + 26, // 21: sift.rules.v1.ValidateJsonRulesRequest.request:type_name -> sift.rules.v1.JsonRulesRequest + 27, // 22: sift.rules.v1.ValidateJsonRulesResponse.response:type_name -> sift.rules.v1.JsonRulesResponse + 26, // 23: sift.rules.v1.UpdateJsonRulesRequest.request:type_name -> sift.rules.v1.JsonRulesRequest + 27, // 24: sift.rules.v1.UpdateJsonRulesResponse.response:type_name -> sift.rules.v1.JsonRulesResponse + 33, // 25: sift.rules.v1.RuleConditionExpression.single_channel_comparison:type_name -> sift.rules.v1.SingleChannelComparisonExpression + 35, // 26: sift.rules.v1.RuleConditionExpression.calculated_channel:type_name -> sift.rules.v1.CalculatedChannelConfig + 2, // 27: sift.rules.v1.SingleChannelComparisonExpression.comparator:type_name -> sift.rules.v1.ConditionComparator + 34, // 28: sift.rules.v1.SingleChannelComparisonExpression.last_value:type_name -> sift.rules.v1.LastValueThreshold + 44, // 29: sift.rules.v1.CalculatedChannelConfig.channel_references:type_name -> sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry + 38, // 30: sift.rules.v1.RuleActionConfiguration.notification:type_name -> sift.rules.v1.NotificationActionConfiguration + 39, // 31: sift.rules.v1.RuleActionConfiguration.annotation:type_name -> sift.rules.v1.AnnotationActionConfiguration + 46, // 32: sift.rules.v1.AnnotationActionConfiguration.annotation_type:type_name -> sift.annotations.v1.AnnotationType + 41, // 33: sift.rules.v1.EvaluateRulesRequest.annotation_options:type_name -> sift.rules.v1.EvaluatedAnnotationOptions + 42, // 34: sift.rules.v1.EvaluateRulesRequest.time_range:type_name -> sift.rules.v1.TimeRangeQuery + 45, // 35: sift.rules.v1.TimeRangeQuery.start_time:type_name -> google.protobuf.Timestamp + 45, // 36: sift.rules.v1.TimeRangeQuery.end_time:type_name -> google.protobuf.Timestamp + 36, // 37: sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntry.value:type_name -> sift.rules.v1.ChannelReference + 6, // 38: sift.rules.v1.RuleService.SearchRules:input_type -> sift.rules.v1.SearchRulesRequest + 8, // 39: sift.rules.v1.RuleService.GetRule:input_type -> sift.rules.v1.GetRuleRequest + 10, // 40: sift.rules.v1.RuleService.BatchGetRules:input_type -> sift.rules.v1.BatchGetRulesRequest + 12, // 41: sift.rules.v1.RuleService.CreateRule:input_type -> sift.rules.v1.CreateRuleRequest + 14, // 42: sift.rules.v1.RuleService.UpdateRule:input_type -> sift.rules.v1.UpdateRuleRequest + 18, // 43: sift.rules.v1.RuleService.DeleteRule:input_type -> sift.rules.v1.DeleteRuleRequest + 40, // 44: sift.rules.v1.RuleService.EvaluateRules:input_type -> sift.rules.v1.EvaluateRulesRequest + 20, // 45: sift.rules.v1.RuleService.ViewHumanFriendlyRules:input_type -> sift.rules.v1.ViewHumanFriendlyRulesRequest + 24, // 46: sift.rules.v1.RuleService.ViewJsonRules:input_type -> sift.rules.v1.ViewJsonRulesRequest + 22, // 47: sift.rules.v1.RuleService.UpdateHumanFriendlyRules:input_type -> sift.rules.v1.UpdateHumanFriendlyRulesRequest + 28, // 48: sift.rules.v1.RuleService.ValidateJsonRules:input_type -> sift.rules.v1.ValidateJsonRulesRequest + 30, // 49: sift.rules.v1.RuleService.UpdateJsonRules:input_type -> sift.rules.v1.UpdateJsonRulesRequest + 7, // 50: sift.rules.v1.RuleService.SearchRules:output_type -> sift.rules.v1.SearchRulesResponse + 9, // 51: sift.rules.v1.RuleService.GetRule:output_type -> sift.rules.v1.GetRuleResponse + 11, // 52: sift.rules.v1.RuleService.BatchGetRules:output_type -> sift.rules.v1.BatchGetRulesResponse + 13, // 53: sift.rules.v1.RuleService.CreateRule:output_type -> sift.rules.v1.CreateRuleResponse + 17, // 54: sift.rules.v1.RuleService.UpdateRule:output_type -> sift.rules.v1.UpdateRuleResponse + 19, // 55: sift.rules.v1.RuleService.DeleteRule:output_type -> sift.rules.v1.DeleteRuleResponse + 43, // 56: sift.rules.v1.RuleService.EvaluateRules:output_type -> sift.rules.v1.EvaluateRulesResponse + 21, // 57: sift.rules.v1.RuleService.ViewHumanFriendlyRules:output_type -> sift.rules.v1.ViewHumanFriendlyRulesResponse + 25, // 58: sift.rules.v1.RuleService.ViewJsonRules:output_type -> sift.rules.v1.ViewJsonRulesResponse + 23, // 59: sift.rules.v1.RuleService.UpdateHumanFriendlyRules:output_type -> sift.rules.v1.UpdateHumanFriendlyRulesResponse + 29, // 60: sift.rules.v1.RuleService.ValidateJsonRules:output_type -> sift.rules.v1.ValidateJsonRulesResponse + 31, // 61: sift.rules.v1.RuleService.UpdateJsonRules:output_type -> sift.rules.v1.UpdateJsonRulesResponse + 50, // [50:62] is the sub-list for method output_type + 38, // [38:50] is the sub-list for method input_type + 38, // [38:38] is the sub-list for extension type_name + 38, // [38:38] is the sub-list for extension extendee + 0, // [0:38] is the sub-list for field type_name } func init() { file_sift_rules_v1_rules_proto_init() } @@ -3271,7 +3837,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuleConditionExpression); i { + switch v := v.(*ViewJsonRulesRequest); i { case 0: return &v.state case 1: @@ -3283,7 +3849,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SingleChannelComparisonExpression); i { + switch v := v.(*ViewJsonRulesResponse); i { case 0: return &v.state case 1: @@ -3295,7 +3861,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LastValueThreshold); i { + switch v := v.(*JsonRulesRequest); i { case 0: return &v.state case 1: @@ -3307,7 +3873,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CalculatedChannelConfig); i { + switch v := v.(*JsonRulesResponse); i { case 0: return &v.state case 1: @@ -3319,7 +3885,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChannelReference); i { + switch v := v.(*ValidateJsonRulesRequest); i { case 0: return &v.state case 1: @@ -3331,7 +3897,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuleActionConfiguration); i { + switch v := v.(*ValidateJsonRulesResponse); i { case 0: return &v.state case 1: @@ -3343,7 +3909,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotificationActionConfiguration); i { + switch v := v.(*UpdateJsonRulesRequest); i { case 0: return &v.state case 1: @@ -3355,7 +3921,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AnnotationActionConfiguration); i { + switch v := v.(*UpdateJsonRulesResponse); i { case 0: return &v.state case 1: @@ -3367,7 +3933,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluateRulesRequest); i { + switch v := v.(*RuleConditionExpression); i { case 0: return &v.state case 1: @@ -3379,7 +3945,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EvaluatedAnnotationOptions); i { + switch v := v.(*SingleChannelComparisonExpression); i { case 0: return &v.state case 1: @@ -3391,7 +3957,7 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimeRangeQuery); i { + switch v := v.(*LastValueThreshold); i { case 0: return &v.state case 1: @@ -3403,6 +3969,102 @@ func file_sift_rules_v1_rules_proto_init() { } } file_sift_rules_v1_rules_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CalculatedChannelConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChannelReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuleActionConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotificationActionConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AnnotationActionConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EvaluateRulesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EvaluatedAnnotationOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeRangeQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_sift_rules_v1_rules_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EvaluateRulesResponse); i { case 0: return &v.state @@ -3419,21 +4081,22 @@ func file_sift_rules_v1_rules_proto_init() { file_sift_rules_v1_rules_proto_msgTypes[11].OneofWrappers = []interface{}{} file_sift_rules_v1_rules_proto_msgTypes[12].OneofWrappers = []interface{}{} file_sift_rules_v1_rules_proto_msgTypes[13].OneofWrappers = []interface{}{} - file_sift_rules_v1_rules_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_sift_rules_v1_rules_proto_msgTypes[24].OneofWrappers = []interface{}{} + file_sift_rules_v1_rules_proto_msgTypes[29].OneofWrappers = []interface{}{ (*RuleConditionExpression_SingleChannelComparison)(nil), (*RuleConditionExpression_CalculatedChannel)(nil), } - file_sift_rules_v1_rules_proto_msgTypes[22].OneofWrappers = []interface{}{ + file_sift_rules_v1_rules_proto_msgTypes[30].OneofWrappers = []interface{}{ (*SingleChannelComparisonExpression_Double)(nil), (*SingleChannelComparisonExpression_String_)(nil), (*SingleChannelComparisonExpression_LastValue)(nil), } - file_sift_rules_v1_rules_proto_msgTypes[26].OneofWrappers = []interface{}{ + file_sift_rules_v1_rules_proto_msgTypes[34].OneofWrappers = []interface{}{ (*RuleActionConfiguration_Notification)(nil), (*RuleActionConfiguration_Annotation)(nil), } - file_sift_rules_v1_rules_proto_msgTypes[28].OneofWrappers = []interface{}{} - file_sift_rules_v1_rules_proto_msgTypes[29].OneofWrappers = []interface{}{ + file_sift_rules_v1_rules_proto_msgTypes[36].OneofWrappers = []interface{}{} + file_sift_rules_v1_rules_proto_msgTypes[37].OneofWrappers = []interface{}{ (*EvaluateRulesRequest_RunId)(nil), (*EvaluateRulesRequest_TimeRange)(nil), } @@ -3443,7 +4106,7 @@ func file_sift_rules_v1_rules_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sift_rules_v1_rules_proto_rawDesc, NumEnums: 3, - NumMessages: 34, + NumMessages: 42, NumExtensions: 0, NumServices: 1, }, diff --git a/go/gen/protos/go/sift/rules/v1/rules.pb.gw.go b/go/gen/protos/go/sift/rules/v1/rules.pb.gw.go index a56ab66a..bb746b03 100644 --- a/go/gen/protos/go/sift/rules/v1/rules.pb.gw.go +++ b/go/gen/protos/go/sift/rules/v1/rules.pb.gw.go @@ -307,6 +307,42 @@ func local_request_RuleService_ViewHumanFriendlyRules_0(ctx context.Context, mar } +var ( + filter_RuleService_ViewJsonRules_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_RuleService_ViewJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, client RuleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ViewJsonRulesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RuleService_ViewJsonRules_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ViewJsonRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_RuleService_ViewJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, server RuleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ViewJsonRulesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RuleService_ViewJsonRules_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ViewJsonRules(ctx, &protoReq) + return msg, metadata, err + +} + func request_RuleService_UpdateHumanFriendlyRules_0(ctx context.Context, marshaler runtime.Marshaler, client RuleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq UpdateHumanFriendlyRulesRequest var metadata runtime.ServerMetadata @@ -341,6 +377,74 @@ func local_request_RuleService_UpdateHumanFriendlyRules_0(ctx context.Context, m } +func request_RuleService_ValidateJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, client RuleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ValidateJsonRulesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ValidateJsonRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_RuleService_ValidateJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, server RuleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ValidateJsonRulesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ValidateJsonRules(ctx, &protoReq) + return msg, metadata, err + +} + +func request_RuleService_UpdateJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, client RuleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateJsonRulesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.UpdateJsonRules(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_RuleService_UpdateJsonRules_0(ctx context.Context, marshaler runtime.Marshaler, server RuleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq UpdateJsonRulesRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.UpdateJsonRules(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterRuleServiceHandlerServer registers the http handlers for service RuleService to "mux". // UnaryRPC :call RuleServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -547,6 +651,31 @@ func RegisterRuleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("GET", pattern_RuleService_ViewJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.rules.v1.RuleService/ViewJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:viewJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_RuleService_ViewJsonRules_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_ViewJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_RuleService_UpdateHumanFriendlyRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -572,6 +701,56 @@ func RegisterRuleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("POST", pattern_RuleService_ValidateJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.rules.v1.RuleService/ValidateJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:validateJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_RuleService_ValidateJsonRules_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_ValidateJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_RuleService_UpdateJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/sift.rules.v1.RuleService/UpdateJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:updateJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_RuleService_UpdateJsonRules_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_UpdateJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -789,6 +968,28 @@ func RegisterRuleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("GET", pattern_RuleService_ViewJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.rules.v1.RuleService/ViewJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:viewJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_RuleService_ViewJsonRules_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_ViewJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("POST", pattern_RuleService_UpdateHumanFriendlyRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -811,6 +1012,50 @@ func RegisterRuleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux }) + mux.Handle("POST", pattern_RuleService_ValidateJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.rules.v1.RuleService/ValidateJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:validateJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_RuleService_ValidateJsonRules_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_ValidateJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_RuleService_UpdateJsonRules_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/sift.rules.v1.RuleService/UpdateJsonRules", runtime.WithHTTPPathPattern("/api/v1/rules:updateJson")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_RuleService_UpdateJsonRules_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_RuleService_UpdateJsonRules_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -831,7 +1076,13 @@ var ( pattern_RuleService_ViewHumanFriendlyRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "rules"}, "viewHumanFriendly")) + pattern_RuleService_ViewJsonRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "rules"}, "viewJson")) + pattern_RuleService_UpdateHumanFriendlyRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "rules"}, "updateHumanFriendly")) + + pattern_RuleService_ValidateJsonRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "rules"}, "validateJson")) + + pattern_RuleService_UpdateJsonRules_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "rules"}, "updateJson")) ) var ( @@ -851,5 +1102,11 @@ var ( forward_RuleService_ViewHumanFriendlyRules_0 = runtime.ForwardResponseMessage + forward_RuleService_ViewJsonRules_0 = runtime.ForwardResponseMessage + forward_RuleService_UpdateHumanFriendlyRules_0 = runtime.ForwardResponseMessage + + forward_RuleService_ValidateJsonRules_0 = runtime.ForwardResponseMessage + + forward_RuleService_UpdateJsonRules_0 = runtime.ForwardResponseMessage ) diff --git a/go/gen/protos/go/sift/rules/v1/rules_vtproto.pb.go b/go/gen/protos/go/sift/rules/v1/rules_vtproto.pb.go index 2bc96edd..dfce4504 100644 --- a/go/gen/protos/go/sift/rules/v1/rules_vtproto.pb.go +++ b/go/gen/protos/go/sift/rules/v1/rules_vtproto.pb.go @@ -501,6 +501,152 @@ func (m *UpdateHumanFriendlyRulesResponse) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *ViewJsonRulesRequest) CloneVT() *ViewJsonRulesRequest { + if m == nil { + return (*ViewJsonRulesRequest)(nil) + } + r := new(ViewJsonRulesRequest) + r.AssetId = m.AssetId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ViewJsonRulesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ViewJsonRulesResponse) CloneVT() *ViewJsonRulesResponse { + if m == nil { + return (*ViewJsonRulesResponse)(nil) + } + r := new(ViewJsonRulesResponse) + r.RulesJson = m.RulesJson + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ViewJsonRulesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *JsonRulesRequest) CloneVT() *JsonRulesRequest { + if m == nil { + return (*JsonRulesRequest)(nil) + } + r := new(JsonRulesRequest) + r.AssetId = m.AssetId + r.RulesJson = m.RulesJson + r.OrganizationId = m.OrganizationId + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *JsonRulesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *JsonRulesResponse) CloneVT() *JsonRulesResponse { + if m == nil { + return (*JsonRulesResponse)(nil) + } + r := new(JsonRulesResponse) + r.Success = m.Success + r.TotalRulesCount = m.TotalRulesCount + r.RulesCreatedCount = m.RulesCreatedCount + r.RulesUpdatedCount = m.RulesUpdatedCount + r.RulesDeletedCount = m.RulesDeletedCount + if rhs := m.ErrorMessages; rhs != nil { + tmpVal := *rhs + r.ErrorMessages = &tmpVal + } + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *JsonRulesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ValidateJsonRulesRequest) CloneVT() *ValidateJsonRulesRequest { + if m == nil { + return (*ValidateJsonRulesRequest)(nil) + } + r := new(ValidateJsonRulesRequest) + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ValidateJsonRulesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *ValidateJsonRulesResponse) CloneVT() *ValidateJsonRulesResponse { + if m == nil { + return (*ValidateJsonRulesResponse)(nil) + } + r := new(ValidateJsonRulesResponse) + r.Response = m.Response.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *ValidateJsonRulesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateJsonRulesRequest) CloneVT() *UpdateJsonRulesRequest { + if m == nil { + return (*UpdateJsonRulesRequest)(nil) + } + r := new(UpdateJsonRulesRequest) + r.Request = m.Request.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateJsonRulesRequest) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *UpdateJsonRulesResponse) CloneVT() *UpdateJsonRulesResponse { + if m == nil { + return (*UpdateJsonRulesResponse)(nil) + } + r := new(UpdateJsonRulesResponse) + r.Response = m.Response.CloneVT() + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *UpdateJsonRulesResponse) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *RuleConditionExpression) CloneVT() *RuleConditionExpression { if m == nil { return (*RuleConditionExpression)(nil) @@ -1484,6 +1630,179 @@ func (this *UpdateHumanFriendlyRulesResponse) EqualMessageVT(thatMsg proto.Messa } return this.EqualVT(that) } +func (this *ViewJsonRulesRequest) EqualVT(that *ViewJsonRulesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.AssetId != that.AssetId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ViewJsonRulesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ViewJsonRulesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ViewJsonRulesResponse) EqualVT(that *ViewJsonRulesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.RulesJson != that.RulesJson { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ViewJsonRulesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ViewJsonRulesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *JsonRulesRequest) EqualVT(that *JsonRulesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.AssetId != that.AssetId { + return false + } + if this.RulesJson != that.RulesJson { + return false + } + if this.OrganizationId != that.OrganizationId { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *JsonRulesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*JsonRulesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *JsonRulesResponse) EqualVT(that *JsonRulesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.Success != that.Success { + return false + } + if this.TotalRulesCount != that.TotalRulesCount { + return false + } + if this.RulesCreatedCount != that.RulesCreatedCount { + return false + } + if this.RulesUpdatedCount != that.RulesUpdatedCount { + return false + } + if this.RulesDeletedCount != that.RulesDeletedCount { + return false + } + if p, q := this.ErrorMessages, that.ErrorMessages; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *JsonRulesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*JsonRulesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ValidateJsonRulesRequest) EqualVT(that *ValidateJsonRulesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Request.EqualVT(that.Request) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ValidateJsonRulesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ValidateJsonRulesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *ValidateJsonRulesResponse) EqualVT(that *ValidateJsonRulesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Response.EqualVT(that.Response) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *ValidateJsonRulesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*ValidateJsonRulesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateJsonRulesRequest) EqualVT(that *UpdateJsonRulesRequest) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Request.EqualVT(that.Request) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateJsonRulesRequest) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateJsonRulesRequest) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *UpdateJsonRulesResponse) EqualVT(that *UpdateJsonRulesResponse) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if !this.Response.EqualVT(that.Response) { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *UpdateJsonRulesResponse) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*UpdateJsonRulesResponse) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *RuleConditionExpression) EqualVT(that *RuleConditionExpression) bool { if this == that { return true @@ -2041,10 +2360,18 @@ type RuleServiceClient interface { DeleteRule(ctx context.Context, in *DeleteRuleRequest, opts ...grpc.CallOption) (*DeleteRuleResponse, error) // Evaluates the provided rules and generate annotations based on the result. EvaluateRules(ctx context.Context, in *EvaluateRulesRequest, opts ...grpc.CallOption) (*EvaluateRulesResponse, error) - // Retrieve a JSON object containing all of the rules for a given asset. + // Deprecated: Do not use. + // Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset. ViewHumanFriendlyRules(ctx context.Context, in *ViewHumanFriendlyRulesRequest, opts ...grpc.CallOption) (*ViewHumanFriendlyRulesResponse, error) - // Batch update rules given the `rules_json` which is a JSON list of rules. + // Retrieve a JSON object containing all of the rules for a given asset. + ViewJsonRules(ctx context.Context, in *ViewJsonRulesRequest, opts ...grpc.CallOption) (*ViewJsonRulesResponse, error) + // Deprecated: Do not use. + // Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules. UpdateHumanFriendlyRules(ctx context.Context, in *UpdateHumanFriendlyRulesRequest, opts ...grpc.CallOption) (*UpdateHumanFriendlyRulesResponse, error) + // Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation. + ValidateJsonRules(ctx context.Context, in *ValidateJsonRulesRequest, opts ...grpc.CallOption) (*ValidateJsonRulesResponse, error) + // Batch update rules given the `rules_json` which is a JSON list of rules. + UpdateJsonRules(ctx context.Context, in *UpdateJsonRulesRequest, opts ...grpc.CallOption) (*UpdateJsonRulesResponse, error) } type ruleServiceClient struct { @@ -2118,6 +2445,7 @@ func (c *ruleServiceClient) EvaluateRules(ctx context.Context, in *EvaluateRules return out, nil } +// Deprecated: Do not use. func (c *ruleServiceClient) ViewHumanFriendlyRules(ctx context.Context, in *ViewHumanFriendlyRulesRequest, opts ...grpc.CallOption) (*ViewHumanFriendlyRulesResponse, error) { out := new(ViewHumanFriendlyRulesResponse) err := c.cc.Invoke(ctx, "/sift.rules.v1.RuleService/ViewHumanFriendlyRules", in, out, opts...) @@ -2127,6 +2455,16 @@ func (c *ruleServiceClient) ViewHumanFriendlyRules(ctx context.Context, in *View return out, nil } +func (c *ruleServiceClient) ViewJsonRules(ctx context.Context, in *ViewJsonRulesRequest, opts ...grpc.CallOption) (*ViewJsonRulesResponse, error) { + out := new(ViewJsonRulesResponse) + err := c.cc.Invoke(ctx, "/sift.rules.v1.RuleService/ViewJsonRules", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. func (c *ruleServiceClient) UpdateHumanFriendlyRules(ctx context.Context, in *UpdateHumanFriendlyRulesRequest, opts ...grpc.CallOption) (*UpdateHumanFriendlyRulesResponse, error) { out := new(UpdateHumanFriendlyRulesResponse) err := c.cc.Invoke(ctx, "/sift.rules.v1.RuleService/UpdateHumanFriendlyRules", in, out, opts...) @@ -2136,8 +2474,26 @@ func (c *ruleServiceClient) UpdateHumanFriendlyRules(ctx context.Context, in *Up return out, nil } -// RuleServiceServer is the server API for RuleService service. -// All implementations must embed UnimplementedRuleServiceServer +func (c *ruleServiceClient) ValidateJsonRules(ctx context.Context, in *ValidateJsonRulesRequest, opts ...grpc.CallOption) (*ValidateJsonRulesResponse, error) { + out := new(ValidateJsonRulesResponse) + err := c.cc.Invoke(ctx, "/sift.rules.v1.RuleService/ValidateJsonRules", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *ruleServiceClient) UpdateJsonRules(ctx context.Context, in *UpdateJsonRulesRequest, opts ...grpc.CallOption) (*UpdateJsonRulesResponse, error) { + out := new(UpdateJsonRulesResponse) + err := c.cc.Invoke(ctx, "/sift.rules.v1.RuleService/UpdateJsonRules", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// RuleServiceServer is the server API for RuleService service. +// All implementations must embed UnimplementedRuleServiceServer // for forward compatibility type RuleServiceServer interface { // Queries rules based on provided search parameters. @@ -2154,10 +2510,18 @@ type RuleServiceServer interface { DeleteRule(context.Context, *DeleteRuleRequest) (*DeleteRuleResponse, error) // Evaluates the provided rules and generate annotations based on the result. EvaluateRules(context.Context, *EvaluateRulesRequest) (*EvaluateRulesResponse, error) - // Retrieve a JSON object containing all of the rules for a given asset. + // Deprecated: Do not use. + // Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset. ViewHumanFriendlyRules(context.Context, *ViewHumanFriendlyRulesRequest) (*ViewHumanFriendlyRulesResponse, error) - // Batch update rules given the `rules_json` which is a JSON list of rules. + // Retrieve a JSON object containing all of the rules for a given asset. + ViewJsonRules(context.Context, *ViewJsonRulesRequest) (*ViewJsonRulesResponse, error) + // Deprecated: Do not use. + // Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules. UpdateHumanFriendlyRules(context.Context, *UpdateHumanFriendlyRulesRequest) (*UpdateHumanFriendlyRulesResponse, error) + // Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation. + ValidateJsonRules(context.Context, *ValidateJsonRulesRequest) (*ValidateJsonRulesResponse, error) + // Batch update rules given the `rules_json` which is a JSON list of rules. + UpdateJsonRules(context.Context, *UpdateJsonRulesRequest) (*UpdateJsonRulesResponse, error) mustEmbedUnimplementedRuleServiceServer() } @@ -2189,9 +2553,18 @@ func (UnimplementedRuleServiceServer) EvaluateRules(context.Context, *EvaluateRu func (UnimplementedRuleServiceServer) ViewHumanFriendlyRules(context.Context, *ViewHumanFriendlyRulesRequest) (*ViewHumanFriendlyRulesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ViewHumanFriendlyRules not implemented") } +func (UnimplementedRuleServiceServer) ViewJsonRules(context.Context, *ViewJsonRulesRequest) (*ViewJsonRulesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ViewJsonRules not implemented") +} func (UnimplementedRuleServiceServer) UpdateHumanFriendlyRules(context.Context, *UpdateHumanFriendlyRulesRequest) (*UpdateHumanFriendlyRulesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateHumanFriendlyRules not implemented") } +func (UnimplementedRuleServiceServer) ValidateJsonRules(context.Context, *ValidateJsonRulesRequest) (*ValidateJsonRulesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateJsonRules not implemented") +} +func (UnimplementedRuleServiceServer) UpdateJsonRules(context.Context, *UpdateJsonRulesRequest) (*UpdateJsonRulesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateJsonRules not implemented") +} func (UnimplementedRuleServiceServer) mustEmbedUnimplementedRuleServiceServer() {} // UnsafeRuleServiceServer may be embedded to opt out of forward compatibility for this service. @@ -2349,6 +2722,24 @@ func _RuleService_ViewHumanFriendlyRules_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } +func _RuleService_ViewJsonRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ViewJsonRulesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RuleServiceServer).ViewJsonRules(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.rules.v1.RuleService/ViewJsonRules", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RuleServiceServer).ViewJsonRules(ctx, req.(*ViewJsonRulesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _RuleService_UpdateHumanFriendlyRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateHumanFriendlyRulesRequest) if err := dec(in); err != nil { @@ -2367,6 +2758,42 @@ func _RuleService_UpdateHumanFriendlyRules_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _RuleService_ValidateJsonRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateJsonRulesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RuleServiceServer).ValidateJsonRules(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.rules.v1.RuleService/ValidateJsonRules", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RuleServiceServer).ValidateJsonRules(ctx, req.(*ValidateJsonRulesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RuleService_UpdateJsonRules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateJsonRulesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RuleServiceServer).UpdateJsonRules(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/sift.rules.v1.RuleService/UpdateJsonRules", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RuleServiceServer).UpdateJsonRules(ctx, req.(*UpdateJsonRulesRequest)) + } + return interceptor(ctx, in, info, handler) +} + // RuleService_ServiceDesc is the grpc.ServiceDesc for RuleService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -2406,10 +2833,22 @@ var RuleService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ViewHumanFriendlyRules", Handler: _RuleService_ViewHumanFriendlyRules_Handler, }, + { + MethodName: "ViewJsonRules", + Handler: _RuleService_ViewJsonRules_Handler, + }, { MethodName: "UpdateHumanFriendlyRules", Handler: _RuleService_UpdateHumanFriendlyRules_Handler, }, + { + MethodName: "ValidateJsonRules", + Handler: _RuleService_ValidateJsonRules_Handler, + }, + { + MethodName: "UpdateJsonRules", + Handler: _RuleService_UpdateJsonRules_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "sift/rules/v1/rules.proto", @@ -3671,7 +4110,7 @@ func (m *UpdateHumanFriendlyRulesResponse) MarshalToSizedBufferVT(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *RuleConditionExpression) MarshalVT() (dAtA []byte, err error) { +func (m *ViewJsonRulesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -3684,12 +4123,12 @@ func (m *RuleConditionExpression) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RuleConditionExpression) MarshalToVT(dAtA []byte) (int, error) { +func (m *ViewJsonRulesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *RuleConditionExpression) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ViewJsonRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -3701,57 +4140,57 @@ func (m *RuleConditionExpression) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Expression.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleConditionExpression_SingleChannelComparison) MarshalToVT(dAtA []byte) (int, error) { +func (m *ViewJsonRulesResponse) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *RuleConditionExpression_SingleChannelComparison) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SingleChannelComparison != nil { - size, err := m.SingleChannelComparison.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - return len(dAtA) - i, nil + return dAtA[:n], nil } -func (m *RuleConditionExpression_CalculatedChannel) MarshalToVT(dAtA []byte) (int, error) { + +func (m *ViewJsonRulesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *RuleConditionExpression_CalculatedChannel) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ViewJsonRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.CalculatedChannel != nil { - size, err := m.CalculatedChannel.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SingleChannelComparisonExpression) MarshalVT() (dAtA []byte, err error) { + +func (m *JsonRulesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -3764,12 +4203,12 @@ func (m *SingleChannelComparisonExpression) MarshalVT() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *SingleChannelComparisonExpression) MarshalToVT(dAtA []byte) (int, error) { +func (m *JsonRulesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *JsonRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -3781,84 +4220,31 @@ func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVT(dAtA []byte) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Threshold.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if m.Comparator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Comparator)) + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x1a } - if len(m.ChannelName) > 0 { - i -= len(m.ChannelName) - copy(dAtA[i:], m.ChannelName) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelName))) + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) i-- dAtA[i] = 0x12 } - if len(m.ChannelComponent) > 0 { - i -= len(m.ChannelComponent) - copy(dAtA[i:], m.ChannelComponent) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelComponent))) + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *SingleChannelComparisonExpression_Double) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *SingleChannelComparisonExpression_Double) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Double)))) - i-- - dAtA[i] = 0x21 - return len(dAtA) - i, nil -} -func (m *SingleChannelComparisonExpression_String_) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *SingleChannelComparisonExpression_String_) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.String_) - copy(dAtA[i:], m.String_) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.String_))) - i-- - dAtA[i] = 0x2a - return len(dAtA) - i, nil -} -func (m *SingleChannelComparisonExpression_LastValue) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *SingleChannelComparisonExpression_LastValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.LastValue != nil { - size, err := m.LastValue.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *LastValueThreshold) MarshalVT() (dAtA []byte, err error) { +func (m *JsonRulesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -3871,12 +4257,12 @@ func (m *LastValueThreshold) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LastValueThreshold) MarshalToVT(dAtA []byte) (int, error) { +func (m *JsonRulesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *LastValueThreshold) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *JsonRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -3888,10 +4274,47 @@ func (m *LastValueThreshold) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if m.ErrorMessages != nil { + i -= len(*m.ErrorMessages) + copy(dAtA[i:], *m.ErrorMessages) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.ErrorMessages))) + i-- + dAtA[i] = 0x32 + } + if m.RulesDeletedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesDeletedCount)) + i-- + dAtA[i] = 0x28 + } + if m.RulesUpdatedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesUpdatedCount)) + i-- + dAtA[i] = 0x20 + } + if m.RulesCreatedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesCreatedCount)) + i-- + dAtA[i] = 0x18 + } + if m.TotalRulesCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TotalRulesCount)) + i-- + dAtA[i] = 0x10 + } + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } -func (m *CalculatedChannelConfig) MarshalVT() (dAtA []byte, err error) { +func (m *ValidateJsonRulesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -3904,12 +4327,12 @@ func (m *CalculatedChannelConfig) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CalculatedChannelConfig) MarshalToVT(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *CalculatedChannelConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -3921,39 +4344,20 @@ func (m *CalculatedChannelConfig) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Expression) > 0 { - i -= len(m.Expression) - copy(dAtA[i:], m.Expression) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Expression))) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 - } - if len(m.ChannelReferences) > 0 { - for k := range m.ChannelReferences { - v := m.ChannelReferences[k] - baseI := i - size, err := v.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ChannelReference) MarshalVT() (dAtA []byte, err error) { +func (m *ValidateJsonRulesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -3966,12 +4370,12 @@ func (m *ChannelReference) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ChannelReference) MarshalToVT(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *ChannelReference) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -3983,24 +4387,20 @@ func (m *ChannelReference) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Component))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if m.Response != nil { + size, err := m.Response.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleActionConfiguration) MarshalVT() (dAtA []byte, err error) { +func (m *UpdateJsonRulesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4013,12 +4413,12 @@ func (m *RuleActionConfiguration) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RuleActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *RuleActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4030,27 +4430,8 @@ func (m *RuleActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Configuration.(interface { - MarshalToSizedBufferVT([]byte) (int, error) - }); ok { - size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - return len(dAtA) - i, nil -} - -func (m *RuleActionConfiguration_Notification) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} - -func (m *RuleActionConfiguration_Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Notification != nil { - size, err := m.Notification.MarshalToSizedBufferVT(dAtA[:i]) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4061,26 +4442,8 @@ func (m *RuleActionConfiguration_Notification) MarshalToSizedBufferVT(dAtA []byt } return len(dAtA) - i, nil } -func (m *RuleActionConfiguration_Annotation) MarshalToVT(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVT(dAtA[:size]) -} -func (m *RuleActionConfiguration_Annotation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Annotation != nil { - size, err := m.Annotation.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *NotificationActionConfiguration) MarshalVT() (dAtA []byte, err error) { +func (m *UpdateJsonRulesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4093,12 +4456,12 @@ func (m *NotificationActionConfiguration) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *NotificationActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *NotificationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4110,19 +4473,20 @@ func (m *NotificationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (i i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RecipientUserIds) > 0 { - for iNdEx := len(m.RecipientUserIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RecipientUserIds[iNdEx]) - copy(dAtA[i:], m.RecipientUserIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientUserIds[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.Response != nil { + size, err := m.Response.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *AnnotationActionConfiguration) MarshalVT() (dAtA []byte, err error) { +func (m *RuleConditionExpression) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4135,12 +4499,12 @@ func (m *AnnotationActionConfiguration) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AnnotationActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { +func (m *RuleConditionExpression) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *AnnotationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *RuleConditionExpression) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4152,31 +4516,57 @@ func (m *AnnotationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.AssignedToUserId != nil { - i -= len(*m.AssignedToUserId) - copy(dAtA[i:], *m.AssignedToUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.AssignedToUserId))) - i-- - dAtA[i] = 0x1a + if vtmsg, ok := m.Expression.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.AnnotationType != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AnnotationType)) + return len(dAtA) - i, nil +} + +func (m *RuleConditionExpression_SingleChannelComparison) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RuleConditionExpression_SingleChannelComparison) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.SingleChannelComparison != nil { + size, err := m.SingleChannelComparison.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x10 + dAtA[i] = 0xa } - if len(m.TagIds) > 0 { - for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TagIds[iNdEx]) - copy(dAtA[i:], m.TagIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) - i-- - dAtA[i] = 0xa + return len(dAtA) - i, nil +} +func (m *RuleConditionExpression_CalculatedChannel) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RuleConditionExpression_CalculatedChannel) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.CalculatedChannel != nil { + size, err := m.CalculatedChannel.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } return len(dAtA) - i, nil } - -func (m *EvaluateRulesRequest) MarshalVT() (dAtA []byte, err error) { +func (m *SingleChannelComparisonExpression) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4189,12 +4579,12 @@ func (m *EvaluateRulesRequest) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EvaluateRulesRequest) MarshalToVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *EvaluateRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4206,7 +4596,7 @@ func (m *EvaluateRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if vtmsg, ok := m.Time.(interface { + if vtmsg, ok := m.Threshold.(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) @@ -4215,62 +4605,75 @@ func (m *EvaluateRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) } i -= size } - if m.AnnotationOptions != nil { - size, err := m.AnnotationOptions.MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.Comparator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Comparator)) + i-- + dAtA[i] = 0x18 + } + if len(m.ChannelName) > 0 { + i -= len(m.ChannelName) + copy(dAtA[i:], m.ChannelName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelName))) i-- dAtA[i] = 0x12 } - if len(m.RuleIds) > 0 { - for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RuleIds[iNdEx]) - copy(dAtA[i:], m.RuleIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } + if len(m.ChannelComponent) > 0 { + i -= len(m.ChannelComponent) + copy(dAtA[i:], m.ChannelComponent) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelComponent))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *EvaluateRulesRequest_RunId) MarshalToVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression_Double) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *EvaluateRulesRequest_RunId) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression_Double) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RunId))) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Double)))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x21 return len(dAtA) - i, nil } -func (m *EvaluateRulesRequest_TimeRange) MarshalToVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression_String_) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *EvaluateRulesRequest_TimeRange) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *SingleChannelComparisonExpression_String_) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i := len(dAtA) - if m.TimeRange != nil { - size, err := m.TimeRange.MarshalToSizedBufferVT(dAtA[:i]) + i -= len(m.String_) + copy(dAtA[i:], m.String_) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.String_))) + i-- + dAtA[i] = 0x2a + return len(dAtA) - i, nil +} +func (m *SingleChannelComparisonExpression_LastValue) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *SingleChannelComparisonExpression_LastValue) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.LastValue != nil { + size, err := m.LastValue.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 } return len(dAtA) - i, nil } -func (m *EvaluatedAnnotationOptions) MarshalVT() (dAtA []byte, err error) { +func (m *LastValueThreshold) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4283,12 +4686,12 @@ func (m *EvaluatedAnnotationOptions) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EvaluatedAnnotationOptions) MarshalToVT(dAtA []byte) (int, error) { +func (m *LastValueThreshold) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *LastValueThreshold) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4300,19 +4703,10 @@ func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVT(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.TagIds) > 0 { - for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TagIds[iNdEx]) - copy(dAtA[i:], m.TagIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *TimeRangeQuery) MarshalVT() (dAtA []byte, err error) { +func (m *CalculatedChannelConfig) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4325,12 +4719,12 @@ func (m *TimeRangeQuery) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TimeRangeQuery) MarshalToVT(dAtA []byte) (int, error) { +func (m *CalculatedChannelConfig) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *TimeRangeQuery) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *CalculatedChannelConfig) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4342,30 +4736,39 @@ func (m *TimeRangeQuery) MarshalToSizedBufferVT(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.EndTime != nil { - size, err := (*timestamppb1.Timestamp)(m.EndTime).MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.Expression) > 0 { + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Expression))) i-- dAtA[i] = 0x12 } - if m.StartTime != nil { - size, err := (*timestamppb1.Timestamp)(m.StartTime).MarshalToSizedBufferVT(dAtA[:i]) - if err != nil { - return 0, err + if len(m.ChannelReferences) > 0 { + for k := range m.ChannelReferences { + v := m.ChannelReferences[k] + baseI := i + size, err := v.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *EvaluateRulesResponse) MarshalVT() (dAtA []byte, err error) { +func (m *ChannelReference) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4378,12 +4781,12 @@ func (m *EvaluateRulesResponse) MarshalVT() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EvaluateRulesResponse) MarshalToVT(dAtA []byte) (int, error) { +func (m *ChannelReference) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *EvaluateRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { +func (m *ChannelReference) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4395,33 +4798,42 @@ func (m *EvaluateRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.CreatedAnnotationCount != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CreatedAnnotationCount)) + if len(m.Component) > 0 { + i -= len(m.Component) + copy(dAtA[i:], m.Component) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Component))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Rule) MarshalVTStrict() (dAtA []byte, err error) { +func (m *RuleActionConfiguration) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *Rule) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *RuleActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *Rule) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *RuleActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4433,126 +4845,117 @@ func (m *Rule) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Conditions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x62 + if vtmsg, ok := m.Configuration.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size } - if len(m.OrganizationId) > 0 { - i -= len(m.OrganizationId) - copy(dAtA[i:], m.OrganizationId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) - i-- - dAtA[i] = 0x5a - } - if len(m.ModifiedByUserId) > 0 { - i -= len(m.ModifiedByUserId) - copy(dAtA[i:], m.ModifiedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) - i-- - dAtA[i] = 0x52 - } - if len(m.CreatedByUserId) > 0 { - i -= len(m.CreatedByUserId) - copy(dAtA[i:], m.CreatedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) - i-- - dAtA[i] = 0x4a - } - if m.ModifiedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *RuleActionConfiguration_Notification) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RuleActionConfiguration_Notification) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Notification != nil { + size, err := m.Notification.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x42 + dAtA[i] = 0xa } - if m.CreatedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + return len(dAtA) - i, nil +} +func (m *RuleActionConfiguration_Annotation) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *RuleActionConfiguration_Annotation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Annotation != nil { + size, err := m.Annotation.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x3a - } - if m.IsEnabled { - i-- - if m.IsEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 + dAtA[i] = 0x12 } - if len(m.CurrentStatus) > 0 { - i -= len(m.CurrentStatus) - copy(dAtA[i:], m.CurrentStatus) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentStatus))) - i-- - dAtA[i] = 0x2a + return len(dAtA) - i, nil +} +func (m *NotificationActionConfiguration) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) - i-- - dAtA[i] = 0x22 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a + return dAtA[:n], nil +} + +func (m *NotificationActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *NotificationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } - if len(m.AssetId) > 0 { - i -= len(m.AssetId) - copy(dAtA[i:], m.AssetId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) - i-- - dAtA[i] = 0x12 + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) - i-- - dAtA[i] = 0xa + if len(m.RecipientUserIds) > 0 { + for iNdEx := len(m.RecipientUserIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RecipientUserIds[iNdEx]) + copy(dAtA[i:], m.RecipientUserIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientUserIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *RuleCondition) MarshalVTStrict() (dAtA []byte, err error) { +func (m *AnnotationActionConfiguration) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *RuleCondition) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *AnnotationActionConfiguration) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *RuleCondition) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *AnnotationActionConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4564,105 +4967,49 @@ func (m *RuleCondition) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Actions) > 0 { - for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Actions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x4a - } + if m.AssignedToUserId != nil { + i -= len(*m.AssignedToUserId) + copy(dAtA[i:], *m.AssignedToUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.AssignedToUserId))) + i-- + dAtA[i] = 0x1a } - if len(m.ModifiedByUserId) > 0 { - i -= len(m.ModifiedByUserId) - copy(dAtA[i:], m.ModifiedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + if m.AnnotationType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AnnotationType)) i-- - dAtA[i] = 0x42 + dAtA[i] = 0x10 } - if len(m.CreatedByUserId) > 0 { - i -= len(m.CreatedByUserId) - copy(dAtA[i:], m.CreatedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) - i-- - dAtA[i] = 0x3a - } - if m.ModifiedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 - } - if m.CreatedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x2a - } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x22 - } - if m.Expression != nil { - size, err := m.Expression.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err + if len(m.TagIds) > 0 { + for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TagIds[iNdEx]) + copy(dAtA[i:], m.TagIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) + i-- + dAtA[i] = 0xa } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) - i-- - dAtA[i] = 0x12 - } - if len(m.RuleConditionId) > 0 { - i -= len(m.RuleConditionId) - copy(dAtA[i:], m.RuleConditionId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleConditionId))) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleAction) MarshalVTStrict() (dAtA []byte, err error) { +func (m *EvaluateRulesRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *RuleAction) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *EvaluateRulesRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *RuleAction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *EvaluateRulesRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4674,42 +5021,60 @@ func (m *RuleAction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.ModifiedByUserId) > 0 { - i -= len(m.ModifiedByUserId) - copy(dAtA[i:], m.ModifiedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) - i-- - dAtA[i] = 0x42 - } - if len(m.CreatedByUserId) > 0 { - i -= len(m.CreatedByUserId) - copy(dAtA[i:], m.CreatedByUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) - i-- - dAtA[i] = 0x3a - } - if m.ModifiedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if vtmsg, ok := m.Time.(interface { + MarshalToSizedBufferVT([]byte) (int, error) + }); ok { + size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 } - if m.CreatedDate != nil { - size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if m.AnnotationOptions != nil { + size, err := m.AnnotationOptions.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x12 } - if m.Configuration != nil { - size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.RuleIds) > 0 { + for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RuleIds[iNdEx]) + copy(dAtA[i:], m.RuleIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *EvaluateRulesRequest_RunId) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *EvaluateRulesRequest_RunId) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.RunId) + copy(dAtA[i:], m.RunId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RunId))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *EvaluateRulesRequest_TimeRange) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *EvaluateRulesRequest_TimeRange) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + i := len(dAtA) + if m.TimeRange != nil { + size, err := m.TimeRange.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } @@ -4718,47 +5083,27 @@ func (m *RuleAction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.ActionType != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ActionType)) - i-- - dAtA[i] = 0x18 - } - if len(m.RuleConditionId) > 0 { - i -= len(m.RuleConditionId) - copy(dAtA[i:], m.RuleConditionId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleConditionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.RuleActionId) > 0 { - i -= len(m.RuleActionId) - copy(dAtA[i:], m.RuleActionId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleActionId))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } - -func (m *SearchRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *EvaluatedAnnotationOptions) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *SearchRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *EvaluatedAnnotationOptions) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *SearchRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4770,95 +5115,37 @@ func (m *SearchRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.AssetIds) > 0 { - for iNdEx := len(m.AssetIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.AssetIds[iNdEx]) - copy(dAtA[i:], m.AssetIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetIds[iNdEx]))) - i-- - dAtA[i] = 0x4a - } - } - if len(m.RuleIds) > 0 { - for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RuleIds[iNdEx]) - copy(dAtA[i:], m.RuleIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) + if len(m.TagIds) > 0 { + for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TagIds[iNdEx]) + copy(dAtA[i:], m.TagIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) i-- - dAtA[i] = 0x42 - } - } - if m.OrderBy != nil { - i -= len(*m.OrderBy) - copy(dAtA[i:], *m.OrderBy) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.OrderBy))) - i-- - dAtA[i] = 0x3a - } - if m.Regexp { - i-- - if m.Regexp { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.CaseSensitive { - i-- - if m.CaseSensitive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + dAtA[i] = 0xa } - i-- - dAtA[i] = 0x28 - } - if len(m.NameMatches) > 0 { - i -= len(m.NameMatches) - copy(dAtA[i:], m.NameMatches) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NameMatches))) - i-- - dAtA[i] = 0x22 - } - if m.Order != nil { - i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Order)) - i-- - dAtA[i] = 0x18 - } - if m.Offset != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x10 - } - if m.Limit != nil { - i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Limit)) - i-- - dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *SearchRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *TimeRangeQuery) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *SearchRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *TimeRangeQuery) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *SearchRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *TimeRangeQuery) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4870,45 +5157,48 @@ func (m *SearchRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Rules[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 + if m.EndTime != nil { + size, err := (*timestamppb1.Timestamp)(m.EndTime).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if m.Count != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Count)) + if m.StartTime != nil { + size, err := (*timestamppb1.Timestamp)(m.StartTime).MarshalToSizedBufferVT(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *EvaluateRulesResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *GetRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *EvaluateRulesResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) + return m.MarshalToSizedBufferVT(dAtA[:size]) } -func (m *GetRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *EvaluateRulesResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4920,17 +5210,15 @@ func (m *GetRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + if m.CreatedAnnotationCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CreatedAnnotationCount)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *GetRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *Rule) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -4943,12 +5231,12 @@ func (m *GetRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *Rule) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *GetRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *Rule) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -4960,62 +5248,108 @@ func (m *GetRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Rule != nil { - size, err := m.Rule.MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x62 + } + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x5a + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x52 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x4a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x42 } - return len(dAtA) - i, nil -} - -func (m *BatchGetRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { - if m == nil { - return nil, nil + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x3a } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) - if err != nil { - return nil, err + if m.IsEnabled { + i-- + if m.IsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 } - return dAtA[:n], nil -} - -func (m *BatchGetRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *BatchGetRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - if m == nil { - return 0, nil + if len(m.CurrentStatus) > 0 { + i -= len(m.CurrentStatus) + copy(dAtA[i:], m.CurrentStatus) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CurrentStatus))) + i-- + dAtA[i] = 0x2a } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x22 } - if len(m.RuleIds) > 0 { - for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RuleIds[iNdEx]) - copy(dAtA[i:], m.RuleIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *BatchGetRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *RuleCondition) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5028,12 +5362,12 @@ func (m *BatchGetRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *BatchGetRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *RuleCondition) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *BatchGetRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *RuleCondition) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5045,22 +5379,87 @@ func (m *BatchGetRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Rules) > 0 { - for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Rules[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Actions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x4a + } + } + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x22 + } + if m.Expression != nil { + size, err := m.Expression.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a + } + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + i-- + dAtA[i] = 0x12 + } + if len(m.RuleConditionId) > 0 { + i -= len(m.RuleConditionId) + copy(dAtA[i:], m.RuleConditionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleConditionId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *CreateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *RuleAction) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5073,12 +5472,12 @@ func (m *CreateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *RuleAction) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *CreateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *RuleAction) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5090,60 +5489,73 @@ func (m *CreateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Update != nil { - size, err := m.Update.MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.ModifiedByUserId) > 0 { + i -= len(m.ModifiedByUserId) + copy(dAtA[i:], m.ModifiedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ModifiedByUserId))) + i-- + dAtA[i] = 0x42 + } + if len(m.CreatedByUserId) > 0 { + i -= len(m.CreatedByUserId) + copy(dAtA[i:], m.CreatedByUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.CreatedByUserId))) + i-- + dAtA[i] = 0x3a + } + if m.ModifiedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.ModifiedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x32 } - return len(dAtA) - i, nil -} - -func (m *CreateRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { - if m == nil { - return nil, nil + if m.CreatedDate != nil { + size, err := (*timestamppb1.Timestamp)(m.CreatedDate).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x2a } - size := m.SizeVT() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) - if err != nil { - return nil, err + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 } - return dAtA[:n], nil -} - -func (m *CreateRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *CreateRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - if m == nil { - return 0, nil + if m.ActionType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ActionType)) + i-- + dAtA[i] = 0x18 } - i := len(dAtA) - _ = i - var l int - _ = l - if m.unknownFields != nil { - i -= len(m.unknownFields) - copy(dAtA[i:], m.unknownFields) + if len(m.RuleConditionId) > 0 { + i -= len(m.RuleConditionId) + copy(dAtA[i:], m.RuleConditionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleConditionId))) + i-- + dAtA[i] = 0x12 } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + if len(m.RuleActionId) > 0 { + i -= len(m.RuleActionId) + copy(dAtA[i:], m.RuleActionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleActionId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *SearchRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5156,12 +5568,12 @@ func (m *UpdateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *SearchRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *SearchRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5173,28 +5585,44 @@ func (m *UpdateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.OrganizationId) > 0 { - i -= len(m.OrganizationId) - copy(dAtA[i:], m.OrganizationId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + if len(m.AssetIds) > 0 { + for iNdEx := len(m.AssetIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AssetIds[iNdEx]) + copy(dAtA[i:], m.AssetIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetIds[iNdEx]))) + i-- + dAtA[i] = 0x4a + } + } + if len(m.RuleIds) > 0 { + for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RuleIds[iNdEx]) + copy(dAtA[i:], m.RuleIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if m.OrderBy != nil { + i -= len(*m.OrderBy) + copy(dAtA[i:], *m.OrderBy) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.OrderBy))) i-- dAtA[i] = 0x3a } - if len(m.Conditions) > 0 { - for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Conditions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 + if m.Regexp { + i-- + if m.Regexp { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x30 } - if m.IsEnabled { + if m.CaseSensitive { i-- - if m.IsEnabled { + if m.CaseSensitive { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -5202,38 +5630,32 @@ func (m *UpdateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i-- dAtA[i] = 0x28 } - if len(m.AssetId) > 0 { - i -= len(m.AssetId) - copy(dAtA[i:], m.AssetId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + if len(m.NameMatches) > 0 { + i -= len(m.NameMatches) + copy(dAtA[i:], m.NameMatches) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.NameMatches))) i-- dAtA[i] = 0x22 } - if len(m.Description) > 0 { - i -= len(m.Description) - copy(dAtA[i:], m.Description) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + if m.Order != nil { + i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Order)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if m.Offset != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Offset)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } - if m.RuleId != nil { - i -= len(*m.RuleId) - copy(dAtA[i:], *m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleId))) + if m.Limit != nil { + i = protohelpers.EncodeVarint(dAtA, i, uint64(*m.Limit)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *UpdateConditionRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *SearchRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5246,12 +5668,12 @@ func (m *UpdateConditionRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateConditionRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *SearchRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateConditionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *SearchRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5263,46 +5685,27 @@ func (m *UpdateConditionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Actions) > 0 { - for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { - size, err := m.Actions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Rules[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x22 - } - } - if m.Expression != nil { - size, err := m.Expression.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err + dAtA[i] = 0x12 } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if len(m.Status) > 0 { - i -= len(m.Status) - copy(dAtA[i:], m.Status) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) - i-- - dAtA[i] = 0x12 } - if m.RuleConditionId != nil { - i -= len(*m.RuleConditionId) - copy(dAtA[i:], *m.RuleConditionId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleConditionId))) + if m.Count != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Count)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *UpdateActionRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *GetRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5315,12 +5718,12 @@ func (m *UpdateActionRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateActionRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *GetRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateActionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *GetRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5332,32 +5735,17 @@ func (m *UpdateActionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, er i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.Configuration != nil { - size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x1a - } - if m.ActionType != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ActionType)) - i-- - dAtA[i] = 0x10 - } - if m.RuleActionId != nil { - i -= len(*m.RuleActionId) - copy(dAtA[i:], *m.RuleActionId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleActionId))) + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *GetRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5370,12 +5758,12 @@ func (m *UpdateRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *GetRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *GetRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5387,17 +5775,20 @@ func (m *UpdateRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + if m.Rule != nil { + size, err := m.Rule.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *DeleteRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *BatchGetRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5410,12 +5801,12 @@ func (m *DeleteRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *BatchGetRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *DeleteRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *BatchGetRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5427,17 +5818,19 @@ func (m *DeleteRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, erro i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RuleId) > 0 { - i -= len(m.RuleId) - copy(dAtA[i:], m.RuleId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) - i-- - dAtA[i] = 0xa + if len(m.RuleIds) > 0 { + for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RuleIds[iNdEx]) + copy(dAtA[i:], m.RuleIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *DeleteRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *BatchGetRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5450,12 +5843,12 @@ func (m *DeleteRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *BatchGetRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *DeleteRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *BatchGetRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5467,10 +5860,22 @@ func (m *DeleteRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.Rules) > 0 { + for iNdEx := len(m.Rules) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Rules[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa + } + } return len(dAtA) - i, nil } -func (m *ViewHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *CreateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5483,12 +5888,12 @@ func (m *ViewHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *ViewHumanFriendlyRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *CreateRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ViewHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *CreateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5500,17 +5905,20 @@ func (m *ViewHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.AssetId) > 0 { - i -= len(m.AssetId) - copy(dAtA[i:], m.AssetId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + if m.Update != nil { + size, err := m.Update.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ViewHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *CreateRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5523,12 +5931,12 @@ func (m *ViewHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err err return dAtA[:n], nil } -func (m *ViewHumanFriendlyRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *CreateRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ViewHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *CreateRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5540,17 +5948,17 @@ func (m *ViewHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byt i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RulesJson) > 0 { - i -= len(m.RulesJson) - copy(dAtA[i:], m.RulesJson) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5563,12 +5971,12 @@ func (m *UpdateHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err er return dAtA[:n], nil } -func (m *UpdateHumanFriendlyRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5585,26 +5993,62 @@ func (m *UpdateHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []by copy(dAtA[i:], m.OrganizationId) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x3a } - if len(m.RulesJson) > 0 { - i -= len(m.RulesJson) - copy(dAtA[i:], m.RulesJson) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) + if len(m.Conditions) > 0 { + for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Conditions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 + } + } + if m.IsEnabled { i-- - dAtA[i] = 0x12 + if m.IsEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 } if len(m.AssetId) > 0 { i -= len(m.AssetId) copy(dAtA[i:], m.AssetId) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- + dAtA[i] = 0x22 + } + if len(m.Description) > 0 { + i -= len(m.Description) + copy(dAtA[i:], m.Description) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Description))) + i-- + dAtA[i] = 0x1a + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + } + if m.RuleId != nil { + i -= len(*m.RuleId) + copy(dAtA[i:], *m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleId))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateConditionRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5617,12 +6061,12 @@ func (m *UpdateHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err e return dAtA[:n], nil } -func (m *UpdateHumanFriendlyRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateConditionRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateConditionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5634,32 +6078,46 @@ func (m *UpdateHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []b i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Messages) > 0 { - i -= len(m.Messages) - copy(dAtA[i:], m.Messages) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Messages))) + if len(m.Actions) > 0 { + for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { + size, err := m.Actions[iNdEx].MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + } + if m.Expression != nil { + size, err := m.Expression.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } - if m.RulesCount != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesCount)) + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Status))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } + if m.RuleConditionId != nil { + i -= len(*m.RuleConditionId) + copy(dAtA[i:], *m.RuleConditionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleConditionId))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleConditionExpression) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateActionRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5672,12 +6130,12 @@ func (m *RuleConditionExpression) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RuleConditionExpression) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateActionRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *RuleConditionExpression) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateActionRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5689,62 +6147,32 @@ func (m *RuleConditionExpression) MarshalToSizedBufferVTStrict(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if msg, ok := m.Expression.(*RuleConditionExpression_CalculatedChannel); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if m.Configuration != nil { + size, err := m.Configuration.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x1a } - if msg, ok := m.Expression.(*RuleConditionExpression_SingleChannelComparison); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size + if m.ActionType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.ActionType)) + i-- + dAtA[i] = 0x10 } - return len(dAtA) - i, nil -} - -func (m *RuleConditionExpression_SingleChannelComparison) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *RuleConditionExpression_SingleChannelComparison) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SingleChannelComparison != nil { - size, err := m.SingleChannelComparison.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if m.RuleActionId != nil { + i -= len(*m.RuleActionId) + copy(dAtA[i:], *m.RuleActionId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.RuleActionId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleConditionExpression_CalculatedChannel) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} -func (m *RuleConditionExpression_CalculatedChannel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - if m.CalculatedChannel != nil { - size, err := m.CalculatedChannel.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *SingleChannelComparisonExpression) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5757,12 +6185,12 @@ func (m *SingleChannelComparisonExpression) MarshalVTStrict() (dAtA []byte, err return dAtA[:n], nil } -func (m *SingleChannelComparisonExpression) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5774,96 +6202,17 @@ func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVTStrict(dAtA [] i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_LastValue); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + i-- + dAtA[i] = 0xa } - if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_String_); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_Double); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if m.Comparator != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Comparator)) - i-- - dAtA[i] = 0x18 - } - if len(m.ChannelName) > 0 { - i -= len(m.ChannelName) - copy(dAtA[i:], m.ChannelName) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelName))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChannelComponent) > 0 { - i -= len(m.ChannelComponent) - copy(dAtA[i:], m.ChannelComponent) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelComponent))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SingleChannelComparisonExpression_Double) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *SingleChannelComparisonExpression_Double) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - i -= 8 - binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Double)))) - i-- - dAtA[i] = 0x21 - return len(dAtA) - i, nil -} -func (m *SingleChannelComparisonExpression_String_) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *SingleChannelComparisonExpression_String_) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - i -= len(m.String_) - copy(dAtA[i:], m.String_) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.String_))) - i-- - dAtA[i] = 0x2a return len(dAtA) - i, nil } -func (m *SingleChannelComparisonExpression_LastValue) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} -func (m *SingleChannelComparisonExpression_LastValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - if m.LastValue != nil { - size, err := m.LastValue.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *LastValueThreshold) MarshalVTStrict() (dAtA []byte, err error) { +func (m *DeleteRuleRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5876,12 +6225,12 @@ func (m *LastValueThreshold) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *LastValueThreshold) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *DeleteRuleRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *LastValueThreshold) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *DeleteRuleRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5893,10 +6242,17 @@ func (m *LastValueThreshold) MarshalToSizedBufferVTStrict(dAtA []byte) (int, err i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } + if len(m.RuleId) > 0 { + i -= len(m.RuleId) + copy(dAtA[i:], m.RuleId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleId))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *CalculatedChannelConfig) MarshalVTStrict() (dAtA []byte, err error) { +func (m *DeleteRuleResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5909,12 +6265,12 @@ func (m *CalculatedChannelConfig) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CalculatedChannelConfig) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *DeleteRuleResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *CalculatedChannelConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *DeleteRuleResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5926,39 +6282,10 @@ func (m *CalculatedChannelConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Expression) > 0 { - i -= len(m.Expression) - copy(dAtA[i:], m.Expression) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Expression))) - i-- - dAtA[i] = 0x12 - } - if len(m.ChannelReferences) > 0 { - for k := range m.ChannelReferences { - v := m.ChannelReferences[k] - baseI := i - size, err := v.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0xa - } - } return len(dAtA) - i, nil } -func (m *ChannelReference) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ViewHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -5971,12 +6298,12 @@ func (m *ChannelReference) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ChannelReference) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ViewHumanFriendlyRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ChannelReference) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ViewHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -5988,24 +6315,17 @@ func (m *ChannelReference) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.Component) > 0 { - i -= len(m.Component) - copy(dAtA[i:], m.Component) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Component))) - i-- - dAtA[i] = 0x12 - } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ViewHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6018,12 +6338,12 @@ func (m *RuleActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RuleActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ViewHumanFriendlyRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *RuleActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ViewHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6035,62 +6355,17 @@ func (m *RuleActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if msg, ok := m.Configuration.(*RuleActionConfiguration_Annotation); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if msg, ok := m.Configuration.(*RuleActionConfiguration_Notification); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - return len(dAtA) - i, nil -} - -func (m *RuleActionConfiguration_Notification) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} - -func (m *RuleActionConfiguration_Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Notification != nil { - size, err := m.Notification.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RuleActionConfiguration_Annotation) MarshalToVTStrict(dAtA []byte) (int, error) { - size := m.SizeVT() - return m.MarshalToSizedBufferVTStrict(dAtA[:size]) -} -func (m *RuleActionConfiguration_Annotation) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Annotation != nil { - size, err := m.Annotation.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *NotificationActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateHumanFriendlyRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6103,12 +6378,12 @@ func (m *NotificationActionConfiguration) MarshalVTStrict() (dAtA []byte, err er return dAtA[:n], nil } -func (m *NotificationActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateHumanFriendlyRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *NotificationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateHumanFriendlyRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6120,19 +6395,31 @@ func (m *NotificationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []by i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.RecipientUserIds) > 0 { - for iNdEx := len(m.RecipientUserIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RecipientUserIds[iNdEx]) - copy(dAtA[i:], m.RecipientUserIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientUserIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) + i-- + dAtA[i] = 0x1a + } + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) + i-- + dAtA[i] = 0x12 + } + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *AnnotationActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateHumanFriendlyRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6145,12 +6432,12 @@ func (m *AnnotationActionConfiguration) MarshalVTStrict() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *AnnotationActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateHumanFriendlyRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *AnnotationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateHumanFriendlyRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6162,31 +6449,32 @@ func (m *AnnotationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.AssignedToUserId != nil { - i -= len(*m.AssignedToUserId) - copy(dAtA[i:], *m.AssignedToUserId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.AssignedToUserId))) + if len(m.Messages) > 0 { + i -= len(m.Messages) + copy(dAtA[i:], m.Messages) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Messages))) i-- dAtA[i] = 0x1a } - if m.AnnotationType != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AnnotationType)) + if m.RulesCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesCount)) i-- dAtA[i] = 0x10 } - if len(m.TagIds) > 0 { - for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TagIds[iNdEx]) - copy(dAtA[i:], m.TagIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *EvaluateRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ViewJsonRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6199,12 +6487,12 @@ func (m *EvaluateRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EvaluateRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ViewJsonRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *EvaluateRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ViewJsonRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6216,76 +6504,111 @@ func (m *EvaluateRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, e i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if msg, ok := m.Time.(*EvaluateRulesRequest_TimeRange); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if msg, ok := m.Time.(*EvaluateRulesRequest_RunId); ok { - size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - } - if m.AnnotationOptions != nil { - size, err := m.AnnotationOptions.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) i-- - dAtA[i] = 0x12 - } - if len(m.RuleIds) > 0 { - for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RuleIds[iNdEx]) - copy(dAtA[i:], m.RuleIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *EvaluateRulesRequest_RunId) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ViewJsonRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ViewJsonRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *EvaluateRulesRequest_RunId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ViewJsonRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - i -= len(m.RunId) - copy(dAtA[i:], m.RunId) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RunId))) - i-- - dAtA[i] = 0x1a + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *EvaluateRulesRequest_TimeRange) MarshalToVTStrict(dAtA []byte) (int, error) { + +func (m *JsonRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *JsonRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *EvaluateRulesRequest_TimeRange) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *JsonRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } i := len(dAtA) - if m.TimeRange != nil { - size, err := m.TimeRange.MarshalToSizedBufferVTStrict(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.OrganizationId) > 0 { + i -= len(m.OrganizationId) + copy(dAtA[i:], m.OrganizationId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.OrganizationId))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a + } + if len(m.RulesJson) > 0 { + i -= len(m.RulesJson) + copy(dAtA[i:], m.RulesJson) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RulesJson))) + i-- + dAtA[i] = 0x12 + } + if len(m.AssetId) > 0 { + i -= len(m.AssetId) + copy(dAtA[i:], m.AssetId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssetId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *EvaluatedAnnotationOptions) MarshalVTStrict() (dAtA []byte, err error) { + +func (m *JsonRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6298,12 +6621,12 @@ func (m *EvaluatedAnnotationOptions) MarshalVTStrict() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *EvaluatedAnnotationOptions) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *JsonRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *JsonRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6315,19 +6638,47 @@ func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVTStrict(dAtA []byte) ( i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if len(m.TagIds) > 0 { - for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.TagIds[iNdEx]) - copy(dAtA[i:], m.TagIds[iNdEx]) - i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) - i-- - dAtA[i] = 0xa + if m.ErrorMessages != nil { + i -= len(*m.ErrorMessages) + copy(dAtA[i:], *m.ErrorMessages) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.ErrorMessages))) + i-- + dAtA[i] = 0x32 + } + if m.RulesDeletedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesDeletedCount)) + i-- + dAtA[i] = 0x28 + } + if m.RulesUpdatedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesUpdatedCount)) + i-- + dAtA[i] = 0x20 + } + if m.RulesCreatedCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.RulesCreatedCount)) + i-- + dAtA[i] = 0x18 + } + if m.TotalRulesCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TotalRulesCount)) + i-- + dAtA[i] = 0x10 + } + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *TimeRangeQuery) MarshalVTStrict() (dAtA []byte, err error) { +func (m *ValidateJsonRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6340,12 +6691,12 @@ func (m *TimeRangeQuery) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *TimeRangeQuery) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *TimeRangeQuery) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *ValidateJsonRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6357,18 +6708,51 @@ func (m *TimeRangeQuery) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.EndTime != nil { - size, err := (*timestamppb1.Timestamp)(m.EndTime).MarshalToSizedBufferVTStrict(dAtA[:i]) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0xa } - if m.StartTime != nil { - size, err := (*timestamppb1.Timestamp)(m.StartTime).MarshalToSizedBufferVTStrict(dAtA[:i]) + return len(dAtA) - i, nil +} + +func (m *ValidateJsonRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValidateJsonRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ValidateJsonRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Response != nil { + size, err := m.Response.MarshalToSizedBufferVTStrict(dAtA[:i]) if err != nil { return 0, err } @@ -6380,7 +6764,7 @@ func (m *TimeRangeQuery) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *EvaluateRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { +func (m *UpdateJsonRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { return nil, nil } @@ -6393,12 +6777,12 @@ func (m *EvaluateRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EvaluateRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *EvaluateRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { +func (m *UpdateJsonRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { return 0, nil } @@ -6410,702 +6794,1006 @@ func (m *EvaluateRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } - if m.CreatedAnnotationCount != 0 { - i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CreatedAnnotationCount)) + if m.Request != nil { + size, err := m.Request.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *Rule) SizeVT() (n int) { +func (m *UpdateJsonRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UpdateJsonRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *UpdateJsonRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + if m == nil { + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.AssetId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.CurrentStatus) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.IsEnabled { - n += 2 - } - if m.CreatedDate != nil { - l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ModifiedDate != nil { - l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.CreatedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ModifiedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.OrganizationId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Response != nil { + size, err := m.Response.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *RuleCondition) SizeVT() (n int) { +func (m *RuleConditionExpression) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RuleConditionId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Expression != nil { - l = m.Expression.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.CreatedDate != nil { - l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.ModifiedDate != nil { - l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.CreatedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ModifiedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return nil, nil } - if len(m.Actions) > 0 { - for _, e := range m.Actions { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *RuleAction) SizeVT() (n int) { +func (m *RuleConditionExpression) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *RuleConditionExpression) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.RuleActionId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RuleConditionId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.ActionType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionType)) + if msg, ok := m.Expression.(*RuleConditionExpression_CalculatedChannel); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.Configuration != nil { - l = m.Configuration.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if msg, ok := m.Expression.(*RuleConditionExpression_SingleChannelComparison); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.CreatedDate != nil { - l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *RuleConditionExpression_SingleChannelComparison) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *RuleConditionExpression_SingleChannelComparison) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.SingleChannelComparison != nil { + size, err := m.SingleChannelComparison.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - if m.ModifiedDate != nil { - l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} +func (m *RuleConditionExpression_CalculatedChannel) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *RuleConditionExpression_CalculatedChannel) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.CalculatedChannel != nil { + size, err := m.CalculatedChannel.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - l = len(m.CreatedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} +func (m *SingleChannelComparisonExpression) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - l = len(m.ModifiedByUserId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *SearchRulesRequest) SizeVT() (n int) { +func (m *SingleChannelComparisonExpression) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *SingleChannelComparisonExpression) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Limit != nil { - n += 1 + protohelpers.SizeOfVarint(uint64(*m.Limit)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Offset != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Offset)) + if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_LastValue); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.Order != nil { - n += 1 + protohelpers.SizeOfVarint(uint64(*m.Order)) + if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_String_); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - l = len(m.NameMatches) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if msg, ok := m.Threshold.(*SingleChannelComparisonExpression_Double); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.CaseSensitive { - n += 2 + if m.Comparator != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Comparator)) + i-- + dAtA[i] = 0x18 } - if m.Regexp { - n += 2 + if len(m.ChannelName) > 0 { + i -= len(m.ChannelName) + copy(dAtA[i:], m.ChannelName) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelName))) + i-- + dAtA[i] = 0x12 } - if m.OrderBy != nil { - l = len(*m.OrderBy) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.RuleIds) > 0 { - for _, s := range m.RuleIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + if len(m.ChannelComponent) > 0 { + i -= len(m.ChannelComponent) + copy(dAtA[i:], m.ChannelComponent) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ChannelComponent))) + i-- + dAtA[i] = 0xa } - if len(m.AssetIds) > 0 { - for _, s := range m.AssetIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return len(dAtA) - i, nil +} + +func (m *SingleChannelComparisonExpression_Double) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *SingleChannelComparisonExpression_Double) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Double)))) + i-- + dAtA[i] = 0x21 + return len(dAtA) - i, nil +} +func (m *SingleChannelComparisonExpression_String_) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *SingleChannelComparisonExpression_String_) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.String_) + copy(dAtA[i:], m.String_) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.String_))) + i-- + dAtA[i] = 0x2a + return len(dAtA) - i, nil +} +func (m *SingleChannelComparisonExpression_LastValue) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *SingleChannelComparisonExpression_LastValue) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.LastValue != nil { + size, err := m.LastValue.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x32 } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } - -func (m *SearchRulesResponse) SizeVT() (n int) { +func (m *LastValueThreshold) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 - } - var l int - _ = l - if m.Count != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Count)) + return nil, nil } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *GetRuleRequest) SizeVT() (n int) { +func (m *LastValueThreshold) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *LastValueThreshold) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *GetRuleResponse) SizeVT() (n int) { +func (m *CalculatedChannelConfig) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if m.Rule != nil { - l = m.Rule.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *BatchGetRulesRequest) SizeVT() (n int) { +func (m *CalculatedChannelConfig) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *CalculatedChannelConfig) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if len(m.RuleIds) > 0 { - for _, s := range m.RuleIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if len(m.Expression) > 0 { + i -= len(m.Expression) + copy(dAtA[i:], m.Expression) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Expression))) + i-- + dAtA[i] = 0x12 + } + if len(m.ChannelReferences) > 0 { + for k := range m.ChannelReferences { + v := m.ChannelReferences[k] + baseI := i + size, err := v.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 + i -= len(k) + copy(dAtA[i:], k) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa } } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *BatchGetRulesResponse) SizeVT() (n int) { +func (m *ChannelReference) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *CreateRuleRequest) SizeVT() (n int) { +func (m *ChannelReference) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *ChannelReference) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.Update != nil { - l = m.Update.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - n += len(m.unknownFields) - return n + if len(m.Component) > 0 { + i -= len(m.Component) + copy(dAtA[i:], m.Component) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Component))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *CreateRuleResponse) SizeVT() (n int) { +func (m *RuleActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *UpdateRuleRequest) SizeVT() (n int) { +func (m *RuleActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *RuleActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.RuleId != nil { - l = len(*m.RuleId) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Description) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.AssetId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.IsEnabled { - n += 2 + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if len(m.Conditions) > 0 { - for _, e := range m.Conditions { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if msg, ok := m.Configuration.(*RuleActionConfiguration_Annotation); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err } + i -= size } - l = len(m.OrganizationId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if msg, ok := m.Configuration.(*RuleActionConfiguration_Notification); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *UpdateConditionRequest) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RuleConditionId != nil { - l = len(*m.RuleConditionId) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.Status) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.Expression != nil { - l = m.Expression.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if len(m.Actions) > 0 { - for _, e := range m.Actions { - l = e.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) +func (m *RuleActionConfiguration_Notification) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *RuleActionConfiguration_Notification) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Notification != nil { + size, err := m.Notification.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil +} +func (m *RuleActionConfiguration_Annotation) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *UpdateActionRequest) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RuleActionId != nil { - l = len(*m.RuleActionId) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) +func (m *RuleActionConfiguration_Annotation) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Annotation != nil { + size, err := m.Annotation.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if m.ActionType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionType)) + return len(dAtA) - i, nil +} +func (m *NotificationActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { + if m == nil { + return nil, nil } - if m.Configuration != nil { - l = m.Configuration.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *UpdateRuleResponse) SizeVT() (n int) { +func (m *NotificationActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *NotificationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - n += len(m.unknownFields) - return n + if len(m.RecipientUserIds) > 0 { + for iNdEx := len(m.RecipientUserIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RecipientUserIds[iNdEx]) + copy(dAtA[i:], m.RecipientUserIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RecipientUserIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } -func (m *DeleteRuleRequest) SizeVT() (n int) { +func (m *AnnotationActionConfiguration) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - l = len(m.RuleId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *DeleteRuleResponse) SizeVT() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - n += len(m.unknownFields) - return n +func (m *AnnotationActionConfiguration) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) } -func (m *ViewHumanFriendlyRulesRequest) SizeVT() (n int) { +func (m *AnnotationActionConfiguration) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.AssetId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - n += len(m.unknownFields) - return n + if m.AssignedToUserId != nil { + i -= len(*m.AssignedToUserId) + copy(dAtA[i:], *m.AssignedToUserId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(*m.AssignedToUserId))) + i-- + dAtA[i] = 0x1a + } + if m.AnnotationType != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.AnnotationType)) + i-- + dAtA[i] = 0x10 + } + if len(m.TagIds) > 0 { + for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TagIds[iNdEx]) + copy(dAtA[i:], m.TagIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } -func (m *ViewHumanFriendlyRulesResponse) SizeVT() (n int) { +func (m *EvaluateRulesRequest) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - l = len(m.RulesJson) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *UpdateHumanFriendlyRulesRequest) SizeVT() (n int) { +func (m *EvaluateRulesRequest) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EvaluateRulesRequest) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.AssetId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.RulesJson) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - l = len(m.OrganizationId) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - n += len(m.unknownFields) - return n -} - -func (m *UpdateHumanFriendlyRulesResponse) SizeVT() (n int) { - if m == nil { - return 0 + if msg, ok := m.Time.(*EvaluateRulesRequest_TimeRange); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - var l int - _ = l - if m.Success { - n += 2 + if msg, ok := m.Time.(*EvaluateRulesRequest_RunId); ok { + size, err := msg.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size } - if m.RulesCount != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.RulesCount)) + if m.AnnotationOptions != nil { + size, err := m.AnnotationOptions.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - l = len(m.Messages) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.RuleIds) > 0 { + for iNdEx := len(m.RuleIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RuleIds[iNdEx]) + copy(dAtA[i:], m.RuleIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RuleIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *RuleConditionExpression) SizeVT() (n int) { +func (m *EvaluateRulesRequest_RunId) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EvaluateRulesRequest_RunId) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.RunId) + copy(dAtA[i:], m.RunId) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.RunId))) + i-- + dAtA[i] = 0x1a + return len(dAtA) - i, nil +} +func (m *EvaluateRulesRequest_TimeRange) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EvaluateRulesRequest_TimeRange) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { + i := len(dAtA) + if m.TimeRange != nil { + size, err := m.TimeRange.MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} +func (m *EvaluatedAnnotationOptions) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if vtmsg, ok := m.Expression.(interface{ SizeVT() int }); ok { - n += vtmsg.SizeVT() + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - n += len(m.unknownFields) - return n + return dAtA[:n], nil } -func (m *RuleConditionExpression_SingleChannelComparison) SizeVT() (n int) { +func (m *EvaluatedAnnotationOptions) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EvaluatedAnnotationOptions) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.SingleChannelComparison != nil { - l = m.SingleChannelComparison.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - return n + if len(m.TagIds) > 0 { + for iNdEx := len(m.TagIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TagIds[iNdEx]) + copy(dAtA[i:], m.TagIds[iNdEx]) + i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.TagIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil } -func (m *RuleConditionExpression_CalculatedChannel) SizeVT() (n int) { + +func (m *TimeRangeQuery) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - if m.CalculatedChannel != nil { - l = m.CalculatedChannel.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SingleChannelComparisonExpression) SizeVT() (n int) { + +func (m *TimeRangeQuery) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *TimeRangeQuery) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ChannelComponent) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - l = len(m.ChannelName) - if l > 0 { - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - if m.Comparator != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.Comparator)) + if m.EndTime != nil { + size, err := (*timestamppb1.Timestamp)(m.EndTime).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0x12 } - if vtmsg, ok := m.Threshold.(interface{ SizeVT() int }); ok { - n += vtmsg.SizeVT() + if m.StartTime != nil { + size, err := (*timestamppb1.Timestamp)(m.StartTime).MarshalToSizedBufferVTStrict(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *SingleChannelComparisonExpression_Double) SizeVT() (n int) { +func (m *EvaluateRulesResponse) MarshalVTStrict() (dAtA []byte, err error) { if m == nil { - return 0 + return nil, nil } - var l int - _ = l - n += 9 - return n -} -func (m *SingleChannelComparisonExpression_String_) SizeVT() (n int) { - if m == nil { - return 0 + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVTStrict(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - l = len(m.String_) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - return n + return dAtA[:n], nil } -func (m *SingleChannelComparisonExpression_LastValue) SizeVT() (n int) { + +func (m *EvaluateRulesResponse) MarshalToVTStrict(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVTStrict(dAtA[:size]) +} + +func (m *EvaluateRulesResponse) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error) { if m == nil { - return 0 + return 0, nil } + i := len(dAtA) + _ = i var l int _ = l - if m.LastValue != nil { - l = m.LastValue.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) } - return n -} -func (m *LastValueThreshold) SizeVT() (n int) { - if m == nil { - return 0 + if m.CreatedAnnotationCount != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.CreatedAnnotationCount)) + i-- + dAtA[i] = 0x8 } - var l int - _ = l - n += len(m.unknownFields) - return n + return len(dAtA) - i, nil } -func (m *CalculatedChannelConfig) SizeVT() (n int) { +func (m *Rule) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.ChannelReferences) > 0 { - for k, v := range m.ChannelReferences { - _ = k - _ = v - l = 0 - if v != nil { - l = v.SizeVT() - } - l += 1 + protohelpers.SizeOfVarint(uint64(l)) - mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l - n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) - } + l = len(m.RuleId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Expression) + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CurrentStatus) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsEnabled { + n += 2 + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *ChannelReference) SizeVT() (n int) { +func (m *RuleCondition) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Name) + l = len(m.RuleConditionId) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - l = len(m.Component) + l = len(m.RuleId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Expression != nil { + l = m.Expression.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Status) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } n += len(m.unknownFields) return n } -func (m *RuleActionConfiguration) SizeVT() (n int) { +func (m *RuleAction) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if vtmsg, ok := m.Configuration.(interface{ SizeVT() int }); ok { - n += vtmsg.SizeVT() + l = len(m.RuleActionId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RuleConditionId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ActionType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionType)) + } + if m.Configuration != nil { + l = m.Configuration.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.CreatedDate != nil { + l = (*timestamppb1.Timestamp)(m.CreatedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ModifiedDate != nil { + l = (*timestamppb1.Timestamp)(m.ModifiedDate).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.CreatedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ModifiedByUserId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *RuleActionConfiguration_Notification) SizeVT() (n int) { +func (m *SearchRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.Notification != nil { - l = m.Notification.SizeVT() + if m.Limit != nil { + n += 1 + protohelpers.SizeOfVarint(uint64(*m.Limit)) + } + if m.Offset != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Offset)) + } + if m.Order != nil { + n += 1 + protohelpers.SizeOfVarint(uint64(*m.Order)) + } + l = len(m.NameMatches) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - return n -} -func (m *RuleActionConfiguration_Annotation) SizeVT() (n int) { - if m == nil { - return 0 + if m.CaseSensitive { + n += 2 } - var l int - _ = l - if m.Annotation != nil { - l = m.Annotation.SizeVT() + if m.Regexp { + n += 2 + } + if m.OrderBy != nil { + l = len(*m.OrderBy) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - return n -} -func (m *NotificationActionConfiguration) SizeVT() (n int) { - if m == nil { - return 0 + if len(m.RuleIds) > 0 { + for _, s := range m.RuleIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } - var l int - _ = l - if len(m.RecipientUserIds) > 0 { - for _, s := range m.RecipientUserIds { + if len(m.AssetIds) > 0 { + for _, s := range m.AssetIds { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } @@ -7114,83 +7802,78 @@ func (m *NotificationActionConfiguration) SizeVT() (n int) { return n } -func (m *AnnotationActionConfiguration) SizeVT() (n int) { +func (m *SearchRulesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.TagIds) > 0 { - for _, s := range m.TagIds { - l = len(s) + if m.Count != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Count)) + } + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } - if m.AnnotationType != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.AnnotationType)) - } - if m.AssignedToUserId != nil { - l = len(*m.AssignedToUserId) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } n += len(m.unknownFields) return n } -func (m *EvaluateRulesRequest) SizeVT() (n int) { +func (m *GetRuleRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.RuleIds) > 0 { - for _, s := range m.RuleIds { - l = len(s) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - } - if m.AnnotationOptions != nil { - l = m.AnnotationOptions.SizeVT() + l = len(m.RuleId) + if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } - if vtmsg, ok := m.Time.(interface{ SizeVT() int }); ok { - n += vtmsg.SizeVT() - } n += len(m.unknownFields) return n } -func (m *EvaluateRulesRequest_RunId) SizeVT() (n int) { +func (m *GetRuleResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.RunId) - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if m.Rule != nil { + l = m.Rule.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) return n } -func (m *EvaluateRulesRequest_TimeRange) SizeVT() (n int) { + +func (m *BatchGetRulesRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.TimeRange != nil { - l = m.TimeRange.SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + if len(m.RuleIds) > 0 { + for _, s := range m.RuleIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } } + n += len(m.unknownFields) return n } -func (m *EvaluatedAnnotationOptions) SizeVT() (n int) { + +func (m *BatchGetRulesResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.TagIds) > 0 { - for _, s := range m.TagIds { - l = len(s) + if len(m.Rules) > 0 { + for _, e := range m.Rules { + l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } @@ -7198,69 +7881,1863 @@ func (m *EvaluatedAnnotationOptions) SizeVT() (n int) { return n } -func (m *TimeRangeQuery) SizeVT() (n int) { +func (m *CreateRuleRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.StartTime != nil { - l = (*timestamppb1.Timestamp)(m.StartTime).SizeVT() - n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) - } - if m.EndTime != nil { - l = (*timestamppb1.Timestamp)(m.EndTime).SizeVT() + if m.Update != nil { + l = m.Update.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *EvaluateRulesResponse) SizeVT() (n int) { +func (m *CreateRuleResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l - if m.CreatedAnnotationCount != 0 { - n += 1 + protohelpers.SizeOfVarint(uint64(m.CreatedAnnotationCount)) + l = len(m.RuleId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } -func (m *Rule) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow +func (m *UpdateRuleRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RuleId != nil { + l = len(*m.RuleId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.IsEnabled { + n += 2 + } + if len(m.Conditions) > 0 { + for _, e := range m.Conditions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateConditionRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RuleConditionId != nil { + l = len(*m.RuleConditionId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Expression != nil { + l = m.Expression.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if len(m.Actions) > 0 { + for _, e := range m.Actions { + l = e.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateActionRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.RuleActionId != nil { + l = len(*m.RuleActionId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.ActionType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.ActionType)) + } + if m.Configuration != nil { + l = m.Configuration.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateRuleResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RuleId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *DeleteRuleRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RuleId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *DeleteRuleResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *ViewHumanFriendlyRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ViewHumanFriendlyRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RulesJson) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateHumanFriendlyRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RulesJson) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateHumanFriendlyRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Success { + n += 2 + } + if m.RulesCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RulesCount)) + } + l = len(m.Messages) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ViewJsonRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ViewJsonRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RulesJson) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *JsonRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AssetId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.RulesJson) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.OrganizationId) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *JsonRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Success { + n += 2 + } + if m.TotalRulesCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.TotalRulesCount)) + } + if m.RulesCreatedCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RulesCreatedCount)) + } + if m.RulesUpdatedCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RulesUpdatedCount)) + } + if m.RulesDeletedCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.RulesDeletedCount)) + } + if m.ErrorMessages != nil { + l = len(*m.ErrorMessages) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateJsonRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ValidateJsonRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Response != nil { + l = m.Response.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateJsonRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Request != nil { + l = m.Request.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *UpdateJsonRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Response != nil { + l = m.Response.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *RuleConditionExpression) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if vtmsg, ok := m.Expression.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *RuleConditionExpression_SingleChannelComparison) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.SingleChannelComparison != nil { + l = m.SingleChannelComparison.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *RuleConditionExpression_CalculatedChannel) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CalculatedChannel != nil { + l = m.CalculatedChannel.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *SingleChannelComparisonExpression) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ChannelComponent) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.ChannelName) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.Comparator != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.Comparator)) + } + if vtmsg, ok := m.Threshold.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *SingleChannelComparisonExpression_Double) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *SingleChannelComparisonExpression_String_) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.String_) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *SingleChannelComparisonExpression_LastValue) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.LastValue != nil { + l = m.LastValue.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *LastValueThreshold) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += len(m.unknownFields) + return n +} + +func (m *CalculatedChannelConfig) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ChannelReferences) > 0 { + for k, v := range m.ChannelReferences { + _ = k + _ = v + l = 0 + if v != nil { + l = v.SizeVT() + } + l += 1 + protohelpers.SizeOfVarint(uint64(l)) + mapEntrySize := 1 + len(k) + protohelpers.SizeOfVarint(uint64(len(k))) + l + n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) + } + } + l = len(m.Expression) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *ChannelReference) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + l = len(m.Component) + if l > 0 { + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *RuleActionConfiguration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if vtmsg, ok := m.Configuration.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *RuleActionConfiguration_Notification) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Notification != nil { + l = m.Notification.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *RuleActionConfiguration_Annotation) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Annotation != nil { + l = m.Annotation.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *NotificationActionConfiguration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RecipientUserIds) > 0 { + for _, s := range m.RecipientUserIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *AnnotationActionConfiguration) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TagIds) > 0 { + for _, s := range m.TagIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.AnnotationType != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.AnnotationType)) + } + if m.AssignedToUserId != nil { + l = len(*m.AssignedToUserId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *EvaluateRulesRequest) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.RuleIds) > 0 { + for _, s := range m.RuleIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + if m.AnnotationOptions != nil { + l = m.AnnotationOptions.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if vtmsg, ok := m.Time.(interface{ SizeVT() int }); ok { + n += vtmsg.SizeVT() + } + n += len(m.unknownFields) + return n +} + +func (m *EvaluateRulesRequest_RunId) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RunId) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + return n +} +func (m *EvaluateRulesRequest_TimeRange) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TimeRange != nil { + l = m.TimeRange.SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + return n +} +func (m *EvaluatedAnnotationOptions) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TagIds) > 0 { + for _, s := range m.TagIds { + l = len(s) + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + } + n += len(m.unknownFields) + return n +} + +func (m *TimeRangeQuery) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartTime != nil { + l = (*timestamppb1.Timestamp)(m.StartTime).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + if m.EndTime != nil { + l = (*timestamppb1.Timestamp)(m.EndTime).SizeVT() + n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) + } + n += len(m.unknownFields) + return n +} + +func (m *EvaluateRulesResponse) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.CreatedAnnotationCount != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.CreatedAnnotationCount)) + } + n += len(m.unknownFields) + return n +} + +func (m *Rule) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Rule: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AssetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Description = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CurrentStatus = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsEnabled = bool(v != 0) + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, &RuleCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuleCondition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuleCondition: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleConditionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Expression == nil { + m.Expression = &RuleConditionExpression{} + } + if err := m.Expression.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &RuleAction{}) + if err := m.Actions[len(m.Actions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuleAction) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuleAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuleAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleActionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleConditionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + } + m.ActionType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActionType |= ActionKind(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &RuleActionConfiguration{} + } + if err := m.Configuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SearchRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Limit = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) + } + var v SearchOrder + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= SearchOrder(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Order = &v + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NameMatches", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7288,11 +9765,51 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + m.NameMatches = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CaseSensitive = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Regexp", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Regexp = bool(v != 0) + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7320,11 +9837,12 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AssetId = string(dAtA[iNdEx:postIndex]) + s := string(dAtA[iNdEx:postIndex]) + m.OrderBy = &s iNdEx = postIndex - case 3: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7352,11 +9870,11 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 4: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7384,11 +9902,166 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Description = string(dAtA[iNdEx:postIndex]) + m.AssetIds = append(m.AssetIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SearchRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Count |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Rules = append(m.Rules, &Rule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRuleRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7416,31 +10089,62 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CurrentStatus = string(dAtA[iNdEx:postIndex]) + m.RuleId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.IsEnabled = bool(v != 0) - case 7: + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRuleResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7467,18 +10171,69 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} + if m.Rule == nil { + m.Rule = &Rule{} } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Rule.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 8: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchGetRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchGetRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchGetRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7488,33 +10243,80 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 9: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchGetRulesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchGetRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchGetRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7524,29 +10326,82 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: + m.Rules = append(m.Rules, &Rule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRuleRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7556,61 +10411,84 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + if m.Update == nil { + m.Update = &UpdateRuleRequest{} } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Update.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.OrganizationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRuleResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7620,25 +10498,23 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Conditions = append(m.Conditions, &RuleCondition{}) - if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.RuleId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -7662,7 +10538,7 @@ func (m *Rule) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { +func (m *UpdateRuleRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -7685,15 +10561,15 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RuleCondition: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateRuleRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RuleCondition: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7721,11 +10597,12 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleConditionId = string(dAtA[iNdEx:postIndex]) + s := string(dAtA[iNdEx:postIndex]) + m.RuleId = &s iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7753,13 +10630,13 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7769,31 +10646,27 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Expression == nil { - m.Expression = &RuleConditionExpression{} - } - if err := m.Expression.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Description = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7821,11 +10694,31 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) + m.AssetId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsEnabled = bool(v != 0) + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7852,18 +10745,99 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} + m.Conditions = append(m.Conditions, &UpdateConditionRequest{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 6: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateConditionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateConditionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7873,31 +10847,28 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + s := string(dAtA[iNdEx:postIndex]) + m.RuleConditionId = &s iNdEx = postIndex - case 7: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -7925,13 +10896,13 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + m.Status = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -7941,25 +10912,29 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + if m.Expression == nil { + m.Expression = &RuleConditionExpression{} + } + if err := m.Expression.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 9: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } @@ -7988,7 +10963,7 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Actions = append(m.Actions, &RuleAction{}) + m.Actions = append(m.Actions, &UpdateActionRequest{}) if err := m.Actions[len(m.Actions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -8015,7 +10990,7 @@ func (m *RuleCondition) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RuleAction) UnmarshalVT(dAtA []byte) error { +func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8038,10 +11013,10 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RuleAction: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateActionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RuleAction: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8074,41 +11049,10 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleActionId = string(dAtA[iNdEx:postIndex]) + s := string(dAtA[iNdEx:postIndex]) + m.RuleActionId = &s iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleConditionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) } @@ -8127,7 +11071,7 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { break } } - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) } @@ -8163,47 +11107,62 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { return err } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateRuleResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 6: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -8213,31 +11172,78 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + m.RuleId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { return err } - iNdEx = postIndex - case 7: + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteRuleRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteRuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8265,11 +11271,113 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CreatedByUserId = string(dAtA[iNdEx:postIndex]) + m.RuleId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteRuleResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ViewHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8297,7 +11405,7 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ModifiedByUserId = string(dAtA[iNdEx:postIndex]) + m.AssetId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8321,7 +11429,7 @@ func (m *RuleAction) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *ViewHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8344,74 +11452,15 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SearchRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SearchRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - var v uint32 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Limit = &v - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) - } - var v SearchOrder - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= SearchOrder(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Order = &v - case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NameMatches", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8439,51 +11488,62 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NameMatches = string(dAtA[iNdEx:postIndex]) + m.RulesJson = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitive", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.CaseSensitive = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Regexp", wireType) + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.Regexp = bool(v != 0) - case 7: + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8511,12 +11571,11 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.OrderBy = &s + m.AssetId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8544,11 +11603,11 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) + m.RulesJson = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 9: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8576,7 +11635,7 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AssetIds = append(m.AssetIds, string(dAtA[iNdEx:postIndex])) + m.OrganizationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8600,7 +11659,7 @@ func (m *SearchRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8623,17 +11682,17 @@ func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SearchRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SearchRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) } - m.Count = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -8643,16 +11702,36 @@ func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.Success = bool(v != 0) case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesCount", wireType) + } + m.RulesCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -8662,25 +11741,23 @@ func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Messages = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8704,7 +11781,7 @@ func (m *SearchRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetRuleRequest) UnmarshalVT(dAtA []byte) error { +func (m *ViewJsonRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8727,15 +11804,15 @@ func (m *GetRuleRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ViewJsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ViewJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8763,7 +11840,7 @@ func (m *GetRuleRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + m.AssetId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8787,7 +11864,7 @@ func (m *GetRuleRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *GetRuleResponse) UnmarshalVT(dAtA []byte) error { +func (m *ViewJsonRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8810,17 +11887,17 @@ func (m *GetRuleResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ViewJsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ViewJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -8830,27 +11907,23 @@ func (m *GetRuleResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rule == nil { - m.Rule = &Rule{} - } - if err := m.Rule.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.RulesJson = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8874,7 +11947,7 @@ func (m *GetRuleResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *BatchGetRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *JsonRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8897,15 +11970,15 @@ func (m *BatchGetRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchGetRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: JsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchGetRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: JsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -8933,7 +12006,71 @@ func (m *BatchGetRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) + m.AssetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RulesJson = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrganizationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8957,7 +12094,7 @@ func (m *BatchGetRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *BatchGetRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *JsonRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8970,27 +12107,123 @@ func (m *BatchGetRulesResponse) UnmarshalVT(dAtA []byte) error { if iNdEx >= l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: JsonRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: JsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Success = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalRulesCount", wireType) + } + m.TotalRulesCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TotalRulesCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesCreatedCount", wireType) + } + m.RulesCreatedCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesCreatedCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesUpdatedCount", wireType) + } + m.RulesUpdatedCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesUpdatedCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesDeletedCount", wireType) + } + m.RulesDeletedCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesDeletedCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BatchGetRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BatchGetRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessages", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9000,25 +12233,24 @@ func (m *BatchGetRulesResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } + s := string(dAtA[iNdEx:postIndex]) + m.ErrorMessages = &s iNdEx = postIndex default: iNdEx = preIndex @@ -9042,7 +12274,7 @@ func (m *BatchGetRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateRuleRequest) UnmarshalVT(dAtA []byte) error { +func (m *ValidateJsonRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9065,15 +12297,15 @@ func (m *CreateRuleRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateJsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9100,10 +12332,10 @@ func (m *CreateRuleRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Update == nil { - m.Update = &UpdateRuleRequest{} + if m.Request == nil { + m.Request = &JsonRulesRequest{} } - if err := m.Update.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -9129,7 +12361,7 @@ func (m *CreateRuleRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CreateRuleResponse) UnmarshalVT(dAtA []byte) error { +func (m *ValidateJsonRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9152,17 +12384,17 @@ func (m *CreateRuleResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateJsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9172,23 +12404,27 @@ func (m *CreateRuleResponse) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + if m.Response == nil { + m.Response = &JsonRulesResponse{} + } + if err := m.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -9212,7 +12448,7 @@ func (m *CreateRuleResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateRuleRequest) UnmarshalVT(dAtA []byte) error { +func (m *UpdateJsonRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9235,200 +12471,17 @@ func (m *UpdateRuleRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateJsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - s := string(dAtA[iNdEx:postIndex]) - m.RuleId = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Description = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AssetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsEnabled = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &UpdateConditionRequest{}) - if err := m.Conditions[len(m.Conditions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9438,23 +12491,27 @@ func (m *UpdateRuleRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.OrganizationId = string(dAtA[iNdEx:postIndex]) + if m.Request == nil { + m.Request = &JsonRulesRequest{} + } + if err := m.Request.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -9478,7 +12535,7 @@ func (m *UpdateRuleRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { +func (m *UpdateJsonRulesResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9501,17 +12558,17 @@ func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateConditionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateJsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateConditionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9521,60 +12578,82 @@ func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.RuleConditionId = &s - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + if m.Response == nil { + m.Response = &JsonRulesResponse{} } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if err := m.Response.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - m.Status = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuleConditionExpression: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuleConditionExpression: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SingleChannelComparison", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9601,16 +12680,21 @@ func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Expression == nil { - m.Expression = &RuleConditionExpression{} - } - if err := m.Expression.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if oneof, ok := m.Expression.(*RuleConditionExpression_SingleChannelComparison); ok { + if err := oneof.SingleChannelComparison.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &SingleChannelComparisonExpression{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Expression = &RuleConditionExpression_SingleChannelComparison{SingleChannelComparison: v} } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CalculatedChannel", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9637,9 +12721,16 @@ func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Actions = append(m.Actions, &UpdateActionRequest{}) - if err := m.Actions[len(m.Actions)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if oneof, ok := m.Expression.(*RuleConditionExpression_CalculatedChannel); ok { + if err := oneof.CalculatedChannel.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &CalculatedChannelConfig{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Expression = &RuleConditionExpression_CalculatedChannel{CalculatedChannel: v} } iNdEx = postIndex default: @@ -9664,7 +12755,7 @@ func (m *UpdateConditionRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { +func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9687,15 +12778,15 @@ func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateActionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SingleChannelComparisonExpression: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SingleChannelComparisonExpression: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChannelComponent", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9723,14 +12814,13 @@ func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.RuleActionId = &s + m.ChannelComponent = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ChannelName", wireType) } - m.ActionType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9740,16 +12830,29 @@ func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActionType |= ActionKind(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ChannelName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Comparator", wireType) } - var msglen int + m.Comparator = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9759,82 +12862,25 @@ func (m *UpdateActionRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Comparator |= ConditionComparator(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &RuleActionConfiguration{} - } - if err := m.Configuration.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateRuleResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + case 4: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Double", wireType) } - if iNdEx >= l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateRuleResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Threshold = &SingleChannelComparisonExpression_Double{Double: float64(math.Float64frombits(v))} + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field String_", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9862,64 +12908,13 @@ func (m *UpdateRuleResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + m.Threshold = &SingleChannelComparisonExpression_String_{String_: string(dAtA[iNdEx:postIndex])} iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteRuleRequest) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteRuleRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastValue", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -9929,23 +12924,32 @@ func (m *DeleteRuleRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleId = string(dAtA[iNdEx:postIndex]) + if oneof, ok := m.Threshold.(*SingleChannelComparisonExpression_LastValue); ok { + if err := oneof.LastValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &LastValueThreshold{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Threshold = &SingleChannelComparisonExpression_LastValue{LastValue: v} + } iNdEx = postIndex default: iNdEx = preIndex @@ -9969,7 +12973,7 @@ func (m *DeleteRuleRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *DeleteRuleResponse) UnmarshalVT(dAtA []byte) error { +func (m *LastValueThreshold) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -9992,10 +12996,10 @@ func (m *DeleteRuleResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: LastValueThreshold: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: LastValueThreshold: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10020,7 +13024,7 @@ func (m *DeleteRuleResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ViewHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10043,15 +13047,144 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CalculatedChannelConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CalculatedChannelConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChannelReferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ChannelReferences == nil { + m.ChannelReferences = make(map[string]*ChannelReference) + } + var mapkey string + var mapvalue *ChannelReference + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return protohelpers.ErrInvalidLength + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return protohelpers.ErrInvalidLength + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return protohelpers.ErrInvalidLength + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ChannelReference{} + if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.ChannelReferences[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10079,7 +13212,7 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AssetId = string(dAtA[iNdEx:postIndex]) + m.Expression = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10103,7 +13236,7 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ViewHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *ChannelReference) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10126,15 +13259,47 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ChannelReference: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ChannelReference: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10162,7 +13327,7 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RulesJson = string(dAtA[iNdEx:postIndex]) + m.Component = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10186,7 +13351,7 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *RuleActionConfiguration) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10209,17 +13374,17 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RuleActionConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RuleActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Notification", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -10229,29 +13394,38 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.AssetId = string(dAtA[iNdEx:postIndex]) + if oneof, ok := m.Configuration.(*RuleActionConfiguration_Notification); ok { + if err := oneof.Notification.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + } else { + v := &NotificationActionConfiguration{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Configuration = &RuleActionConfiguration_Notification{Notification: v} + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Annotation", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -10261,55 +13435,32 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.RulesJson = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if oneof, ok := m.Configuration.(*RuleActionConfiguration_Annotation); ok { + if err := oneof.Annotation.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break + } else { + v := &AnnotationActionConfiguration{} + if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } + m.Configuration = &RuleActionConfiguration_Annotation{Annotation: v} } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OrganizationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10333,7 +13484,7 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { +func (m *NotificationActionConfiguration) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10356,54 +13507,15 @@ func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: NotificationActionConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NotificationActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesCount", wireType) - } - m.RulesCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RulesCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RecipientUserIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10431,7 +13543,7 @@ func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Messages = string(dAtA[iNdEx:postIndex]) + m.RecipientUserIds = append(m.RecipientUserIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex @@ -10455,7 +13567,7 @@ func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { +func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10478,17 +13590,17 @@ func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RuleConditionExpression: wiretype end group for non-group") + return fmt.Errorf("proto: AnnotationActionConfiguration: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RuleConditionExpression: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AnnotationActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SingleChannelComparison", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TagIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -10498,38 +13610,48 @@ func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Expression.(*RuleConditionExpression_SingleChannelComparison); ok { - if err := oneof.SingleChannelComparison.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + m.TagIds = append(m.TagIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AnnotationType", wireType) + } + m.AnnotationType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - } else { - v := &SingleChannelComparisonExpression{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.AnnotationType |= v1.AnnotationType(b&0x7F) << shift + if b < 0x80 { + break } - m.Expression = &RuleConditionExpression_SingleChannelComparison{SingleChannelComparison: v} } - iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CalculatedChannel", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssignedToUserId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -10539,32 +13661,24 @@ func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Expression.(*RuleConditionExpression_CalculatedChannel); ok { - if err := oneof.CalculatedChannel.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &CalculatedChannelConfig{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Expression = &RuleConditionExpression_CalculatedChannel{CalculatedChannel: v} - } + s := string(dAtA[iNdEx:postIndex]) + m.AssignedToUserId = &s iNdEx = postIndex default: iNdEx = preIndex @@ -10588,7 +13702,7 @@ func (m *RuleConditionExpression) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { +func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10611,15 +13725,15 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SingleChannelComparisonExpression: wiretype end group for non-group") + return fmt.Errorf("proto: EvaluateRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SingleChannelComparisonExpression: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EvaluateRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelComponent", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10647,13 +13761,13 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChannelComponent = string(dAtA[iNdEx:postIndex]) + m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AnnotationOptions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -10663,57 +13777,31 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.ChannelName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Comparator", wireType) - } - m.Comparator = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Comparator |= ConditionComparator(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Double", wireType) - } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + if m.AnnotationOptions == nil { + m.AnnotationOptions = &EvaluatedAnnotationOptions{} } - v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.Threshold = &SingleChannelComparisonExpression_Double{Double: float64(math.Float64frombits(v))} - case 5: + if err := m.AnnotationOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field String_", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10741,11 +13829,11 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Threshold = &SingleChannelComparisonExpression_String_{String_: string(dAtA[iNdEx:postIndex])} + m.Time = &EvaluateRulesRequest_RunId{RunId: string(dAtA[iNdEx:postIndex])} iNdEx = postIndex - case 6: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastValue", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TimeRange", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10772,16 +13860,16 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Threshold.(*SingleChannelComparisonExpression_LastValue); ok { - if err := oneof.LastValue.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if oneof, ok := m.Time.(*EvaluateRulesRequest_TimeRange); ok { + if err := oneof.TimeRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { - v := &LastValueThreshold{} + v := &TimeRangeQuery{} if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Threshold = &SingleChannelComparisonExpression_LastValue{LastValue: v} + m.Time = &EvaluateRulesRequest_TimeRange{TimeRange: v} } iNdEx = postIndex default: @@ -10806,7 +13894,7 @@ func (m *SingleChannelComparisonExpression) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *LastValueThreshold) UnmarshalVT(dAtA []byte) error { +func (m *EvaluatedAnnotationOptions) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10829,12 +13917,44 @@ func (m *LastValueThreshold) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: LastValueThreshold: wiretype end group for non-group") + return fmt.Errorf("proto: EvaluatedAnnotationOptions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: LastValueThreshold: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EvaluatedAnnotationOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TagIds", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TagIds = append(m.TagIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -10857,7 +13977,7 @@ func (m *LastValueThreshold) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { +func (m *TimeRangeQuery) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -10880,15 +14000,15 @@ func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CalculatedChannelConfig: wiretype end group for non-group") + return fmt.Errorf("proto: TimeRangeQuery: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CalculatedChannelConfig: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TimeRangeQuery: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelReferences", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10915,111 +14035,18 @@ func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ChannelReferences == nil { - m.ChannelReferences = make(map[string]*ChannelReference) + if m.StartTime == nil { + m.StartTime = ×tamppb.Timestamp{} } - var mapkey string - var mapvalue *ChannelReference - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return protohelpers.ErrInvalidLength - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return protohelpers.ErrInvalidLength - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var mapmsglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapmsglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if mapmsglen < 0 { - return protohelpers.ErrInvalidLength - } - postmsgIndex := iNdEx + mapmsglen - if postmsgIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postmsgIndex > l { - return io.ErrUnexpectedEOF - } - mapvalue = &ChannelReference{} - if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { - return err - } - iNdEx = postmsgIndex - } else { - iNdEx = entryPreIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } + if err := (*timestamppb1.Timestamp)(m.StartTime).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.ChannelReferences[mapkey] = mapvalue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11029,24 +14056,98 @@ func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Expression = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + if m.EndTime == nil { + m.EndTime = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.EndTime).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EvaluateRulesResponse) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: EvaluateRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EvaluateRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CreatedAnnotationCount", wireType) + } + m.CreatedAnnotationCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CreatedAnnotationCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -11069,7 +14170,7 @@ func (m *CalculatedChannelConfig) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *ChannelReference) UnmarshalVT(dAtA []byte) error { +func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11092,15 +14193,15 @@ func (m *ChannelReference) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ChannelReference: wiretype end group for non-group") + return fmt.Errorf("proto: Rule: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ChannelReference: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11128,11 +14229,15 @@ func (m *ChannelReference) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.RuleId = stringValue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Component", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11160,64 +14265,89 @@ func (m *ChannelReference) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Component = string(dAtA[iNdEx:postIndex]) + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.AssetId = stringValue iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - if (skippy < 0) || (iNdEx+skippy) < 0 { + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RuleActionConfiguration) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - if iNdEx >= l { + m.Name = stringValue + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { return io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RuleActionConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RuleActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Description = stringValue + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Notification", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11227,36 +14357,51 @@ func (m *RuleActionConfiguration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Configuration.(*RuleActionConfiguration_Notification); ok { - if err := oneof.Notification.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.CurrentStatus = stringValue + iNdEx = postIndex + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - } else { - v := &NotificationActionConfiguration{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - m.Configuration = &RuleActionConfiguration_Notification{Notification: v} } - iNdEx = postIndex - case 2: + m.IsEnabled = bool(v != 0) + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Annotation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11283,72 +14428,52 @@ func (m *RuleActionConfiguration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Configuration.(*RuleActionConfiguration_Annotation); ok { - if err := oneof.Annotation.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - } else { - v := &AnnotationActionConfiguration{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break } - m.Configuration = &RuleActionConfiguration_Annotation{Annotation: v} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err + if msglen < 0 { + return protohelpers.ErrInvalidLength } - if (skippy < 0) || (iNdEx+skippy) < 0 { + postIndex := iNdEx + msglen + if postIndex < 0 { return protohelpers.ErrInvalidLength } - if (iNdEx + skippy) > l { + if postIndex > l { return io.ErrUnexpectedEOF } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NotificationActionConfiguration) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NotificationActionConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NotificationActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecipientUserIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11376,62 +14501,15 @@ func (m *NotificationActionConfiguration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RecipientUserIds = append(m.RecipientUserIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AnnotationActionConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AnnotationActionConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.CreatedByUserId = stringValue + iNdEx = postIndex + case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TagIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11459,13 +14537,17 @@ func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TagIds = append(m.TagIds, string(dAtA[iNdEx:postIndex])) + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.ModifiedByUserId = stringValue iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AnnotationType", wireType) + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) } - m.AnnotationType = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11475,16 +14557,33 @@ func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.AnnotationType |= v1.AnnotationType(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.OrganizationId = stringValue + iNdEx = postIndex + case 12: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssignedToUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -11494,24 +14593,25 @@ func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - s := string(dAtA[iNdEx:postIndex]) - m.AssignedToUserId = &s + m.Conditions = append(m.Conditions, &RuleCondition{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -11535,7 +14635,7 @@ func (m *AnnotationActionConfiguration) UnmarshalVT(dAtA []byte) error { } return nil } -func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { +func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -11558,15 +14658,15 @@ func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EvaluateRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RuleCondition: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EvaluateRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RuleCondition: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11594,47 +14694,15 @@ func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RuleIds = append(m.RuleIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnnotationOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AnnotationOptions == nil { - m.AnnotationOptions = &EvaluatedAnnotationOptions{} - } - if err := m.AnnotationOptions.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.RuleConditionId = stringValue iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RunId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11662,11 +14730,15 @@ func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Time = &EvaluateRulesRequest_RunId{RunId: string(dAtA[iNdEx:postIndex])} + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.RuleId = stringValue iNdEx = postIndex - case 4: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRange", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11693,72 +14765,16 @@ func (m *EvaluateRulesRequest) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if oneof, ok := m.Time.(*EvaluateRulesRequest_TimeRange); ok { - if err := oneof.TimeRange.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - } else { - v := &TimeRangeQuery{} - if err := v.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Time = &EvaluateRulesRequest_TimeRange{TimeRange: v} + if m.Expression == nil { + m.Expression = &RuleConditionExpression{} } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { + if err := m.Expression.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EvaluatedAnnotationOptions) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EvaluatedAnnotationOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EvaluatedAnnotationOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TagIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -11786,62 +14802,15 @@ func (m *EvaluatedAnnotationOptions) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TagIds = append(m.TagIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimeRangeQuery) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimeRangeQuery: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimeRangeQuery: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + m.Status = stringValue + iNdEx = postIndex + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11868,16 +14837,16 @@ func (m *TimeRangeQuery) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.StartTime == nil { - m.StartTime = ×tamppb.Timestamp{} + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} } - if err := (*timestamppb1.Timestamp)(m.StartTime).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11904,137 +14873,16 @@ func (m *TimeRangeQuery) UnmarshalVT(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.EndTime == nil { - m.EndTime = ×tamppb.Timestamp{} + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} } - if err := (*timestamppb1.Timestamp)(m.EndTime).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EvaluateRulesResponse) UnmarshalVT(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EvaluateRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EvaluateRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAnnotationCount", wireType) - } - m.CreatedAnnotationCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAnnotationCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12066,11 +14914,11 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleId = stringValue + m.CreatedByUserId = stringValue iNdEx = postIndex - case 2: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12102,13 +14950,13 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.AssetId = stringValue + m.ModifiedByUserId = stringValue iNdEx = postIndex - case 3: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12118,31 +14966,80 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actions = append(m.Actions, &RuleAction{}) + if err := m.Actions[len(m.Actions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.Name = stringValue - iNdEx = postIndex - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RuleAction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RuleAction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12174,11 +15071,11 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Description = stringValue + m.RuleActionId = stringValue iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12210,13 +15107,13 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.CurrentStatus = stringValue + m.RuleConditionId = stringValue iNdEx = postIndex - case 6: + case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) } - var v int + m.ActionType = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12226,15 +15123,14 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.ActionType |= ActionKind(b&0x7F) << shift if b < 0x80 { break } } - m.IsEnabled = bool(v != 0) - case 7: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12261,16 +15157,16 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} + if m.Configuration == nil { + m.Configuration = &RuleActionConfiguration{} } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 8: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12297,18 +15193,18 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} + if m.CreatedDate == nil { + m.CreatedDate = ×tamppb.Timestamp{} } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 9: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12318,31 +15214,31 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if m.ModifiedDate == nil { + m.ModifiedDate = ×tamppb.Timestamp{} + } + if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.CreatedByUserId = stringValue iNdEx = postIndex - case 10: + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12374,11 +15270,11 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.ModifiedByUserId = stringValue + m.CreatedByUserId = stringValue iNdEx = postIndex - case 11: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12410,41 +15306,7 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.OrganizationId = stringValue - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Conditions = append(m.Conditions, &RuleCondition{}) - if err := m.Conditions[len(m.Conditions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ModifiedByUserId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -12468,7 +15330,7 @@ func (m *Rule) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12491,17 +15353,132 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RuleCondition: wiretype end group for non-group") + return fmt.Errorf("proto: SearchRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RuleCondition: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SearchRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + var v uint32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Limit = &v + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) + } + var v SearchOrder + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= SearchOrder(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Order = &v + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NameMatches", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.NameMatches = stringValue + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } } - var stringLen uint64 + m.CaseSensitive = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Regexp", wireType) + } + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12511,31 +15488,15 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) - } - m.RuleConditionId = stringValue - iNdEx = postIndex - case 2: + m.Regexp = bool(v != 0) + case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12567,13 +15528,14 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleId = stringValue + s := stringValue + m.OrderBy = &s iNdEx = postIndex - case 3: + case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12583,31 +15545,31 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Expression == nil { - m.Expression = &RuleConditionExpression{} - } - if err := m.Expression.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.RuleIds = append(m.RuleIds, stringValue) iNdEx = postIndex - case 4: + case 9: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12639,13 +15601,64 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Status = stringValue + m.AssetIds = append(m.AssetIds, stringValue) iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var msglen int + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SearchRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SearchRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -12655,31 +15668,14 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Count |= uint32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12706,16 +15702,65 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Rules = append(m.Rules, &Rule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 7: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12747,47 +15792,62 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.CreatedByUserId = stringValue + m.RuleId = stringValue iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - intStringLen := int(stringLen) - if intStringLen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - m.ModifiedByUserId = stringValue - iNdEx = postIndex - case 9: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12814,8 +15874,10 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Actions = append(m.Actions, &RuleAction{}) - if err := m.Actions[len(m.Actions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + if m.Rule == nil { + m.Rule = &Rule{} + } + if err := m.Rule.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -12841,7 +15903,7 @@ func (m *RuleCondition) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *BatchGetRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -12864,15 +15926,15 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RuleAction: wiretype end group for non-group") + return fmt.Errorf("proto: BatchGetRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RuleAction: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: BatchGetRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -12904,66 +15966,62 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleActionId = stringValue + m.RuleIds = append(m.RuleIds, stringValue) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + intStringLen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BatchGetRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - m.RuleConditionId = stringValue - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + if iNdEx >= l { + return io.ErrUnexpectedEOF } - m.ActionType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ActionType |= ActionKind(b&0x7F) << shift - if b < 0x80 { - break - } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - case 4: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BatchGetRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BatchGetRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12990,90 +16048,67 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Configuration == nil { - m.Configuration = &RuleActionConfiguration{} - } - if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Rules = append(m.Rules, &Rule{}) + if err := m.Rules[len(m.Rules)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedDate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.CreatedDate == nil { - m.CreatedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.CreatedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedDate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - if m.ModifiedDate == nil { - m.ModifiedDate = ×tamppb.Timestamp{} - } - if err := (*timestamppb1.Timestamp)(m.ModifiedDate).UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 7: + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRuleRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13083,31 +16118,82 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if m.Update == nil { + m.Update = &UpdateRuleRequest{} + } + if err := m.Update.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.CreatedByUserId = stringValue iNdEx = postIndex - case 8: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateRuleResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ModifiedByUserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13139,7 +16225,7 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.ModifiedByUserId = stringValue + m.RuleId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -13163,7 +16249,7 @@ func (m *RuleAction) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13186,17 +16272,17 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SearchRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateRuleRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SearchRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } - var v uint32 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13206,17 +16292,34 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Limit = &v + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + s := stringValue + m.RuleId = &s + iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - m.Offset = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13226,16 +16329,33 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Offset |= uint32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Name = stringValue + iNdEx = postIndex case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) } - var v SearchOrder + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13245,15 +16365,31 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= SearchOrder(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - m.Order = &v + intStringLen := int(stringLen) + if intStringLen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.Description = stringValue + iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NameMatches", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13285,11 +16421,11 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.NameMatches = stringValue + m.AssetId = stringValue iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitive", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -13306,12 +16442,12 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { break } } - m.CaseSensitive = bool(v != 0) + m.IsEnabled = bool(v != 0) case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Regexp", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13321,15 +16457,29 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - m.Regexp = bool(v != 0) + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Conditions = append(m.Conditions, &UpdateConditionRequest{}) + if err := m.Conditions[len(m.Conditions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrderBy", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13361,12 +16511,62 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - s := stringValue - m.OrderBy = &s + m.OrganizationId = stringValue iNdEx = postIndex - case 8: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateConditionRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateConditionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13398,11 +16598,12 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleIds = append(m.RuleIds, stringValue) + s := stringValue + m.RuleConditionId = &s iNdEx = postIndex - case 9: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13434,64 +16635,13 @@ func (m *SearchRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.AssetIds = append(m.AssetIds, stringValue) + m.Status = stringValue iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SearchRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SearchRulesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SearchRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) } - m.Count = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13501,14 +16651,31 @@ func (m *SearchRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Count |= uint32(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - case 2: + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Expression == nil { + m.Expression = &RuleConditionExpression{} + } + if err := m.Expression.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13535,8 +16702,8 @@ func (m *SearchRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + m.Actions = append(m.Actions, &UpdateActionRequest{}) + if err := m.Actions[len(m.Actions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13562,7 +16729,7 @@ func (m *SearchRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *GetRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13585,15 +16752,15 @@ func (m *GetRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateActionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13625,7 +16792,63 @@ func (m *GetRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleId = stringValue + s := stringValue + m.RuleActionId = &s + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + } + m.ActionType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ActionType |= ActionKind(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protohelpers.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protohelpers.ErrInvalidLength + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Configuration == nil { + m.Configuration = &RuleActionConfiguration{} + } + if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -13649,7 +16872,7 @@ func (m *GetRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *GetRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13672,17 +16895,17 @@ func (m *GetRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateRuleResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13692,27 +16915,27 @@ func (m *GetRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Rule == nil { - m.Rule = &Rule{} - } - if err := m.Rule.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.RuleId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -13736,7 +16959,7 @@ func (m *GetRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *BatchGetRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *DeleteRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13759,15 +16982,15 @@ func (m *BatchGetRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchGetRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteRuleRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchGetRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13799,7 +17022,7 @@ func (m *BatchGetRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleIds = append(m.RuleIds, stringValue) + m.RuleId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -13823,7 +17046,7 @@ func (m *BatchGetRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *BatchGetRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *DeleteRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13846,46 +17069,12 @@ func (m *BatchGetRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: BatchGetRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteRuleResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: BatchGetRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) @@ -13908,7 +17097,7 @@ func (m *BatchGetRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *CreateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ViewHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13931,17 +17120,17 @@ func (m *CreateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Update", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -13951,27 +17140,27 @@ func (m *CreateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Update == nil { - m.Update = &UpdateRuleRequest{} - } - if err := m.Update.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + } + m.AssetId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -13995,7 +17184,7 @@ func (m *CreateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *CreateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ViewHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14018,15 +17207,15 @@ func (m *CreateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateRuleResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14058,7 +17247,7 @@ func (m *CreateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleId = stringValue + m.RulesJson = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -14082,7 +17271,7 @@ func (m *CreateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14105,15 +17294,15 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateRuleRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14145,12 +17334,11 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - s := stringValue - m.RuleId = &s + m.AssetId = stringValue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14182,11 +17370,11 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Name = stringValue + m.RulesJson = stringValue iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14218,11 +17406,101 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Description = stringValue + m.OrganizationId = stringValue iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Success = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesCount", wireType) + } + m.RulesCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14254,33 +17532,64 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.AssetId = stringValue + m.Messages = stringValue iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsEnabled", wireType) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength } - m.IsEnabled = bool(v != 0) - case 6: + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ViewJsonRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ViewJsonRulesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ViewJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14290,29 +17599,82 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Conditions = append(m.Conditions, &UpdateConditionRequest{}) - if err := m.Conditions[len(m.Conditions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.AssetId = stringValue iNdEx = postIndex - case 7: + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ViewJsonRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ViewJsonRulesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ViewJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14344,7 +17706,7 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.OrganizationId = stringValue + m.RulesJson = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -14368,7 +17730,7 @@ func (m *UpdateRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *JsonRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14391,15 +17753,15 @@ func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateConditionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: JsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateConditionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: JsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleConditionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14431,12 +17793,11 @@ func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - s := stringValue - m.RuleConditionId = &s + m.AssetId = stringValue iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14468,49 +17829,13 @@ func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.Status = stringValue + m.RulesJson = stringValue iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Expression", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Expression == nil { - m.Expression = &RuleConditionExpression{} - } - if err := m.Expression.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14520,25 +17845,27 @@ func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - m.Actions = append(m.Actions, &UpdateActionRequest{}) - if err := m.Actions[len(m.Actions)-1].UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringValue string + if intStringLen > 0 { + stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } + m.OrganizationId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -14562,7 +17889,7 @@ func (m *UpdateConditionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *JsonRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14585,17 +17912,17 @@ func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateActionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: JsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateActionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: JsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleActionId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) } - var stringLen uint64 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14605,34 +17932,17 @@ func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) - } - s := stringValue - m.RuleActionId = &s - iNdEx = postIndex + m.Success = bool(v != 0) case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActionType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalRulesCount", wireType) } - m.ActionType = 0 + m.TotalRulesCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14642,16 +17952,16 @@ func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ActionType |= ActionKind(b&0x7F) << shift + m.TotalRulesCount |= int32(b&0x7F) << shift if b < 0x80 { break } } case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesCreatedCount", wireType) } - var msglen int + m.RulesCreatedCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14661,84 +17971,16 @@ func (m *UpdateActionRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.RulesCreatedCount |= int32(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &RuleActionConfiguration{} - } - if err := m.Configuration.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UpdateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: UpdateRuleResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesUpdatedCount", wireType) } - var stringLen uint64 + m.RulesUpdatedCount = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14748,82 +17990,33 @@ func (m *UpdateRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.RulesUpdatedCount |= int32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) - } - m.RuleId = stringValue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RulesDeletedCount", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.RulesDeletedCount = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RulesDeletedCount |= int32(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteRuleRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteRuleRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessages", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14855,7 +18048,8 @@ func (m *DeleteRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { if intStringLen > 0 { stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) } - m.RuleId = stringValue + s := stringValue + m.ErrorMessages = &s iNdEx = postIndex default: iNdEx = preIndex @@ -14879,58 +18073,7 @@ func (m *DeleteRuleRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *DeleteRuleResponse) UnmarshalVTUnsafe(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteRuleResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteRuleResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := protohelpers.Skip(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protohelpers.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ViewHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ValidateJsonRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14953,17 +18096,17 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateJsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -14973,27 +18116,27 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if m.Request == nil { + m.Request = &JsonRulesRequest{} + } + if err := m.Request.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.AssetId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -15017,7 +18160,7 @@ func (m *ViewHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *ViewHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *ValidateJsonRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15040,17 +18183,17 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateJsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ViewHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15060,27 +18203,27 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if m.Response == nil { + m.Response = &JsonRulesResponse{} + } + if err := m.Response.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.RulesJson = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -15104,7 +18247,7 @@ func (m *ViewHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateJsonRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15127,53 +18270,17 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateJsonRulesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateJsonRulesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AssetId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) - } - m.AssetId = stringValue - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesJson", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15183,63 +18290,27 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) - } - m.RulesJson = stringValue - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrganizationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protohelpers.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protohelpers.ErrInvalidLength - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.Request == nil { + m.Request = &JsonRulesRequest{} } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if err := m.Request.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.OrganizationId = stringValue iNdEx = postIndex default: iNdEx = preIndex @@ -15263,7 +18334,7 @@ func (m *UpdateHumanFriendlyRulesRequest) UnmarshalVTUnsafe(dAtA []byte) error { } return nil } -func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { +func (m *UpdateJsonRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15286,56 +18357,17 @@ func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateJsonRulesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateHumanFriendlyRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateJsonRulesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RulesCount", wireType) - } - m.RulesCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protohelpers.ErrIntOverflow - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RulesCount |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow @@ -15345,27 +18377,27 @@ func (m *UpdateHumanFriendlyRulesResponse) UnmarshalVTUnsafe(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protohelpers.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } - var stringValue string - if intStringLen > 0 { - stringValue = unsafe.String(&dAtA[iNdEx], intStringLen) + if m.Response == nil { + m.Response = &JsonRulesResponse{} + } + if err := m.Response.UnmarshalVTUnsafe(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.Messages = stringValue iNdEx = postIndex default: iNdEx = preIndex diff --git a/protos/sift/annotation_logs/v1/annotation_logs.proto b/protos/sift/annotation_logs/v1/annotation_logs.proto index 563c12ae..c7965da6 100644 --- a/protos/sift/annotation_logs/v1/annotation_logs.proto +++ b/protos/sift/annotation_logs/v1/annotation_logs.proto @@ -7,6 +7,8 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/annotation_logs/v1;annotation_logsv1pb"; + service AnnotationLogService { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_tag) = { description: "Service to programmatically interact with [annotation logs](/glossary#annotation)." diff --git a/protos/sift/annotations/v1/annotations.proto b/protos/sift/annotations/v1/annotations.proto index 2633b106..9b51dc30 100644 --- a/protos/sift/annotations/v1/annotations.proto +++ b/protos/sift/annotations/v1/annotations.proto @@ -8,6 +8,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/annotations/v1;annotationsv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Annotation Service"} }; diff --git a/protos/sift/assets/v1/assets.proto b/protos/sift/assets/v1/assets.proto index 54d2c691..e7537537 100644 --- a/protos/sift/assets/v1/assets.proto +++ b/protos/sift/assets/v1/assets.proto @@ -7,6 +7,7 @@ import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/assets/v1;assetsv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Asset Service"} }; diff --git a/protos/sift/calculated_channels/v1/calculated_channels.proto b/protos/sift/calculated_channels/v1/calculated_channels.proto index e707a90b..18135bb5 100644 --- a/protos/sift/calculated_channels/v1/calculated_channels.proto +++ b/protos/sift/calculated_channels/v1/calculated_channels.proto @@ -7,6 +7,7 @@ import "google/api/field_behavior.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; import "sift/common/type/v1/channel_data_type.proto"; +option go_package = "azimuth/gen/protos/go/sift/calculated_channels/v1;calculatedchannelsv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Calculated Channels Service"} }; @@ -42,10 +43,17 @@ service CalculatedChannelsService { } } +message ExpressionChannelReference { + string channel_reference = 1 [(google.api.field_behavior) = REQUIRED]; + string channel_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + message ExpressionRequest { // A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid). - map channel_references = 1 [(google.api.field_behavior) = REQUIRED]; + // This is deprecated and should be passed in expression_channel_references instead. + map channel_references = 1 [deprecated = true]; string expression = 2 [(google.api.field_behavior) = REQUIRED]; + repeated ExpressionChannelReference expression_channel_references = 3; } message ListExpressionIdentifiersRequest { diff --git a/protos/sift/channel_schemas/v1/channel_schemas.proto b/protos/sift/channel_schemas/v1/channel_schemas.proto index 8f18d069..2b10135a 100644 --- a/protos/sift/channel_schemas/v1/channel_schemas.proto +++ b/protos/sift/channel_schemas/v1/channel_schemas.proto @@ -9,6 +9,7 @@ import "sift/common/type/v1/channel_bit_field_element.proto"; import "sift/common/type/v1/channel_data_type.proto"; import "sift/common/type/v1/channel_enum_type.proto"; +option go_package = "azimuth/gen/protos/go/sift/channel_schemas/v1;channelschemasv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Channel Schema Service"} }; diff --git a/protos/sift/channels/v2/channels.proto b/protos/sift/channels/v2/channels.proto index b5675ab0..4e47ff01 100644 --- a/protos/sift/channels/v2/channels.proto +++ b/protos/sift/channels/v2/channels.proto @@ -10,6 +10,7 @@ import "sift/common/type/v1/channel_bit_field_element.proto"; import "sift/common/type/v1/channel_data_type.proto"; import "sift/common/type/v1/channel_enum_type.proto"; +option go_package = "azimuth/gen/protos/go/sift/channels/v2;channelsv2pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Channel service"} }; diff --git a/protos/sift/common/type/v1/channel_bit_field_element.proto b/protos/sift/common/type/v1/channel_bit_field_element.proto index 3025d08e..4a0d8c05 100644 --- a/protos/sift/common/type/v1/channel_bit_field_element.proto +++ b/protos/sift/common/type/v1/channel_bit_field_element.proto @@ -4,6 +4,8 @@ package sift.common.type.v1; import "google/api/field_behavior.proto"; +option go_package = "azimuth/gen/protos/go/sift/common/type/v1;typev1pb"; + message ChannelBitFieldElement { string name = 1 [(google.api.field_behavior) = REQUIRED]; // The index of this element's first bit in the logical bit field array. diff --git a/protos/sift/common/type/v1/channel_data_type.proto b/protos/sift/common/type/v1/channel_data_type.proto index 14c48798..ed80ab8e 100644 --- a/protos/sift/common/type/v1/channel_data_type.proto +++ b/protos/sift/common/type/v1/channel_data_type.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package sift.common.type.v1; +option go_package = "azimuth/gen/protos/go/sift/common/type/v1;typev1pb"; + enum ChannelDataType { CHANNEL_DATA_TYPE_UNSPECIFIED = 0 [deprecated = true]; CHANNEL_DATA_TYPE_DOUBLE = 1; diff --git a/protos/sift/common/type/v1/channel_enum_type.proto b/protos/sift/common/type/v1/channel_enum_type.proto index ecff036c..90fc8b6a 100644 --- a/protos/sift/common/type/v1/channel_enum_type.proto +++ b/protos/sift/common/type/v1/channel_enum_type.proto @@ -4,6 +4,8 @@ package sift.common.type.v1; import "google/api/field_behavior.proto"; +option go_package = "azimuth/gen/protos/go/sift/common/type/v1;typev1pb"; + message ChannelEnumType { string name = 1 [(google.api.field_behavior) = REQUIRED]; uint32 key = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/protos/sift/common/type/v1/organization.proto b/protos/sift/common/type/v1/organization.proto index 5e9482ad..5c657f7e 100644 --- a/protos/sift/common/type/v1/organization.proto +++ b/protos/sift/common/type/v1/organization.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package sift.common.type.v1; +option go_package = "azimuth/gen/protos/go/sift/common/type/v1;typev1pb"; + message Organization { string organization_id = 1; string organization_name = 2; diff --git a/protos/sift/common/type/v1/user.proto b/protos/sift/common/type/v1/user.proto index 3bbee20c..8de8110a 100644 --- a/protos/sift/common/type/v1/user.proto +++ b/protos/sift/common/type/v1/user.proto @@ -5,6 +5,8 @@ package sift.common.type.v1; import "google/api/field_behavior.proto"; import "sift/common/type/v1/organization.proto"; +option go_package = "azimuth/gen/protos/go/sift/common/type/v1;typev1pb"; + message User { string user_id = 1 [(google.api.field_behavior) = REQUIRED]; string user_name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/protos/sift/data/v1/data.proto b/protos/sift/data/v1/data.proto index 6551e7bc..4e1bf6c0 100644 --- a/protos/sift/data/v1/data.proto +++ b/protos/sift/data/v1/data.proto @@ -12,6 +12,7 @@ import "sift/common/type/v1/channel_bit_field_element.proto"; import "sift/common/type/v1/channel_data_type.proto"; import "sift/common/type/v1/channel_enum_type.proto"; +option go_package = "azimuth/gen/protos/go/sift/data/v1;datav1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Data Service"} }; diff --git a/protos/sift/ingest/v1/ingest.proto b/protos/sift/ingest/v1/ingest.proto index 755a6672..28a3bea0 100644 --- a/protos/sift/ingest/v1/ingest.proto +++ b/protos/sift/ingest/v1/ingest.proto @@ -5,6 +5,8 @@ package sift.ingest.v1; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +option go_package = "azimuth/gen/protos/go/sift/ingest/v1;ingestv1pb"; + service IngestService { rpc IngestWithConfigDataStream(stream IngestWithConfigDataStreamRequest) returns (IngestWithConfigDataStreamResponse); } diff --git a/protos/sift/ingestion_configs/v1/ingestion_configs.proto b/protos/sift/ingestion_configs/v1/ingestion_configs.proto index 67c2f363..bca49537 100644 --- a/protos/sift/ingestion_configs/v1/ingestion_configs.proto +++ b/protos/sift/ingestion_configs/v1/ingestion_configs.proto @@ -9,6 +9,7 @@ import "sift/common/type/v1/channel_bit_field_element.proto"; import "sift/common/type/v1/channel_data_type.proto"; import "sift/common/type/v1/channel_enum_type.proto"; +option go_package = "azimuth/gen/protos/go/sift/ingestion_configs/v1;ingestion_configsv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Ingestion Config Service"} }; diff --git a/protos/sift/notifications/v1/notifications.proto b/protos/sift/notifications/v1/notifications.proto index 9d062256..abb26bd5 100644 --- a/protos/sift/notifications/v1/notifications.proto +++ b/protos/sift/notifications/v1/notifications.proto @@ -8,6 +8,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/notifications/v1;notificationsv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Notification Service"} }; diff --git a/protos/sift/rules/v1/rules.proto b/protos/sift/rules/v1/rules.proto index ff9f0958..aa131496 100644 --- a/protos/sift/rules/v1/rules.proto +++ b/protos/sift/rules/v1/rules.proto @@ -15,6 +15,7 @@ import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; import "sift/annotations/v1/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/rules/v1;rulesv1pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Rule Service"} }; @@ -109,8 +110,9 @@ service RuleService { }; } - // Retrieve a JSON object containing all of the rules for a given asset. + // Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset. rpc ViewHumanFriendlyRules(ViewHumanFriendlyRulesRequest) returns (ViewHumanFriendlyRulesResponse) { + option deprecated = true; option (google.api.http) = {get: "/api/v1/rules:viewHumanFriendly"}; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { summary: "ViewHumanFriendlyRules" @@ -118,8 +120,18 @@ service RuleService { }; } - // Batch update rules given the `rules_json` which is a JSON list of rules. + // Retrieve a JSON object containing all of the rules for a given asset. + rpc ViewJsonRules(ViewJsonRulesRequest) returns (ViewJsonRulesResponse) { + option (google.api.http) = {get: "/api/v1/rules:viewJson"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ViewJsonRules" + description: "Retrieve a JSON object containing all of the rules for a given asset." + }; + } + + // Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules. rpc UpdateHumanFriendlyRules(UpdateHumanFriendlyRulesRequest) returns (UpdateHumanFriendlyRulesResponse) { + option deprecated = true; option (google.api.http) = { post: "/api/v1/rules:updateHumanFriendly" body: "*" @@ -129,6 +141,30 @@ service RuleService { description: "Batch update rules given the `rules_json` which is a JSON list of rules." }; } + + // Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation. + rpc ValidateJsonRules(ValidateJsonRulesRequest) returns (ValidateJsonRulesResponse) { + option (google.api.http) = { + post: "/api/v1/rules:validateJson" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "ValidateJsonRules" + description: "Validate a batch update for rules given the `rules_json` which is a JSON list of rules." + }; + } + + // Batch update rules given the `rules_json` which is a JSON list of rules. + rpc UpdateJsonRules(UpdateJsonRulesRequest) returns (UpdateJsonRulesResponse) { + option (google.api.http) = { + post: "/api/v1/rules:updateJson" + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + summary: "UpdateJsonRules" + description: "Batch update rules given the `rules_json` which is a JSON list of rules." + }; + } } message Rule { @@ -248,26 +284,73 @@ message DeleteRuleRequest { } message DeleteRuleResponse {} +// Deprecated - use ViewJsonRulesRequest. message ViewHumanFriendlyRulesRequest { + option deprecated = true; string asset_id = 1 [(google.api.field_behavior) = REQUIRED]; } +// Deprecated - use ViewJsonRulesResponse. message ViewHumanFriendlyRulesResponse { + option deprecated = true; string rules_json = 1 [(google.api.field_behavior) = REQUIRED]; } +// Deprecated - use UpdateJsonRulesRequest. message UpdateHumanFriendlyRulesRequest { + option deprecated = true; string asset_id = 1 [(google.api.field_behavior) = REQUIRED]; string rules_json = 2 [(google.api.field_behavior) = REQUIRED]; string organization_id = 3 [(google.api.field_behavior) = REQUIRED]; } +// Deprecated - use UpdateJsonRulesResponse. message UpdateHumanFriendlyRulesResponse { + option deprecated = true; bool success = 1 [(google.api.field_behavior) = REQUIRED]; int32 rules_count = 2 [(google.api.field_behavior) = REQUIRED]; string messages = 3 [(google.api.field_behavior) = REQUIRED]; } +message ViewJsonRulesRequest { + string asset_id = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ViewJsonRulesResponse { + string rules_json = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message JsonRulesRequest { + string asset_id = 1 [(google.api.field_behavior) = REQUIRED]; + string rules_json = 2 [(google.api.field_behavior) = REQUIRED]; + string organization_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +message JsonRulesResponse { + bool success = 1 [(google.api.field_behavior) = REQUIRED]; + int32 total_rules_count = 2 [(google.api.field_behavior) = REQUIRED]; + int32 rules_created_count = 3 [(google.api.field_behavior) = REQUIRED]; + int32 rules_updated_count = 4 [(google.api.field_behavior) = REQUIRED]; + int32 rules_deleted_count = 5 [(google.api.field_behavior) = REQUIRED]; + optional string error_messages = 6; +} + +message ValidateJsonRulesRequest { + JsonRulesRequest request = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message ValidateJsonRulesResponse { + JsonRulesResponse response = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message UpdateJsonRulesRequest { + JsonRulesRequest request = 1 [(google.api.field_behavior) = REQUIRED]; +} + +message UpdateJsonRulesResponse { + JsonRulesResponse response = 1 [(google.api.field_behavior) = REQUIRED]; +} + message RuleConditionExpression { oneof expression { SingleChannelComparisonExpression single_channel_comparison = 1; diff --git a/protos/sift/runs/v2/runs.proto b/protos/sift/runs/v2/runs.proto index 03354e6e..c88af5cd 100644 --- a/protos/sift/runs/v2/runs.proto +++ b/protos/sift/runs/v2/runs.proto @@ -8,6 +8,7 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; +option go_package = "azimuth/gen/protos/go/sift/runs/v2;runsv2pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "Run service"} }; diff --git a/protos/sift/tags/v1/tags.proto b/protos/sift/tags/v1/tags.proto index 802bd77f..55cadb27 100644 --- a/protos/sift/tags/v1/tags.proto +++ b/protos/sift/tags/v1/tags.proto @@ -5,6 +5,8 @@ package sift.tags.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; +option go_package = "azimuth/gen/protos/go/sift/tags/v1;tagsv1pb"; + message Tag { string tag_id = 1 [(google.api.field_behavior) = REQUIRED]; string name = 2 [(google.api.field_behavior) = REQUIRED]; diff --git a/protos/sift/users/v2/users.proto b/protos/sift/users/v2/users.proto index e184ec47..692c4ba5 100644 --- a/protos/sift/users/v2/users.proto +++ b/protos/sift/users/v2/users.proto @@ -7,6 +7,7 @@ import "google/api/field_behavior.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; import "sift/common/type/v1/user.proto"; +option go_package = "azimuth/gen/protos/go/sift/users/v2;usersv2pb"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: {title: "User Service"} }; diff --git a/python/gen/sift/annotation_logs/v1/annotation_logs_pb2.py b/python/gen/sift/annotation_logs/v1/annotation_logs_pb2.py index 861fd7b6..2702db9f 100644 --- a/python/gen/sift/annotation_logs/v1/annotation_logs_pb2.py +++ b/python/gen/sift/annotation_logs/v1/annotation_logs_pb2.py @@ -18,14 +18,14 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-sift/annotation_logs/v1/annotation_logs.proto\x12\x17sift.annotation_logs.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xa8\x03\n\x1a\x43reateAnnotationLogRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\x12\x43\n\x04kind\x18\x02 \x01(\x0e\x32*.sift.annotation_logs.v1.AnnotationLogKindB\x03\xe0\x41\x02R\x04kind\x12V\n\x08\x61ssigned\x18\x03 \x01(\x0b\x32\x38.sift.annotation_logs.v1.AnnotationLogAssignedPropertiesH\x00R\x08\x61ssigned\x12`\n\x0cstate_update\x18\x04 \x01(\x0b\x32;.sift.annotation_logs.v1.AnnotationLogStateUpdatePropertiesH\x00R\x0bstateUpdate\x12S\n\x07\x63omment\x18\x05 \x01(\x0b\x32\x37.sift.annotation_logs.v1.AnnotationLogCommentPropertiesH\x00R\x07\x63ommentB\x0c\n\nproperties\"x\n\x1b\x43reateAnnotationLogResponse\x12Y\n\x0e\x61nnotation_log\x18\x01 \x01(\x0b\x32\x32.sift.annotation_logs.v1.AnnotationLogSearchResultR\rannotationLog\"\xa8\x01\n\x19ListAnnotationLogsRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\x12 \n\tpage_size\x18\x02 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\xa1\x01\n\x1aListAnnotationLogsResponse\x12[\n\x0f\x61nnotation_logs\x18\x01 \x03(\x0b\x32\x32.sift.annotation_logs.v1.AnnotationLogSearchResultR\x0e\x61nnotationLogs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"w\n\x1a\x44\x65leteAnnotationLogRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\x12/\n\x11\x61nnotation_log_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0f\x61nnotationLogId\"\x1d\n\x1b\x44\x65leteAnnotationLogResponse\"\xca\x05\n\x19\x41nnotationLogSearchResult\x12/\n\x11\x61nnotation_log_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0f\x61nnotationLogId\x12\x42\n\x0c\x63reated_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12(\n\rannotation_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\x12\x43\n\x04kind\x18\x05 \x01(\x0e\x32*.sift.annotation_logs.v1.AnnotationLogKindB\x03\xe0\x41\x02R\x04kind\x12\x30\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x34\n\x14\x63reated_by_user_name\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x11\x63reatedByUserName\x12V\n\x08\x61ssigned\x18\x08 \x01(\x0b\x32\x38.sift.annotation_logs.v1.AnnotationLogAssignedPropertiesH\x00R\x08\x61ssigned\x12`\n\x0cstate_update\x18\t \x01(\x0b\x32;.sift.annotation_logs.v1.AnnotationLogStateUpdatePropertiesH\x00R\x0bstateUpdate\x12S\n\x07\x63omment\x18\n \x01(\x0b\x32\x37.sift.annotation_logs.v1.AnnotationLogCommentPropertiesH\x00R\x07\x63ommentB\x0c\n\nproperties\"\x8f\x01\n\x1f\x41nnotationLogAssignedProperties\x12\x32\n\x13\x61ssigned_to_user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x10\x61ssignedToUserId\x12\x38\n\x16\x61ssigned_to_user_email\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x13\x61ssignedToUserEmail\"l\n\"AnnotationLogStateUpdateProperties\x12\x46\n\x05state\x18\x01 \x01(\x0e\x32+.sift.annotation_logs.v1.AnnotationLogStateB\x03\xe0\x41\x02R\x05state\"k\n\x1e\x41nnotationLogCommentProperties\x12I\n\x04\x62ody\x18\x01 \x03(\x0b\x32\x35.sift.annotation_logs.v1.AnnotationCommentBodyElementR\x04\x62ody\"\xea\x01\n\x1c\x41nnotationCommentBodyElement\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x39.sift.annotation_logs.v1.AnnotationCommentBodyElementTypeB\x03\xe0\x41\x02R\x04type\x12\x17\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x04text\x12]\n\x0cuser_mention\x18\x03 \x01(\x0b\x32\x35.sift.annotation_logs.v1.AnnotationCommentUserMentionB\x03\xe0\x41\x01R\x0buserMention\"`\n\x1c\x41nnotationCommentUserMention\x12\x1c\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06userId\x12\"\n\nuser_email\x18\x02 \x01(\tB\x03\xe0\x41\x02R\tuserEmail*\xa1\x01\n\x11\x41nnotationLogKind\x12#\n\x1f\x41NNOTATION_LOG_KIND_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41NNOTATION_LOG_KIND_COMMENT\x10\x01\x12$\n ANNOTATION_LOG_KIND_STATE_UPDATE\x10\x02\x12 \n\x1c\x41NNOTATION_LOG_KIND_ASSIGNED\x10\x03*\xc0\x01\n\x12\x41nnotationLogState\x12$\n ANNOTATION_LOG_STATE_UNSPECIFIED\x10\x00\x12 \n\x1c\x41NNOTATION_LOG_STATE_CREATED\x10\x01\x12\x1d\n\x19\x41NNOTATION_LOG_STATE_OPEN\x10\x02\x12 \n\x1c\x41NNOTATION_LOG_STATE_FLAGGED\x10\x03\x12!\n\x1d\x41NNOTATION_LOG_STATE_RESOLVED\x10\x04*\xbe\x01\n AnnotationCommentBodyElementType\x12\x34\n0ANNOTATION_COMMENT_BODY_ELEMENT_TYPE_UNSPECIFIED\x10\x00\x12-\n)ANNOTATION_COMMENT_BODY_ELEMENT_TYPE_TEXT\x10\x01\x12\x35\n1ANNOTATION_COMMENT_BODY_ELEMENT_TYPE_USER_MENTION\x10\x02\x32\xe1\x07\n\x14\x41nnotationLogService\x12\xfa\x01\n\x13\x43reateAnnotationLog\x12\x33.sift.annotation_logs.v1.CreateAnnotationLogRequest\x1a\x34.sift.annotation_logs.v1.CreateAnnotationLogResponse\"x\x92\x41\x42\x12\x13\x43reateAnnotationLog\x1a+Creates an annotation log on an annotation.\x82\xd3\xe4\x93\x02-\"(/api/v1/annotations/{annotation_id}/logs:\x01*\x12\xfb\x01\n\x12ListAnnotationLogs\x12\x32.sift.annotation_logs.v1.ListAnnotationLogsRequest\x1a\x33.sift.annotation_logs.v1.ListAnnotationLogsResponse\"|\x92\x41I\x12\x12ListAnnotationLogs\x1a\x33Retrieves annotation logs using an optional filter.\x82\xd3\xe4\x93\x02*\x12(/api/v1/annotations/{annotation_id}/logs\x12\xfa\x01\n\x13\x44\x65leteAnnotationLog\x12\x33.sift.annotation_logs.v1.DeleteAnnotationLogRequest\x1a\x34.sift.annotation_logs.v1.DeleteAnnotationLogResponse\"x\x92\x41\x31\x12\x13\x44\x65leteAnnotationLog\x1a\x1a\x44\x65letes an annotation log.\x82\xd3\xe4\x93\x02>**\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\tstartTime\x12:\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x07\x65ndTime\x12\x30\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x42\n\x0c\x63reated_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x1f\n\x06run_id\x18\n \x01(\tB\x03\xe0\x41\x01H\x00R\x05runId\x88\x01\x01\x12\x44\n\x05state\x18\x0b \x01(\x0e\x32$.sift.annotations.v1.AnnotationStateB\x03\xe0\x41\x01H\x01R\x05state\x88\x01\x01\x12,\n\x0forganization_id\x18\x0c \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x32\n\x13\x61ssigned_to_user_id\x18\r \x01(\tB\x03\xe0\x41\x01R\x10\x61ssignedToUserId\x12Q\n\x0f\x61nnotation_type\x18\x0e \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeB\x03\xe0\x41\x02R\x0e\x61nnotationType\x12\x17\n\x04tags\x18\x0f \x03(\tB\x03\xe0\x41\x02R\x04tags\x12-\n\rlegend_config\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x02R\x0clegendConfig\x88\x01\x01\x12?\n\x17\x63reated_by_condition_id\x18\x11 \x01(\tB\x03\xe0\x41\x01H\x03R\x14\x63reatedByConditionId\x88\x01\x01\x42\t\n\x07_run_idB\x08\n\x06_stateB\x10\n\x0e_legend_configB\x1a\n\x18_created_by_condition_id\"E\n\x1f\x41nnotationLinkedChannelsChannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\"x\n\'AnnotationLinkedChannelsBitFieldElement\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12)\n\x0e\x62it_field_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0c\x62itFieldName\"\xdf\x01\n\x17\x41nnotationLinkedChannel\x12P\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x34.sift.annotations.v1.AnnotationLinkedChannelsChannelH\x00R\x07\x63hannel\x12j\n\x11\x62it_field_element\x18\x02 \x01(\x0b\x32<.sift.annotations.v1.AnnotationLinkedChannelsBitFieldElementH\x00R\x0f\x62itFieldElementB\x06\n\x04type\"\xcd\x06\n\x17\x43reateAnnotationRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12>\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\tstartTime\x12:\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x07\x65ndTime\x12\x1b\n\x06\x61ssets\x18\x05 \x03(\tB\x03\xe0\x41\x01R\x06\x61ssets\x12Z\n\x0flinked_channels\x18\x06 \x03(\x0b\x32,.sift.annotations.v1.AnnotationLinkedChannelB\x03\xe0\x41\x01R\x0elinkedChannels\x12\x17\n\x04tags\x18\x07 \x03(\tB\x03\xe0\x41\x01R\x04tags\x12\x1f\n\x06run_id\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x00R\x05runId\x88\x01\x01\x12\x33\n\x11\x61ssign_to_user_id\x18\t \x01(\tB\x03\xe0\x41\x01H\x01R\x0e\x61ssignToUserId\x88\x01\x01\x12,\n\x0forganization_id\x18\n \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\x12\x44\n\x05state\x18\x0b \x01(\x0e\x32$.sift.annotations.v1.AnnotationStateB\x03\xe0\x41\x01H\x02R\x05state\x88\x01\x01\x12Q\n\x0f\x61nnotation_type\x18\x0c \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeB\x03\xe0\x41\x01R\x0e\x61nnotationType\x12?\n\x17\x63reated_by_condition_id\x18\x0e \x01(\tB\x03\xe0\x41\x01H\x03R\x14\x63reatedByConditionId\x88\x01\x01\x12-\n\rlegend_config\x18\r \x01(\tB\x03\xe0\x41\x01H\x04R\x0clegendConfig\x88\x01\x01\x42\t\n\x07_run_idB\x14\n\x12_assign_to_user_idB\x08\n\x06_stateB\x1a\n\x18_created_by_condition_idB\x10\n\x0e_legend_config\"`\n\x18\x43reateAnnotationResponse\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\"C\n\x17\x44\x65leteAnnotationRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\"\x1a\n\x18\x44\x65leteAnnotationResponse\"K\n\x1d\x42\x61tchDeleteAnnotationsRequest\x12*\n\x0e\x61nnotation_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\rannotationIds\" \n\x1e\x42\x61tchDeleteAnnotationsResponse\"@\n\x14GetAnnotationRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\"]\n\x15GetAnnotationResponse\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\"{\n\x16ListAnnotationsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x84\x01\n\x17ListAnnotationsResponse\x12\x41\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32\x1f.sift.annotations.v1.AnnotationR\x0b\x61nnotations\x12&\n\x0fnext_page_token\x18\x05 \x01(\tR\rnextPageToken\"\xa1\x01\n\x17UpdateAnnotationRequest\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"[\n\x18UpdateAnnotationResponse\x12?\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationR\nannotation*\x8b\x01\n\x0f\x41nnotationState\x12 \n\x1c\x41NNOTATION_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41NNOTATION_STATE_OPEN\x10\x01\x12\x1c\n\x18\x41NNOTATION_STATE_FLAGGED\x10\x02\x12\x1d\n\x19\x41NNOTATION_STATE_RESOLVED\x10\x03*m\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41NNOTATION_TYPE_DATA_REVIEW\x10\x01\x12\x19\n\x15\x41NNOTATION_TYPE_PHASE\x10\x02\x32\xcf\x0b\n\x11\x41nnotationService\x12\xbc\x01\n\x10\x43reateAnnotation\x12,.sift.annotations.v1.CreateAnnotationRequest\x1a-.sift.annotations.v1.CreateAnnotationResponse\"K\x92\x41*\x12\x10\x43reateAnnotation\x1a\x16\x43reates an annotation.\x82\xd3\xe4\x93\x02\x18\"\x13/api/v1/annotations:\x01*\x12\xc9\x01\n\x10\x44\x65leteAnnotation\x12,.sift.annotations.v1.DeleteAnnotationRequest\x1a-.sift.annotations.v1.DeleteAnnotationResponse\"X\x92\x41*\x12\x10\x44\x65leteAnnotation\x1a\x16\x44\x65letes an annotation.\x82\xd3\xe4\x93\x02%*#/api/v1/annotations/{annotation_id}\x12\xe3\x01\n\x16\x42\x61tchDeleteAnnotations\x12\x32.sift.annotations.v1.BatchDeleteAnnotationsRequest\x1a\x33.sift.annotations.v1.BatchDeleteAnnotationsResponse\"`\x92\x41\x33\x12\x15\x42\x61tchDeleteAnnotation\x1a\x1a\x42\x61tch deletes annotations.\x82\xd3\xe4\x93\x02$\"\x1f/api/v1/annotations:batchDelete:\x01*\x12\xcd\x01\n\x0fListAnnotations\x12+.sift.annotations.v1.ListAnnotationsRequest\x1a,.sift.annotations.v1.ListAnnotationsResponse\"_\x92\x41\x41\x12\x0eListAnnotation\x1a/Retrieves annotations using an optional filter.\x82\xd3\xe4\x93\x02\x15\x12\x13/api/v1/annotations\x12\xbe\x01\n\rGetAnnotation\x12).sift.annotations.v1.GetAnnotationRequest\x1a*.sift.annotations.v1.GetAnnotationResponse\"V\x92\x41(\x12\rGetAnnotation\x1a\x17Retrieves an annotation\x82\xd3\xe4\x93\x02%\x12#/api/v1/annotations/{annotation_id}\x12\x80\x02\n\x10UpdateAnnotation\x12,.sift.annotations.v1.UpdateAnnotationRequest\x1a-.sift.annotations.v1.UpdateAnnotationResponse\"\x8e\x01\x92\x41m\x12\x10UpdateAnnotation\x1aYUpdates an existing annotation using using the list of fields specified in `update_mask`.\x82\xd3\xe4\x93\x02\x18\x32\x13/api/v1/annotations:\x01*\x1a\xb4\x01\x92\x41\xb0\x01\x12\x36Service to programmatically interact with annotations.\x1av\n\x1cRead more about annotations.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265486685B\xb2\x01\n\x17\x63om.sift.annotations.v1B\x10\x41nnotationsProtoP\x01\xa2\x02\x03SAX\xaa\x02\x13Sift.Annotations.V1\xca\x02\x13Sift\\Annotations\\V1\xe2\x02\x1fSift\\Annotations\\V1\\GPBMetadata\xea\x02\x15Sift::Annotations::V1\x92\x41\x16\x12\x14\n\x12\x41nnotation Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%sift/annotations/v1/annotations.proto\x12\x13sift.annotations.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xca\x07\n\nAnnotation\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12>\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\tstartTime\x12:\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x07\x65ndTime\x12\x30\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x42\n\x0c\x63reated_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x1f\n\x06run_id\x18\n \x01(\tB\x03\xe0\x41\x01H\x00R\x05runId\x88\x01\x01\x12\x44\n\x05state\x18\x0b \x01(\x0e\x32$.sift.annotations.v1.AnnotationStateB\x03\xe0\x41\x01H\x01R\x05state\x88\x01\x01\x12,\n\x0forganization_id\x18\x0c \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x32\n\x13\x61ssigned_to_user_id\x18\r \x01(\tB\x03\xe0\x41\x01R\x10\x61ssignedToUserId\x12Q\n\x0f\x61nnotation_type\x18\x0e \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeB\x03\xe0\x41\x02R\x0e\x61nnotationType\x12\x17\n\x04tags\x18\x0f \x03(\tB\x03\xe0\x41\x02R\x04tags\x12-\n\rlegend_config\x18\x10 \x01(\tB\x03\xe0\x41\x01H\x02R\x0clegendConfig\x88\x01\x01\x12?\n\x17\x63reated_by_condition_id\x18\x11 \x01(\tB\x03\xe0\x41\x01H\x03R\x14\x63reatedByConditionId\x88\x01\x01\x42\t\n\x07_run_idB\x08\n\x06_stateB\x10\n\x0e_legend_configB\x1a\n\x18_created_by_condition_id\"E\n\x1f\x41nnotationLinkedChannelsChannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\"x\n\'AnnotationLinkedChannelsBitFieldElement\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12)\n\x0e\x62it_field_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0c\x62itFieldName\"\xdf\x01\n\x17\x41nnotationLinkedChannel\x12P\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x34.sift.annotations.v1.AnnotationLinkedChannelsChannelH\x00R\x07\x63hannel\x12j\n\x11\x62it_field_element\x18\x02 \x01(\x0b\x32<.sift.annotations.v1.AnnotationLinkedChannelsBitFieldElementH\x00R\x0f\x62itFieldElementB\x06\n\x04type\"\xcd\x06\n\x17\x43reateAnnotationRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12>\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\tstartTime\x12:\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x07\x65ndTime\x12\x1b\n\x06\x61ssets\x18\x05 \x03(\tB\x03\xe0\x41\x01R\x06\x61ssets\x12Z\n\x0flinked_channels\x18\x06 \x03(\x0b\x32,.sift.annotations.v1.AnnotationLinkedChannelB\x03\xe0\x41\x01R\x0elinkedChannels\x12\x17\n\x04tags\x18\x07 \x03(\tB\x03\xe0\x41\x01R\x04tags\x12\x1f\n\x06run_id\x18\x08 \x01(\tB\x03\xe0\x41\x01H\x00R\x05runId\x88\x01\x01\x12\x33\n\x11\x61ssign_to_user_id\x18\t \x01(\tB\x03\xe0\x41\x01H\x01R\x0e\x61ssignToUserId\x88\x01\x01\x12,\n\x0forganization_id\x18\n \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\x12\x44\n\x05state\x18\x0b \x01(\x0e\x32$.sift.annotations.v1.AnnotationStateB\x03\xe0\x41\x01H\x02R\x05state\x88\x01\x01\x12Q\n\x0f\x61nnotation_type\x18\x0c \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeB\x03\xe0\x41\x01R\x0e\x61nnotationType\x12?\n\x17\x63reated_by_condition_id\x18\x0e \x01(\tB\x03\xe0\x41\x01H\x03R\x14\x63reatedByConditionId\x88\x01\x01\x12-\n\rlegend_config\x18\r \x01(\tB\x03\xe0\x41\x01H\x04R\x0clegendConfig\x88\x01\x01\x42\t\n\x07_run_idB\x14\n\x12_assign_to_user_idB\x08\n\x06_stateB\x1a\n\x18_created_by_condition_idB\x10\n\x0e_legend_config\"`\n\x18\x43reateAnnotationResponse\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\"C\n\x17\x44\x65leteAnnotationRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\"\x1a\n\x18\x44\x65leteAnnotationResponse\"K\n\x1d\x42\x61tchDeleteAnnotationsRequest\x12*\n\x0e\x61nnotation_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\rannotationIds\" \n\x1e\x42\x61tchDeleteAnnotationsResponse\"@\n\x14GetAnnotationRequest\x12(\n\rannotation_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x61nnotationId\"]\n\x15GetAnnotationResponse\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\"{\n\x16ListAnnotationsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x84\x01\n\x17ListAnnotationsResponse\x12\x41\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32\x1f.sift.annotations.v1.AnnotationR\x0b\x61nnotations\x12&\n\x0fnext_page_token\x18\x05 \x01(\tR\rnextPageToken\"\xa1\x01\n\x17UpdateAnnotationRequest\x12\x44\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationB\x03\xe0\x41\x02R\nannotation\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"[\n\x18UpdateAnnotationResponse\x12?\n\nannotation\x18\x01 \x01(\x0b\x32\x1f.sift.annotations.v1.AnnotationR\nannotation*\x8b\x01\n\x0f\x41nnotationState\x12 \n\x1c\x41NNOTATION_STATE_UNSPECIFIED\x10\x00\x12\x19\n\x15\x41NNOTATION_STATE_OPEN\x10\x01\x12\x1c\n\x18\x41NNOTATION_STATE_FLAGGED\x10\x02\x12\x1d\n\x19\x41NNOTATION_STATE_RESOLVED\x10\x03*m\n\x0e\x41nnotationType\x12\x1f\n\x1b\x41NNOTATION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41NNOTATION_TYPE_DATA_REVIEW\x10\x01\x12\x19\n\x15\x41NNOTATION_TYPE_PHASE\x10\x02\x32\xcf\x0b\n\x11\x41nnotationService\x12\xbc\x01\n\x10\x43reateAnnotation\x12,.sift.annotations.v1.CreateAnnotationRequest\x1a-.sift.annotations.v1.CreateAnnotationResponse\"K\x92\x41*\x12\x10\x43reateAnnotation\x1a\x16\x43reates an annotation.\x82\xd3\xe4\x93\x02\x18\"\x13/api/v1/annotations:\x01*\x12\xc9\x01\n\x10\x44\x65leteAnnotation\x12,.sift.annotations.v1.DeleteAnnotationRequest\x1a-.sift.annotations.v1.DeleteAnnotationResponse\"X\x92\x41*\x12\x10\x44\x65leteAnnotation\x1a\x16\x44\x65letes an annotation.\x82\xd3\xe4\x93\x02%*#/api/v1/annotations/{annotation_id}\x12\xe3\x01\n\x16\x42\x61tchDeleteAnnotations\x12\x32.sift.annotations.v1.BatchDeleteAnnotationsRequest\x1a\x33.sift.annotations.v1.BatchDeleteAnnotationsResponse\"`\x92\x41\x33\x12\x15\x42\x61tchDeleteAnnotation\x1a\x1a\x42\x61tch deletes annotations.\x82\xd3\xe4\x93\x02$\"\x1f/api/v1/annotations:batchDelete:\x01*\x12\xcd\x01\n\x0fListAnnotations\x12+.sift.annotations.v1.ListAnnotationsRequest\x1a,.sift.annotations.v1.ListAnnotationsResponse\"_\x92\x41\x41\x12\x0eListAnnotation\x1a/Retrieves annotations using an optional filter.\x82\xd3\xe4\x93\x02\x15\x12\x13/api/v1/annotations\x12\xbe\x01\n\rGetAnnotation\x12).sift.annotations.v1.GetAnnotationRequest\x1a*.sift.annotations.v1.GetAnnotationResponse\"V\x92\x41(\x12\rGetAnnotation\x1a\x17Retrieves an annotation\x82\xd3\xe4\x93\x02%\x12#/api/v1/annotations/{annotation_id}\x12\x80\x02\n\x10UpdateAnnotation\x12,.sift.annotations.v1.UpdateAnnotationRequest\x1a-.sift.annotations.v1.UpdateAnnotationResponse\"\x8e\x01\x92\x41m\x12\x10UpdateAnnotation\x1aYUpdates an existing annotation using using the list of fields specified in `update_mask`.\x82\xd3\xe4\x93\x02\x18\x32\x13/api/v1/annotations:\x01*\x1a\xb4\x01\x92\x41\xb0\x01\x12\x36Service to programmatically interact with annotations.\x1av\n\x1cRead more about annotations.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265486685B\xed\x01\n\x17\x63om.sift.annotations.v1B\x10\x41nnotationsProtoP\x01Z9azimuth/gen/protos/go/sift/annotations/v1;annotationsv1pb\xa2\x02\x03SAX\xaa\x02\x13Sift.Annotations.V1\xca\x02\x13Sift\\Annotations\\V1\xe2\x02\x1fSift\\Annotations\\V1\\GPBMetadata\xea\x02\x15Sift::Annotations::V1\x92\x41\x16\x12\x14\n\x12\x41nnotation Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.annotations.v1.annotations_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.annotations.v1B\020AnnotationsProtoP\001\242\002\003SAX\252\002\023Sift.Annotations.V1\312\002\023Sift\\Annotations\\V1\342\002\037Sift\\Annotations\\V1\\GPBMetadata\352\002\025Sift::Annotations::V1\222A\026\022\024\n\022Annotation Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.annotations.v1B\020AnnotationsProtoP\001Z9azimuth/gen/protos/go/sift/annotations/v1;annotationsv1pb\242\002\003SAX\252\002\023Sift.Annotations.V1\312\002\023Sift\\Annotations\\V1\342\002\037Sift\\Annotations\\V1\\GPBMetadata\352\002\025Sift::Annotations::V1\222A\026\022\024\n\022Annotation Service' _globals['_ANNOTATION'].fields_by_name['annotation_id']._loaded_options = None _globals['_ANNOTATION'].fields_by_name['annotation_id']._serialized_options = b'\340A\002' _globals['_ANNOTATION'].fields_by_name['name']._loaded_options = None diff --git a/python/gen/sift/assets/v1/assets_pb2.py b/python/gen/sift/assets/v1/assets_pb2.py index 65be3f08..d4f93cb2 100644 --- a/python/gen/sift/assets/v1/assets_pb2.py +++ b/python/gen/sift/assets/v1/assets_pb2.py @@ -18,14 +18,14 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bsift/assets/v1/assets.proto\x12\x0esift.assets.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xde\x02\n\x05\x41sset\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12,\n\x0forganization_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x44\n\rmodified_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\"v\n\x11ListAssetsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"k\n\x12ListAssetsResponse\x12-\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x15.sift.assets.v1.AssetR\x06\x61ssets\x12&\n\x0fnext_page_token\x18\x05 \x01(\tR\rnextPageToken\"4\n\x12\x44\x65leteAssetRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\"\x15\n\x13\x44\x65leteAssetResponse\"1\n\x0fGetAssetRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\"?\n\x10GetAssetResponse\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x15.sift.assets.v1.AssetR\x05\x61sset2\xe7\x04\n\x0c\x41ssetService\x12\x9c\x01\n\x0b\x44\x65leteAsset\x12\".sift.assets.v1.DeleteAssetRequest\x1a#.sift.assets.v1.DeleteAssetResponse\"D\x92\x41 \x12\x0b\x44\x65leteAsset\x1a\x11\x44\x65letes an asset.\x82\xd3\xe4\x93\x02\x1b*\x19/api/v1/assets/{asset_id}\x12\x92\x01\n\x08GetAsset\x12\x1f.sift.assets.v1.GetAssetRequest\x1a .sift.assets.v1.GetAssetResponse\"C\x92\x41\x1f\x12\x08GetAsset\x1a\x13Retrieves an asset.\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/assets/{asset_id}\x12\xa6\x01\n\nListAssets\x12!.sift.assets.v1.ListAssetsRequest\x1a\".sift.assets.v1.ListAssetsResponse\"Q\x92\x41\x38\x12\nListAssets\x1a*Retrieves assets using an optional filter.\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/assets\x1az\x92\x41w\x12\x44Service to programmatically interact with [assets](/glossary#asset).\x1a/\n Read more about what assets are.\x12\x0b/data-modelB\x8f\x01\n\x12\x63om.sift.assets.v1B\x0b\x41ssetsProtoP\x01\xa2\x02\x03SAX\xaa\x02\x0eSift.Assets.V1\xca\x02\x0eSift\\Assets\\V1\xe2\x02\x1aSift\\Assets\\V1\\GPBMetadata\xea\x02\x10Sift::Assets::V1\x92\x41\x11\x12\x0f\n\rAsset Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bsift/assets/v1/assets.proto\x12\x0esift.assets.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xde\x02\n\x05\x41sset\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12,\n\x0forganization_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x44\n\rmodified_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\"v\n\x11ListAssetsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"k\n\x12ListAssetsResponse\x12-\n\x06\x61ssets\x18\x01 \x03(\x0b\x32\x15.sift.assets.v1.AssetR\x06\x61ssets\x12&\n\x0fnext_page_token\x18\x05 \x01(\tR\rnextPageToken\"4\n\x12\x44\x65leteAssetRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\"\x15\n\x13\x44\x65leteAssetResponse\"1\n\x0fGetAssetRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\"?\n\x10GetAssetResponse\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x15.sift.assets.v1.AssetR\x05\x61sset2\xe7\x04\n\x0c\x41ssetService\x12\x9c\x01\n\x0b\x44\x65leteAsset\x12\".sift.assets.v1.DeleteAssetRequest\x1a#.sift.assets.v1.DeleteAssetResponse\"D\x92\x41 \x12\x0b\x44\x65leteAsset\x1a\x11\x44\x65letes an asset.\x82\xd3\xe4\x93\x02\x1b*\x19/api/v1/assets/{asset_id}\x12\x92\x01\n\x08GetAsset\x12\x1f.sift.assets.v1.GetAssetRequest\x1a .sift.assets.v1.GetAssetResponse\"C\x92\x41\x1f\x12\x08GetAsset\x1a\x13Retrieves an asset.\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/assets/{asset_id}\x12\xa6\x01\n\nListAssets\x12!.sift.assets.v1.ListAssetsRequest\x1a\".sift.assets.v1.ListAssetsResponse\"Q\x92\x41\x38\x12\nListAssets\x1a*Retrieves assets using an optional filter.\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/assets\x1az\x92\x41w\x12\x44Service to programmatically interact with [assets](/glossary#asset).\x1a/\n Read more about what assets are.\x12\x0b/data-modelB\xc0\x01\n\x12\x63om.sift.assets.v1B\x0b\x41ssetsProtoP\x01Z/azimuth/gen/protos/go/sift/assets/v1;assetsv1pb\xa2\x02\x03SAX\xaa\x02\x0eSift.Assets.V1\xca\x02\x0eSift\\Assets\\V1\xe2\x02\x1aSift\\Assets\\V1\\GPBMetadata\xea\x02\x10Sift::Assets::V1\x92\x41\x11\x12\x0f\n\rAsset Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.assets.v1.assets_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\022com.sift.assets.v1B\013AssetsProtoP\001\242\002\003SAX\252\002\016Sift.Assets.V1\312\002\016Sift\\Assets\\V1\342\002\032Sift\\Assets\\V1\\GPBMetadata\352\002\020Sift::Assets::V1\222A\021\022\017\n\rAsset Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\022com.sift.assets.v1B\013AssetsProtoP\001Z/azimuth/gen/protos/go/sift/assets/v1;assetsv1pb\242\002\003SAX\252\002\016Sift.Assets.V1\312\002\016Sift\\Assets\\V1\342\002\032Sift\\Assets\\V1\\GPBMetadata\352\002\020Sift::Assets::V1\222A\021\022\017\n\rAsset Service' _globals['_ASSET'].fields_by_name['asset_id']._loaded_options = None _globals['_ASSET'].fields_by_name['asset_id']._serialized_options = b'\340A\002' _globals['_ASSET'].fields_by_name['name']._loaded_options = None diff --git a/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.py b/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.py index b6e1e7a5..ea0fcfac 100644 --- a/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.py +++ b/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.py @@ -18,22 +18,26 @@ from sift.common.type.v1 import channel_data_type_pb2 as sift_dot_common_dot_type_dot_v1_dot_channel__data__type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5sift/calculated_channels/v1/calculated_channels.proto\x12\x1bsift.calculated_channels.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a+sift/common/type/v1/channel_data_type.proto\"\xf9\x01\n\x11\x45xpressionRequest\x12y\n\x12\x63hannel_references\x18\x01 \x03(\x0b\x32\x45.sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntryB\x03\xe0\x41\x02R\x11\x63hannelReferences\x12#\n\nexpression\x18\x02 \x01(\tB\x03\xe0\x41\x02R\nexpression\x1a\x44\n\x16\x43hannelReferencesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xa4\x01\n ListExpressionIdentifiersRequest\x12\x1b\n\tpage_size\x18\x01 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x02 \x01(\tR\tpageToken\x12\x44\n\x04mode\x18\x03 \x01(\x0e\x32+.sift.calculated_channels.v1.ExpressionModeB\x03\xe0\x41\x02R\x04mode\"}\n!ListExpressionIdentifiersResponse\x12X\n\x0bidentifiers\x18\x01 \x03(\x0b\x32\x31.sift.calculated_channels.v1.ExpressionIdentifierB\x03\xe0\x41\x02R\x0bidentifiers\"\xce\x01\n\x14\x45xpressionIdentifier\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12N\n\x04type\x18\x03 \x01(\x0e\x32\x35.sift.calculated_channels.v1.ExpressionIdentifierTypeB\x03\xe0\x41\x02R\x04type\x12&\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\"\xb6\x01\n\x19ValidateExpressionRequest\x12S\n\nexpression\x18\x01 \x01(\x0b\x32..sift.calculated_channels.v1.ExpressionRequestB\x03\xe0\x41\x02R\nexpression\x12\x44\n\x04mode\x18\x02 \x01(\x0e\x32+.sift.calculated_channels.v1.ExpressionModeB\x03\xe0\x41\x02R\x04mode\"\xd8\x01\n\x1aValidateExpressionResponse\x12T\n\x05\x65rror\x18\x01 \x01(\x0b\x32<.sift.calculated_channels.v1.ErrorValidatingExpressionResultH\x00R\x05\x65rror\x12Z\n\x07success\x18\x02 \x01(\x0b\x32>.sift.calculated_channels.v1.SuccessValidatingExpressionResultH\x00R\x07successB\x08\n\x06result\"K\n\x1f\x45rrorValidatingExpressionResult\x12(\n\rerror_message\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x65rrorMessage\"k\n!SuccessValidatingExpressionResult\x12\x46\n\tdata_type\x18\x01 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType*\x9b\x01\n\x18\x45xpressionIdentifierType\x12.\n&EXPRESSION_IDENTIFIER_TYPE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\'\n#EXPRESSION_IDENTIFIER_TYPE_FUNCTION\x10\x01\x12&\n\"EXPRESSION_IDENTIFIER_TYPE_CHANNEL\x10\x02*y\n\x0e\x45xpressionMode\x12#\n\x1b\x45XPRESSION_MODE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15\x45XPRESSION_MODE_RULES\x10\x01\x12\'\n#EXPRESSION_MODE_CALCULATED_CHANNELS\x10\x02\x32\xf1\x06\n\x19\x43\x61lculatedChannelsService\x12\xd9\x02\n\x19ListExpressionIdentifiers\x12=.sift.calculated_channels.v1.ListExpressionIdentifiersRequest\x1a>.sift.calculated_channels.v1.ListExpressionIdentifiersResponse\"\xbc\x01\x92\x41\x7f\x12\x19ListExpressionIdentifiers\x1a\x62Retrieves a list of valid identifiers that can be used as part of a calculated channel expression.\x82\xd3\xe4\x93\x02\x34\x12\x32/api/v1/calculated-channels:expression-identifiers\x12\xb0\x02\n\x12ValidateExpression\x12\x36.sift.calculated_channels.v1.ValidateExpressionRequest\x1a\x37.sift.calculated_channels.v1.ValidateExpressionResponse\"\xa8\x01\x92\x41k\x12\x12ValidateExpression\x1aUUsed to validate whether or not an expression used for a calculated channel is valid.\x82\xd3\xe4\x93\x02\x34\"//api/v1/calculated-channels:validate-expression:\x01*\x1a\xc4\x01\x92\x41\xc0\x01\x12>Service to programmatically interact with calculated channels.\x1a~\n$Read more about calculated channels.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265421153B\xe6\x01\n\x1f\x63om.sift.calculated_channels.v1B\x17\x43\x61lculatedChannelsProtoP\x01\xa2\x02\x03SCX\xaa\x02\x1aSift.CalculatedChannels.V1\xca\x02\x1aSift\\CalculatedChannels\\V1\xe2\x02&Sift\\CalculatedChannels\\V1\\GPBMetadata\xea\x02\x1cSift::CalculatedChannels::V1\x92\x41\x1f\x12\x1d\n\x1b\x43\x61lculated Channels Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5sift/calculated_channels/v1/calculated_channels.proto\x12\x1bsift.calculated_channels.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a+sift/common/type/v1/channel_data_type.proto\"r\n\x1a\x45xpressionChannelReference\x12\x30\n\x11\x63hannel_reference\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x10\x63hannelReference\x12\"\n\nchannel_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\tchannelId\"\xf5\x02\n\x11\x45xpressionRequest\x12x\n\x12\x63hannel_references\x18\x01 \x03(\x0b\x32\x45.sift.calculated_channels.v1.ExpressionRequest.ChannelReferencesEntryB\x02\x18\x01R\x11\x63hannelReferences\x12#\n\nexpression\x18\x02 \x01(\tB\x03\xe0\x41\x02R\nexpression\x12{\n\x1d\x65xpression_channel_references\x18\x03 \x03(\x0b\x32\x37.sift.calculated_channels.v1.ExpressionChannelReferenceR\x1b\x65xpressionChannelReferences\x1a\x44\n\x16\x43hannelReferencesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xa4\x01\n ListExpressionIdentifiersRequest\x12\x1b\n\tpage_size\x18\x01 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x02 \x01(\tR\tpageToken\x12\x44\n\x04mode\x18\x03 \x01(\x0e\x32+.sift.calculated_channels.v1.ExpressionModeB\x03\xe0\x41\x02R\x04mode\"}\n!ListExpressionIdentifiersResponse\x12X\n\x0bidentifiers\x18\x01 \x03(\x0b\x32\x31.sift.calculated_channels.v1.ExpressionIdentifierB\x03\xe0\x41\x02R\x0bidentifiers\"\xce\x01\n\x14\x45xpressionIdentifier\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12N\n\x04type\x18\x03 \x01(\x0e\x32\x35.sift.calculated_channels.v1.ExpressionIdentifierTypeB\x03\xe0\x41\x02R\x04type\x12&\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0b\x64isplayName\"\xb6\x01\n\x19ValidateExpressionRequest\x12S\n\nexpression\x18\x01 \x01(\x0b\x32..sift.calculated_channels.v1.ExpressionRequestB\x03\xe0\x41\x02R\nexpression\x12\x44\n\x04mode\x18\x02 \x01(\x0e\x32+.sift.calculated_channels.v1.ExpressionModeB\x03\xe0\x41\x02R\x04mode\"\xd8\x01\n\x1aValidateExpressionResponse\x12T\n\x05\x65rror\x18\x01 \x01(\x0b\x32<.sift.calculated_channels.v1.ErrorValidatingExpressionResultH\x00R\x05\x65rror\x12Z\n\x07success\x18\x02 \x01(\x0b\x32>.sift.calculated_channels.v1.SuccessValidatingExpressionResultH\x00R\x07successB\x08\n\x06result\"K\n\x1f\x45rrorValidatingExpressionResult\x12(\n\rerror_message\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0c\x65rrorMessage\"k\n!SuccessValidatingExpressionResult\x12\x46\n\tdata_type\x18\x01 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType*\x9b\x01\n\x18\x45xpressionIdentifierType\x12.\n&EXPRESSION_IDENTIFIER_TYPE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\'\n#EXPRESSION_IDENTIFIER_TYPE_FUNCTION\x10\x01\x12&\n\"EXPRESSION_IDENTIFIER_TYPE_CHANNEL\x10\x02*y\n\x0e\x45xpressionMode\x12#\n\x1b\x45XPRESSION_MODE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15\x45XPRESSION_MODE_RULES\x10\x01\x12\'\n#EXPRESSION_MODE_CALCULATED_CHANNELS\x10\x02\x32\xf1\x06\n\x19\x43\x61lculatedChannelsService\x12\xd9\x02\n\x19ListExpressionIdentifiers\x12=.sift.calculated_channels.v1.ListExpressionIdentifiersRequest\x1a>.sift.calculated_channels.v1.ListExpressionIdentifiersResponse\"\xbc\x01\x92\x41\x7f\x12\x19ListExpressionIdentifiers\x1a\x62Retrieves a list of valid identifiers that can be used as part of a calculated channel expression.\x82\xd3\xe4\x93\x02\x34\x12\x32/api/v1/calculated-channels:expression-identifiers\x12\xb0\x02\n\x12ValidateExpression\x12\x36.sift.calculated_channels.v1.ValidateExpressionRequest\x1a\x37.sift.calculated_channels.v1.ValidateExpressionResponse\"\xa8\x01\x92\x41k\x12\x12ValidateExpression\x1aUUsed to validate whether or not an expression used for a calculated channel is valid.\x82\xd3\xe4\x93\x02\x34\"//api/v1/calculated-channels:validate-expression:\x01*\x1a\xc4\x01\x92\x41\xc0\x01\x12>Service to programmatically interact with calculated channels.\x1a~\n$Read more about calculated channels.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265421153B\xb0\x02\n\x1f\x63om.sift.calculated_channels.v1B\x17\x43\x61lculatedChannelsProtoP\x01ZHazimuth/gen/protos/go/sift/calculated_channels/v1;calculatedchannelsv1pb\xa2\x02\x03SCX\xaa\x02\x1aSift.CalculatedChannels.V1\xca\x02\x1aSift\\CalculatedChannels\\V1\xe2\x02&Sift\\CalculatedChannels\\V1\\GPBMetadata\xea\x02\x1cSift::CalculatedChannels::V1\x92\x41\x1f\x12\x1d\n\x1b\x43\x61lculated Channels Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.calculated_channels.v1.calculated_channels_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\037com.sift.calculated_channels.v1B\027CalculatedChannelsProtoP\001\242\002\003SCX\252\002\032Sift.CalculatedChannels.V1\312\002\032Sift\\CalculatedChannels\\V1\342\002&Sift\\CalculatedChannels\\V1\\GPBMetadata\352\002\034Sift::CalculatedChannels::V1\222A\037\022\035\n\033Calculated Channels Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\037com.sift.calculated_channels.v1B\027CalculatedChannelsProtoP\001ZHazimuth/gen/protos/go/sift/calculated_channels/v1;calculatedchannelsv1pb\242\002\003SCX\252\002\032Sift.CalculatedChannels.V1\312\002\032Sift\\CalculatedChannels\\V1\342\002&Sift\\CalculatedChannels\\V1\\GPBMetadata\352\002\034Sift::CalculatedChannels::V1\222A\037\022\035\n\033Calculated Channels Service' _globals['_EXPRESSIONIDENTIFIERTYPE'].values_by_name["EXPRESSION_IDENTIFIER_TYPE_UNSPECIFIED"]._loaded_options = None _globals['_EXPRESSIONIDENTIFIERTYPE'].values_by_name["EXPRESSION_IDENTIFIER_TYPE_UNSPECIFIED"]._serialized_options = b'\010\001' _globals['_EXPRESSIONMODE'].values_by_name["EXPRESSION_MODE_UNSPECIFIED"]._loaded_options = None _globals['_EXPRESSIONMODE'].values_by_name["EXPRESSION_MODE_UNSPECIFIED"]._serialized_options = b'\010\001' + _globals['_EXPRESSIONCHANNELREFERENCE'].fields_by_name['channel_reference']._loaded_options = None + _globals['_EXPRESSIONCHANNELREFERENCE'].fields_by_name['channel_reference']._serialized_options = b'\340A\002' + _globals['_EXPRESSIONCHANNELREFERENCE'].fields_by_name['channel_id']._loaded_options = None + _globals['_EXPRESSIONCHANNELREFERENCE'].fields_by_name['channel_id']._serialized_options = b'\340A\002' _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._loaded_options = None _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._serialized_options = b'8\001' _globals['_EXPRESSIONREQUEST'].fields_by_name['channel_references']._loaded_options = None - _globals['_EXPRESSIONREQUEST'].fields_by_name['channel_references']._serialized_options = b'\340A\002' + _globals['_EXPRESSIONREQUEST'].fields_by_name['channel_references']._serialized_options = b'\030\001' _globals['_EXPRESSIONREQUEST'].fields_by_name['expression']._loaded_options = None _globals['_EXPRESSIONREQUEST'].fields_by_name['expression']._serialized_options = b'\340A\002' _globals['_LISTEXPRESSIONIDENTIFIERSREQUEST'].fields_by_name['mode']._loaded_options = None @@ -62,28 +66,30 @@ _globals['_CALCULATEDCHANNELSSERVICE'].methods_by_name['ListExpressionIdentifiers']._serialized_options = b'\222A\177\022\031ListExpressionIdentifiers\032bRetrieves a list of valid identifiers that can be used as part of a calculated channel expression.\202\323\344\223\0024\0222/api/v1/calculated-channels:expression-identifiers' _globals['_CALCULATEDCHANNELSSERVICE'].methods_by_name['ValidateExpression']._loaded_options = None _globals['_CALCULATEDCHANNELSSERVICE'].methods_by_name['ValidateExpression']._serialized_options = b'\222Ak\022\022ValidateExpression\032UUsed to validate whether or not an expression used for a calculated channel is valid.\202\323\344\223\0024\"//api/v1/calculated-channels:validate-expression:\001*' - _globals['_EXPRESSIONIDENTIFIERTYPE']._serialized_start=1588 - _globals['_EXPRESSIONIDENTIFIERTYPE']._serialized_end=1743 - _globals['_EXPRESSIONMODE']._serialized_start=1745 - _globals['_EXPRESSIONMODE']._serialized_end=1866 - _globals['_EXPRESSIONREQUEST']._serialized_start=243 - _globals['_EXPRESSIONREQUEST']._serialized_end=492 - _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._serialized_start=424 - _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._serialized_end=492 - _globals['_LISTEXPRESSIONIDENTIFIERSREQUEST']._serialized_start=495 - _globals['_LISTEXPRESSIONIDENTIFIERSREQUEST']._serialized_end=659 - _globals['_LISTEXPRESSIONIDENTIFIERSRESPONSE']._serialized_start=661 - _globals['_LISTEXPRESSIONIDENTIFIERSRESPONSE']._serialized_end=786 - _globals['_EXPRESSIONIDENTIFIER']._serialized_start=789 - _globals['_EXPRESSIONIDENTIFIER']._serialized_end=995 - _globals['_VALIDATEEXPRESSIONREQUEST']._serialized_start=998 - _globals['_VALIDATEEXPRESSIONREQUEST']._serialized_end=1180 - _globals['_VALIDATEEXPRESSIONRESPONSE']._serialized_start=1183 - _globals['_VALIDATEEXPRESSIONRESPONSE']._serialized_end=1399 - _globals['_ERRORVALIDATINGEXPRESSIONRESULT']._serialized_start=1401 - _globals['_ERRORVALIDATINGEXPRESSIONRESULT']._serialized_end=1476 - _globals['_SUCCESSVALIDATINGEXPRESSIONRESULT']._serialized_start=1478 - _globals['_SUCCESSVALIDATINGEXPRESSIONRESULT']._serialized_end=1585 - _globals['_CALCULATEDCHANNELSSERVICE']._serialized_start=1869 - _globals['_CALCULATEDCHANNELSSERVICE']._serialized_end=2750 + _globals['_EXPRESSIONIDENTIFIERTYPE']._serialized_start=1828 + _globals['_EXPRESSIONIDENTIFIERTYPE']._serialized_end=1983 + _globals['_EXPRESSIONMODE']._serialized_start=1985 + _globals['_EXPRESSIONMODE']._serialized_end=2106 + _globals['_EXPRESSIONCHANNELREFERENCE']._serialized_start=242 + _globals['_EXPRESSIONCHANNELREFERENCE']._serialized_end=356 + _globals['_EXPRESSIONREQUEST']._serialized_start=359 + _globals['_EXPRESSIONREQUEST']._serialized_end=732 + _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._serialized_start=664 + _globals['_EXPRESSIONREQUEST_CHANNELREFERENCESENTRY']._serialized_end=732 + _globals['_LISTEXPRESSIONIDENTIFIERSREQUEST']._serialized_start=735 + _globals['_LISTEXPRESSIONIDENTIFIERSREQUEST']._serialized_end=899 + _globals['_LISTEXPRESSIONIDENTIFIERSRESPONSE']._serialized_start=901 + _globals['_LISTEXPRESSIONIDENTIFIERSRESPONSE']._serialized_end=1026 + _globals['_EXPRESSIONIDENTIFIER']._serialized_start=1029 + _globals['_EXPRESSIONIDENTIFIER']._serialized_end=1235 + _globals['_VALIDATEEXPRESSIONREQUEST']._serialized_start=1238 + _globals['_VALIDATEEXPRESSIONREQUEST']._serialized_end=1420 + _globals['_VALIDATEEXPRESSIONRESPONSE']._serialized_start=1423 + _globals['_VALIDATEEXPRESSIONRESPONSE']._serialized_end=1639 + _globals['_ERRORVALIDATINGEXPRESSIONRESULT']._serialized_start=1641 + _globals['_ERRORVALIDATINGEXPRESSIONRESULT']._serialized_end=1716 + _globals['_SUCCESSVALIDATINGEXPRESSIONRESULT']._serialized_start=1718 + _globals['_SUCCESSVALIDATINGEXPRESSIONRESULT']._serialized_end=1825 + _globals['_CALCULATEDCHANNELSSERVICE']._serialized_start=2109 + _globals['_CALCULATEDCHANNELSSERVICE']._serialized_end=2990 # @@protoc_insertion_point(module_scope) diff --git a/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.pyi b/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.pyi index bc1ad101..9bc781c3 100644 --- a/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.pyi +++ b/python/gen/sift/calculated_channels/v1/calculated_channels_pb2.pyi @@ -54,6 +54,24 @@ EXPRESSION_MODE_RULES: ExpressionMode.ValueType # 1 EXPRESSION_MODE_CALCULATED_CHANNELS: ExpressionMode.ValueType # 2 global___ExpressionMode = ExpressionMode +@typing.final +class ExpressionChannelReference(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CHANNEL_REFERENCE_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + channel_reference: builtins.str + channel_id: builtins.str + def __init__( + self, + *, + channel_reference: builtins.str = ..., + channel_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["channel_id", b"channel_id", "channel_reference", b"channel_reference"]) -> None: ... + +global___ExpressionChannelReference = ExpressionChannelReference + @typing.final class ExpressionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -76,18 +94,24 @@ class ExpressionRequest(google.protobuf.message.Message): CHANNEL_REFERENCES_FIELD_NUMBER: builtins.int EXPRESSION_FIELD_NUMBER: builtins.int + EXPRESSION_CHANNEL_REFERENCES_FIELD_NUMBER: builtins.int expression: builtins.str @property def channel_references(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: - """A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid).""" + """A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid). + This is deprecated and should be passed in expression_channel_references instead. + """ + @property + def expression_channel_references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExpressionChannelReference]: ... def __init__( self, *, channel_references: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., expression: builtins.str = ..., + expression_channel_references: collections.abc.Iterable[global___ExpressionChannelReference] | None = ..., ) -> None: ... - def ClearField(self, field_name: typing.Literal["channel_references", b"channel_references", "expression", b"expression"]) -> None: ... + def ClearField(self, field_name: typing.Literal["channel_references", b"channel_references", "expression", b"expression", "expression_channel_references", b"expression_channel_references"]) -> None: ... global___ExpressionRequest = ExpressionRequest diff --git a/python/gen/sift/channel_schemas/v1/channel_schemas_pb2.py b/python/gen/sift/channel_schemas/v1/channel_schemas_pb2.py index be22967b..c0eaaedc 100644 --- a/python/gen/sift/channel_schemas/v1/channel_schemas_pb2.py +++ b/python/gen/sift/channel_schemas/v1/channel_schemas_pb2.py @@ -20,14 +20,14 @@ from sift.common.type.v1 import channel_enum_type_pb2 as sift_dot_common_dot_type_dot_v1_dot_channel__enum__type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-sift/channel_schemas/v1/channel_schemas.proto\x12\x17sift.channel_schemas.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\xbb\x03\n\x1a\x43reateChannelSchemaRequest\x12!\n\tcomponent\x18\x01 \x01(\tB\x03\xe0\x41\x01R\tcomponent\x12\x1d\n\x07\x63hannel\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x63hannel\x12\x17\n\x04unit\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x04unit\x12\x46\n\tdata_type\x18\x04 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12H\n\nenum_types\x18\x05 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeB\x03\xe0\x41\x01R\tenumTypes\x12^\n\x12\x62it_field_elements\x18\x06 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementB\x03\xe0\x41\x01R\x10\x62itFieldElements\x12\"\n\nasset_name\x18\x07 \x01(\tB\x03\xe0\x41\x02R\tassetName\x12,\n\x0forganization_id\x18\x08 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"\x1d\n\x1b\x43reateChannelSchemaResponse\"\xca\x01\n BatchCreateChannelSchemasRequest\x12T\n\x08requests\x18\x01 \x03(\x0b\x32\x33.sift.channel_schemas.v1.CreateChannelSchemaRequestB\x03\xe0\x41\x02R\x08requests\x12\"\n\nasset_name\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tassetName\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"#\n!BatchCreateChannelSchemasResponse2\xb5\x04\n\x14\x43hannelSchemaService\x12\xd5\x01\n\x13\x43reateChannelSchema\x12\x33.sift.channel_schemas.v1.CreateChannelSchemaRequest\x1a\x34.sift.channel_schemas.v1.CreateChannelSchemaResponse\"S\x92\x41.\x12\x13\x43reateChannelSchema\x1a\x17\x43reate a channel schema\x82\xd3\xe4\x93\x02\x1c\"\x17/api/v1/channel-schemas:\x01*\x12\x84\x02\n\x19\x42\x61tchCreateChannelSchemas\x12\x39.sift.channel_schemas.v1.BatchCreateChannelSchemasRequest\x1a:.sift.channel_schemas.v1.BatchCreateChannelSchemasResponse\"p\x92\x41>\x12\x19\x42\x61tchCreateChannelSchemas\x1a!Create a batch of channel schemas\x82\xd3\xe4\x93\x02)\"$/api/v1/channel-schemas:batch-create:\x01*\x1a>\x92\x41;\x12\x39Service to programmatically interact with channel schemasB\xc9\x01\n\x1b\x63om.sift.channel_schemas.v1B\x13\x43hannelSchemasProtoP\x01\xa2\x02\x03SCX\xaa\x02\x16Sift.ChannelSchemas.V1\xca\x02\x16Sift\\ChannelSchemas\\V1\xe2\x02\"Sift\\ChannelSchemas\\V1\\GPBMetadata\xea\x02\x18Sift::ChannelSchemas::V1\x92\x41\x1a\x12\x18\n\x16\x43hannel Schema Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-sift/channel_schemas/v1/channel_schemas.proto\x12\x17sift.channel_schemas.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\xbb\x03\n\x1a\x43reateChannelSchemaRequest\x12!\n\tcomponent\x18\x01 \x01(\tB\x03\xe0\x41\x01R\tcomponent\x12\x1d\n\x07\x63hannel\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x63hannel\x12\x17\n\x04unit\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x04unit\x12\x46\n\tdata_type\x18\x04 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12H\n\nenum_types\x18\x05 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeB\x03\xe0\x41\x01R\tenumTypes\x12^\n\x12\x62it_field_elements\x18\x06 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementB\x03\xe0\x41\x01R\x10\x62itFieldElements\x12\"\n\nasset_name\x18\x07 \x01(\tB\x03\xe0\x41\x02R\tassetName\x12,\n\x0forganization_id\x18\x08 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"\x1d\n\x1b\x43reateChannelSchemaResponse\"\xca\x01\n BatchCreateChannelSchemasRequest\x12T\n\x08requests\x18\x01 \x03(\x0b\x32\x33.sift.channel_schemas.v1.CreateChannelSchemaRequestB\x03\xe0\x41\x02R\x08requests\x12\"\n\nasset_name\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tassetName\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"#\n!BatchCreateChannelSchemasResponse2\xb5\x04\n\x14\x43hannelSchemaService\x12\xd5\x01\n\x13\x43reateChannelSchema\x12\x33.sift.channel_schemas.v1.CreateChannelSchemaRequest\x1a\x34.sift.channel_schemas.v1.CreateChannelSchemaResponse\"S\x92\x41.\x12\x13\x43reateChannelSchema\x1a\x17\x43reate a channel schema\x82\xd3\xe4\x93\x02\x1c\"\x17/api/v1/channel-schemas:\x01*\x12\x84\x02\n\x19\x42\x61tchCreateChannelSchemas\x12\x39.sift.channel_schemas.v1.BatchCreateChannelSchemasRequest\x1a:.sift.channel_schemas.v1.BatchCreateChannelSchemasResponse\"p\x92\x41>\x12\x19\x42\x61tchCreateChannelSchemas\x1a!Create a batch of channel schemas\x82\xd3\xe4\x93\x02)\"$/api/v1/channel-schemas:batch-create:\x01*\x1a>\x92\x41;\x12\x39Service to programmatically interact with channel schemasB\x8b\x02\n\x1b\x63om.sift.channel_schemas.v1B\x13\x43hannelSchemasProtoP\x01Z@azimuth/gen/protos/go/sift/channel_schemas/v1;channelschemasv1pb\xa2\x02\x03SCX\xaa\x02\x16Sift.ChannelSchemas.V1\xca\x02\x16Sift\\ChannelSchemas\\V1\xe2\x02\"Sift\\ChannelSchemas\\V1\\GPBMetadata\xea\x02\x18Sift::ChannelSchemas::V1\x92\x41\x1a\x12\x18\n\x16\x43hannel Schema Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.channel_schemas.v1.channel_schemas_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\033com.sift.channel_schemas.v1B\023ChannelSchemasProtoP\001\242\002\003SCX\252\002\026Sift.ChannelSchemas.V1\312\002\026Sift\\ChannelSchemas\\V1\342\002\"Sift\\ChannelSchemas\\V1\\GPBMetadata\352\002\030Sift::ChannelSchemas::V1\222A\032\022\030\n\026Channel Schema Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\033com.sift.channel_schemas.v1B\023ChannelSchemasProtoP\001Z@azimuth/gen/protos/go/sift/channel_schemas/v1;channelschemasv1pb\242\002\003SCX\252\002\026Sift.ChannelSchemas.V1\312\002\026Sift\\ChannelSchemas\\V1\342\002\"Sift\\ChannelSchemas\\V1\\GPBMetadata\352\002\030Sift::ChannelSchemas::V1\222A\032\022\030\n\026Channel Schema Service' _globals['_CREATECHANNELSCHEMAREQUEST'].fields_by_name['component']._loaded_options = None _globals['_CREATECHANNELSCHEMAREQUEST'].fields_by_name['component']._serialized_options = b'\340A\001' _globals['_CREATECHANNELSCHEMAREQUEST'].fields_by_name['channel']._loaded_options = None diff --git a/python/gen/sift/channels/v2/channels_pb2.py b/python/gen/sift/channels/v2/channels_pb2.py index d4e148c8..a028aa21 100644 --- a/python/gen/sift/channels/v2/channels_pb2.py +++ b/python/gen/sift/channels/v2/channels_pb2.py @@ -21,14 +21,14 @@ from sift.common.type.v1 import channel_enum_type_pb2 as sift_dot_common_dot_type_dot_v1_dot_channel__enum__type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsift/channels/v2/channels.proto\x12\x10sift.channels.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\xd4\x05\n\x07\x43hannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x03 \x01(\tB\x03\xe0\x41\x02R\tcomponent\x12\x1e\n\x08\x61sset_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12%\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x1c\n\x07unit_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x06unitId\x12\x42\n\x0c\x63reated_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\t \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\n \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x46\n\tdata_type\x18\x0c \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\x43\n\nenum_types\x18\r \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x0e \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\"7\n\x11GetChannelRequest\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\"N\n\x12GetChannelResponse\x12\x38\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x19.sift.channels.v2.ChannelB\x03\xe0\x41\x02R\x07\x63hannel\"x\n\x13ListChannelsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"u\n\x14ListChannelsResponse\x12\x35\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.sift.channels.v2.ChannelR\x08\x63hannels\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\xbc\x04\n\x0e\x43hannelService\x12\xa2\x01\n\nGetChannel\x12#.sift.channels.v2.GetChannelRequest\x1a$.sift.channels.v2.GetChannelResponse\"I\x92\x41!\x12\nGetChannel\x1a\x13Retrieve a channel.\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v2/channels/{channel_id}\x12\xb5\x01\n\x0cListChannels\x12%.sift.channels.v2.ListChannelsRequest\x1a&.sift.channels.v2.ListChannelsResponse\"V\x92\x41;\x12\x0cListChannels\x1a+Retrieve channels using an optional filter.\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v2/channels\x1a\xcc\x01\x92\x41\xc8\x01\x12HService to programmatically interact with [channels](/glossary#channel).\x1a|\n\"Read more about what channels are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265453943B\x9d\x01\n\x14\x63om.sift.channels.v2B\rChannelsProtoP\x01\xa2\x02\x03SCX\xaa\x02\x10Sift.Channels.V2\xca\x02\x10Sift\\Channels\\V2\xe2\x02\x1cSift\\Channels\\V2\\GPBMetadata\xea\x02\x12Sift::Channels::V2\x92\x41\x13\x12\x11\n\x0f\x43hannel serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fsift/channels/v2/channels.proto\x12\x10sift.channels.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\xd4\x05\n\x07\x43hannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x03 \x01(\tB\x03\xe0\x41\x02R\tcomponent\x12\x1e\n\x08\x61sset_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12%\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x1c\n\x07unit_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x06unitId\x12\x42\n\x0c\x63reated_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\t \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\n \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x46\n\tdata_type\x18\x0c \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\x43\n\nenum_types\x18\r \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x0e \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\"7\n\x11GetChannelRequest\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\"N\n\x12GetChannelResponse\x12\x38\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x19.sift.channels.v2.ChannelB\x03\xe0\x41\x02R\x07\x63hannel\"x\n\x13ListChannelsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"u\n\x14ListChannelsResponse\x12\x35\n\x08\x63hannels\x18\x01 \x03(\x0b\x32\x19.sift.channels.v2.ChannelR\x08\x63hannels\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\xbc\x04\n\x0e\x43hannelService\x12\xa2\x01\n\nGetChannel\x12#.sift.channels.v2.GetChannelRequest\x1a$.sift.channels.v2.GetChannelResponse\"I\x92\x41!\x12\nGetChannel\x1a\x13Retrieve a channel.\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/v2/channels/{channel_id}\x12\xb5\x01\n\x0cListChannels\x12%.sift.channels.v2.ListChannelsRequest\x1a&.sift.channels.v2.ListChannelsResponse\"V\x92\x41;\x12\x0cListChannels\x1a+Retrieve channels using an optional filter.\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v2/channels\x1a\xcc\x01\x92\x41\xc8\x01\x12HService to programmatically interact with [channels](/glossary#channel).\x1a|\n\"Read more about what channels are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265453943B\xd2\x01\n\x14\x63om.sift.channels.v2B\rChannelsProtoP\x01Z3azimuth/gen/protos/go/sift/channels/v2;channelsv2pb\xa2\x02\x03SCX\xaa\x02\x10Sift.Channels.V2\xca\x02\x10Sift\\Channels\\V2\xe2\x02\x1cSift\\Channels\\V2\\GPBMetadata\xea\x02\x12Sift::Channels::V2\x92\x41\x13\x12\x11\n\x0f\x43hannel serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.channels.v2.channels_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\024com.sift.channels.v2B\rChannelsProtoP\001\242\002\003SCX\252\002\020Sift.Channels.V2\312\002\020Sift\\Channels\\V2\342\002\034Sift\\Channels\\V2\\GPBMetadata\352\002\022Sift::Channels::V2\222A\023\022\021\n\017Channel service' + _globals['DESCRIPTOR']._serialized_options = b'\n\024com.sift.channels.v2B\rChannelsProtoP\001Z3azimuth/gen/protos/go/sift/channels/v2;channelsv2pb\242\002\003SCX\252\002\020Sift.Channels.V2\312\002\020Sift\\Channels\\V2\342\002\034Sift\\Channels\\V2\\GPBMetadata\352\002\022Sift::Channels::V2\222A\023\022\021\n\017Channel service' _globals['_CHANNEL'].fields_by_name['channel_id']._loaded_options = None _globals['_CHANNEL'].fields_by_name['channel_id']._serialized_options = b'\340A\002' _globals['_CHANNEL'].fields_by_name['name']._loaded_options = None diff --git a/python/gen/sift/common/type/v1/channel_bit_field_element_pb2.py b/python/gen/sift/common/type/v1/channel_bit_field_element_pb2.py index 8ed81890..fe96fff1 100644 --- a/python/gen/sift/common/type/v1/channel_bit_field_element_pb2.py +++ b/python/gen/sift/common/type/v1/channel_bit_field_element_pb2.py @@ -15,14 +15,14 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3sift/common/type/v1/channel_bit_field_element.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"n\n\x16\x43hannelBitFieldElement\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x19\n\x05index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x05index\x12 \n\tbit_count\x18\x03 \x01(\rB\x03\xe0\x41\x02R\x08\x62itCountB\xa5\x01\n\x17\x63om.sift.common.type.v1B\x1b\x43hannelBitFieldElementProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3sift/common/type/v1/channel_bit_field_element.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"n\n\x16\x43hannelBitFieldElement\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x19\n\x05index\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x05index\x12 \n\tbit_count\x18\x03 \x01(\rB\x03\xe0\x41\x02R\x08\x62itCountB\xd9\x01\n\x17\x63om.sift.common.type.v1B\x1b\x43hannelBitFieldElementProtoP\x01Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_bit_field_element_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\033ChannelBitFieldElementProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\033ChannelBitFieldElementProtoP\001Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' _globals['_CHANNELBITFIELDELEMENT'].fields_by_name['name']._loaded_options = None _globals['_CHANNELBITFIELDELEMENT'].fields_by_name['name']._serialized_options = b'\340A\002' _globals['_CHANNELBITFIELDELEMENT'].fields_by_name['index']._loaded_options = None diff --git a/python/gen/sift/common/type/v1/channel_data_type_pb2.py b/python/gen/sift/common/type/v1/channel_data_type_pb2.py index cc1147f1..390a7843 100644 --- a/python/gen/sift/common/type/v1/channel_data_type_pb2.py +++ b/python/gen/sift/common/type/v1/channel_data_type_pb2.py @@ -14,14 +14,14 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sift/common/type/v1/channel_data_type.proto\x12\x13sift.common.type.v1*\xe4\x02\n\x0f\x43hannelDataType\x12%\n\x1d\x43HANNEL_DATA_TYPE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_DOUBLE\x10\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_STRING\x10\x02\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_ENUM\x10\x03\x12\x1f\n\x1b\x43HANNEL_DATA_TYPE_BIT_FIELD\x10\x04\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_BOOL\x10\x05\x12\x1b\n\x17\x43HANNEL_DATA_TYPE_FLOAT\x10\x06\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_32\x10\x07\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_32\x10\x08\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_64\x10\t\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_64\x10\nB\x9e\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelDataTypeProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sift/common/type/v1/channel_data_type.proto\x12\x13sift.common.type.v1*\xe4\x02\n\x0f\x43hannelDataType\x12%\n\x1d\x43HANNEL_DATA_TYPE_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_DOUBLE\x10\x01\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_STRING\x10\x02\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_ENUM\x10\x03\x12\x1f\n\x1b\x43HANNEL_DATA_TYPE_BIT_FIELD\x10\x04\x12\x1a\n\x16\x43HANNEL_DATA_TYPE_BOOL\x10\x05\x12\x1b\n\x17\x43HANNEL_DATA_TYPE_FLOAT\x10\x06\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_32\x10\x07\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_32\x10\x08\x12\x1c\n\x18\x43HANNEL_DATA_TYPE_INT_64\x10\t\x12\x1d\n\x19\x43HANNEL_DATA_TYPE_UINT_64\x10\nB\xd2\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelDataTypeProtoP\x01Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_data_type_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelDataTypeProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelDataTypeProtoP\001Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' _globals['_CHANNELDATATYPE'].values_by_name["CHANNEL_DATA_TYPE_UNSPECIFIED"]._loaded_options = None _globals['_CHANNELDATATYPE'].values_by_name["CHANNEL_DATA_TYPE_UNSPECIFIED"]._serialized_options = b'\010\001' _globals['_CHANNELDATATYPE']._serialized_start=69 diff --git a/python/gen/sift/common/type/v1/channel_enum_type_pb2.py b/python/gen/sift/common/type/v1/channel_enum_type_pb2.py index b42e7b5b..150d643e 100644 --- a/python/gen/sift/common/type/v1/channel_enum_type_pb2.py +++ b/python/gen/sift/common/type/v1/channel_enum_type_pb2.py @@ -15,14 +15,14 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sift/common/type/v1/channel_enum_type.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"A\n\x0f\x43hannelEnumType\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x15\n\x03key\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x03keyB\x9e\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelEnumTypeProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+sift/common/type/v1/channel_enum_type.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\"A\n\x0f\x43hannelEnumType\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x15\n\x03key\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x03keyB\xd2\x01\n\x17\x63om.sift.common.type.v1B\x14\x43hannelEnumTypeProtoP\x01Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.channel_enum_type_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelEnumTypeProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\024ChannelEnumTypeProtoP\001Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' _globals['_CHANNELENUMTYPE'].fields_by_name['name']._loaded_options = None _globals['_CHANNELENUMTYPE'].fields_by_name['name']._serialized_options = b'\340A\002' _globals['_CHANNELENUMTYPE'].fields_by_name['key']._loaded_options = None diff --git a/python/gen/sift/common/type/v1/organization_pb2.py b/python/gen/sift/common/type/v1/organization_pb2.py index 77713bff..addd1e2a 100644 --- a/python/gen/sift/common/type/v1/organization_pb2.py +++ b/python/gen/sift/common/type/v1/organization_pb2.py @@ -14,14 +14,14 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&sift/common/type/v1/organization.proto\x12\x13sift.common.type.v1\"d\n\x0cOrganization\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12+\n\x11organization_name\x18\x02 \x01(\tR\x10organizationNameB\x9b\x01\n\x17\x63om.sift.common.type.v1B\x11OrganizationProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&sift/common/type/v1/organization.proto\x12\x13sift.common.type.v1\"d\n\x0cOrganization\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12+\n\x11organization_name\x18\x02 \x01(\tR\x10organizationNameB\xcf\x01\n\x17\x63om.sift.common.type.v1B\x11OrganizationProtoP\x01Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.organization_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\021OrganizationProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\021OrganizationProtoP\001Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' _globals['_ORGANIZATION']._serialized_start=63 _globals['_ORGANIZATION']._serialized_end=163 # @@protoc_insertion_point(module_scope) diff --git a/python/gen/sift/common/type/v1/user_pb2.py b/python/gen/sift/common/type/v1/user_pb2.py index 80328505..0e2ad090 100644 --- a/python/gen/sift/common/type/v1/user_pb2.py +++ b/python/gen/sift/common/type/v1/user_pb2.py @@ -16,14 +16,14 @@ from sift.common.type.v1 import organization_pb2 as sift_dot_common_dot_type_dot_v1_dot_organization__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esift/common/type/v1/user.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a&sift/common/type/v1/organization.proto\"\x8f\x01\n\x04User\x12\x1c\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06userId\x12 \n\tuser_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x08userName\x12G\n\rorganizations\x18\x03 \x03(\x0b\x32!.sift.common.type.v1.OrganizationR\rorganizationsB\x93\x01\n\x17\x63om.sift.common.type.v1B\tUserProtoP\x01\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esift/common/type/v1/user.proto\x12\x13sift.common.type.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a&sift/common/type/v1/organization.proto\"\x8f\x01\n\x04User\x12\x1c\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06userId\x12 \n\tuser_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x08userName\x12G\n\rorganizations\x18\x03 \x03(\x0b\x32!.sift.common.type.v1.OrganizationR\rorganizationsB\xc7\x01\n\x17\x63om.sift.common.type.v1B\tUserProtoP\x01Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\xa2\x02\x03SCT\xaa\x02\x13Sift.Common.Type.V1\xca\x02\x13Sift\\Common\\Type\\V1\xe2\x02\x1fSift\\Common\\Type\\V1\\GPBMetadata\xea\x02\x16Sift::Common::Type::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.common.type.v1.user_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\tUserProtoP\001\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\027com.sift.common.type.v1B\tUserProtoP\001Z2azimuth/gen/protos/go/sift/common/type/v1;typev1pb\242\002\003SCT\252\002\023Sift.Common.Type.V1\312\002\023Sift\\Common\\Type\\V1\342\002\037Sift\\Common\\Type\\V1\\GPBMetadata\352\002\026Sift::Common::Type::V1' _globals['_USER'].fields_by_name['user_id']._loaded_options = None _globals['_USER'].fields_by_name['user_id']._serialized_options = b'\340A\002' _globals['_USER'].fields_by_name['user_name']._loaded_options = None diff --git a/python/gen/sift/data/v1/data_pb2.py b/python/gen/sift/data/v1/data_pb2.py index 080fd277..23718f9b 100644 --- a/python/gen/sift/data/v1/data_pb2.py +++ b/python/gen/sift/data/v1/data_pb2.py @@ -23,14 +23,14 @@ from sift.common.type.v1 import channel_enum_type_pb2 as sift_dot_common_dot_type_dot_v1_dot_channel__enum__type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/data/v1/data.proto\x12\x0csift.data.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x35sift/calculated_channels/v1/calculated_channels.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\x8a\x02\n\x0eGetDataRequest\x12-\n\x07queries\x18\x01 \x03(\x0b\x32\x13.sift.data.v1.QueryR\x07queries\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12\x1b\n\tsample_ms\x18\x04 \x01(\rR\x08sampleMs\x12\x1b\n\tpage_size\x18\x05 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x06 \x01(\tR\tpageToken\"\x9f\x01\n\x05Query\x12\x36\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x1a.sift.data.v1.ChannelQueryH\x00R\x07\x63hannel\x12U\n\x12\x63\x61lculated_channel\x18\x02 \x01(\x0b\x32$.sift.data.v1.CalculatedChannelQueryH\x00R\x11\x63\x61lculatedChannelB\x07\n\x05query\"T\n\x0c\x43hannelQuery\x12\x1d\n\nchannel_id\x18\x01 \x01(\tR\tchannelId\x12\x1a\n\x06run_id\x18\x02 \x01(\tH\x00R\x05runId\x88\x01\x01\x42\t\n\x07_run_id\"\xba\x01\n\x16\x43\x61lculatedChannelQuery\x12$\n\x0b\x63hannel_key\x18\x01 \x01(\tB\x03\xe0\x41\x02R\nchannelKey\x12S\n\nexpression\x18\x02 \x01(\x0b\x32..sift.calculated_channels.v1.ExpressionRequestB\x03\xe0\x41\x02R\nexpression\x12\x1a\n\x06run_id\x18\x03 \x01(\tH\x00R\x05runId\x88\x01\x01\x42\t\n\x07_run_id\"h\n\x0fGetDataResponse\x12&\n\x0fnext_page_token\x18\x01 \x01(\tR\rnextPageToken\x12-\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x02R\x04\x64\x61ta\"\xbf\x06\n\x08Metadata\x12\x46\n\tdata_type\x18\x01 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\"\n\nsampled_ms\x18\x02 \x01(\rB\x03\xe0\x41\x02R\tsampledMs\x12\x37\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1c.sift.data.v1.Metadata.AssetB\x03\xe0\x41\x02R\x05\x61sset\x12\x31\n\x03run\x18\x04 \x01(\x0b\x32\x1a.sift.data.v1.Metadata.RunH\x00R\x03run\x88\x01\x01\x12=\n\x07\x63hannel\x18\x05 \x01(\x0b\x32\x1e.sift.data.v1.Metadata.ChannelH\x01R\x07\x63hannel\x88\x01\x01\x1a@\n\x05\x41sset\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x1a:\n\x03Run\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x1a\x89\x03\n\x07\x43hannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12\x1c\n\tcomponent\x18\x02 \x01(\tR\tcomponent\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x37\n\x04unit\x18\x04 \x01(\x0b\x32#.sift.data.v1.Metadata.Channel.UnitR\x04unit\x12\x43\n\nenum_types\x18\x05 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x06 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\x1aO\n\x04Unit\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12.\n\x10\x61\x62\x62reviated_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0f\x61\x62\x62reviatedNameB\x06\n\x04_runB\n\n\x08_channel\"g\n\x0b\x44oubleValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02R\x05value\"\x7f\n\x0c\x44oubleValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.DoubleValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bStringValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cStringValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.StringValueB\x03\xe0\x41\x02R\x06values\"e\n\tEnumValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"{\n\nEnumValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x34\n\x06values\x18\x02 \x03(\x0b\x32\x17.sift.data.v1.EnumValueB\x03\xe0\x41\x02R\x06values\"i\n\rBitFieldValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"j\n\x15\x42itFieldElementValues\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x38\n\x06values\x18\x02 \x03(\x0b\x32\x1b.sift.data.v1.BitFieldValueB\x03\xe0\x41\x02R\x06values\"\x8b\x01\n\x0e\x42itFieldValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12@\n\x06values\x18\x02 \x03(\x0b\x32#.sift.data.v1.BitFieldElementValuesB\x03\xe0\x41\x02R\x06values\"e\n\tBoolValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02R\x05value\"{\n\nBoolValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x34\n\x06values\x18\x02 \x03(\x0b\x32\x17.sift.data.v1.BoolValueB\x03\xe0\x41\x02R\x06values\"f\n\nFloatValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x02\x42\x03\xe0\x41\x02R\x05value\"}\n\x0b\x46loatValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.FloatValueB\x03\xe0\x41\x02R\x06values\"f\n\nInt32Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x05value\"}\n\x0bInt32Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.Int32ValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bUint32Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cUint32Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.Uint32ValueB\x03\xe0\x41\x02R\x06values\"f\n\nInt64Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02R\x05value\"}\n\x0bInt64Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.Int64ValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bUint64Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x04\x42\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cUint64Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.Uint64ValueB\x03\xe0\x41\x02R\x06values2\xa2\x01\n\x0b\x44\x61taService\x12w\n\x07GetData\x12\x1c.sift.data.v1.GetDataRequest\x1a\x1d.sift.data.v1.GetDataResponse\"/\x92\x41\x15\x12\x07GetData\x1a\nQuery data\x82\xd3\xe4\x93\x02\x11\"\x0c/api/v1/data:\x01*\x1a\x1a\x92\x41\x17\x12\x15Service to query dataB\x82\x01\n\x10\x63om.sift.data.v1B\tDataProtoP\x01\xa2\x02\x03SDX\xaa\x02\x0cSift.Data.V1\xca\x02\x0cSift\\Data\\V1\xe2\x02\x18Sift\\Data\\V1\\GPBMetadata\xea\x02\x0eSift::Data::V1\x92\x41\x10\x12\x0e\n\x0c\x44\x61ta Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/data/v1/data.proto\x12\x0csift.data.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x35sift/calculated_channels/v1/calculated_channels.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\x8a\x02\n\x0eGetDataRequest\x12-\n\x07queries\x18\x01 \x03(\x0b\x32\x13.sift.data.v1.QueryR\x07queries\x12\x39\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12\x1b\n\tsample_ms\x18\x04 \x01(\rR\x08sampleMs\x12\x1b\n\tpage_size\x18\x05 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x06 \x01(\tR\tpageToken\"\x9f\x01\n\x05Query\x12\x36\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x1a.sift.data.v1.ChannelQueryH\x00R\x07\x63hannel\x12U\n\x12\x63\x61lculated_channel\x18\x02 \x01(\x0b\x32$.sift.data.v1.CalculatedChannelQueryH\x00R\x11\x63\x61lculatedChannelB\x07\n\x05query\"T\n\x0c\x43hannelQuery\x12\x1d\n\nchannel_id\x18\x01 \x01(\tR\tchannelId\x12\x1a\n\x06run_id\x18\x02 \x01(\tH\x00R\x05runId\x88\x01\x01\x42\t\n\x07_run_id\"\xba\x01\n\x16\x43\x61lculatedChannelQuery\x12$\n\x0b\x63hannel_key\x18\x01 \x01(\tB\x03\xe0\x41\x02R\nchannelKey\x12S\n\nexpression\x18\x02 \x01(\x0b\x32..sift.calculated_channels.v1.ExpressionRequestB\x03\xe0\x41\x02R\nexpression\x12\x1a\n\x06run_id\x18\x03 \x01(\tH\x00R\x05runId\x88\x01\x01\x42\t\n\x07_run_id\"h\n\x0fGetDataResponse\x12&\n\x0fnext_page_token\x18\x01 \x01(\tR\rnextPageToken\x12-\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x02R\x04\x64\x61ta\"\xbf\x06\n\x08Metadata\x12\x46\n\tdata_type\x18\x01 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\"\n\nsampled_ms\x18\x02 \x01(\rB\x03\xe0\x41\x02R\tsampledMs\x12\x37\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x1c.sift.data.v1.Metadata.AssetB\x03\xe0\x41\x02R\x05\x61sset\x12\x31\n\x03run\x18\x04 \x01(\x0b\x32\x1a.sift.data.v1.Metadata.RunH\x00R\x03run\x88\x01\x01\x12=\n\x07\x63hannel\x18\x05 \x01(\x0b\x32\x1e.sift.data.v1.Metadata.ChannelH\x01R\x07\x63hannel\x88\x01\x01\x1a@\n\x05\x41sset\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x1a:\n\x03Run\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x1a\x89\x03\n\x07\x43hannel\x12\"\n\nchannel_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tchannelId\x12\x1c\n\tcomponent\x18\x02 \x01(\tR\tcomponent\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x37\n\x04unit\x18\x04 \x01(\x0b\x32#.sift.data.v1.Metadata.Channel.UnitR\x04unit\x12\x43\n\nenum_types\x18\x05 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x06 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\x1aO\n\x04Unit\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12.\n\x10\x61\x62\x62reviated_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0f\x61\x62\x62reviatedNameB\x06\n\x04_runB\n\n\x08_channel\"g\n\x0b\x44oubleValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x01\x42\x03\xe0\x41\x02R\x05value\"\x7f\n\x0c\x44oubleValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.DoubleValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bStringValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cStringValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.StringValueB\x03\xe0\x41\x02R\x06values\"e\n\tEnumValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"{\n\nEnumValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x34\n\x06values\x18\x02 \x03(\x0b\x32\x17.sift.data.v1.EnumValueB\x03\xe0\x41\x02R\x06values\"i\n\rBitFieldValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"j\n\x15\x42itFieldElementValues\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x38\n\x06values\x18\x02 \x03(\x0b\x32\x1b.sift.data.v1.BitFieldValueB\x03\xe0\x41\x02R\x06values\"\x8b\x01\n\x0e\x42itFieldValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12@\n\x06values\x18\x02 \x03(\x0b\x32#.sift.data.v1.BitFieldElementValuesB\x03\xe0\x41\x02R\x06values\"e\n\tBoolValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02R\x05value\"{\n\nBoolValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x34\n\x06values\x18\x02 \x03(\x0b\x32\x17.sift.data.v1.BoolValueB\x03\xe0\x41\x02R\x06values\"f\n\nFloatValue\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x02\x42\x03\xe0\x41\x02R\x05value\"}\n\x0b\x46loatValues\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.FloatValueB\x03\xe0\x41\x02R\x06values\"f\n\nInt32Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x05value\"}\n\x0bInt32Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.Int32ValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bUint32Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\rB\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cUint32Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.Uint32ValueB\x03\xe0\x41\x02R\x06values\"f\n\nInt64Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02R\x05value\"}\n\x0bInt64Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x35\n\x06values\x18\x02 \x03(\x0b\x32\x18.sift.data.v1.Int64ValueB\x03\xe0\x41\x02R\x06values\"g\n\x0bUint64Value\x12=\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\ttimestamp\x12\x19\n\x05value\x18\x02 \x01(\x04\x42\x03\xe0\x41\x02R\x05value\"\x7f\n\x0cUint64Values\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x16.sift.data.v1.MetadataB\x03\xe0\x41\x02R\x08metadata\x12\x36\n\x06values\x18\x02 \x03(\x0b\x32\x19.sift.data.v1.Uint64ValueB\x03\xe0\x41\x02R\x06values2\xa2\x01\n\x0b\x44\x61taService\x12w\n\x07GetData\x12\x1c.sift.data.v1.GetDataRequest\x1a\x1d.sift.data.v1.GetDataResponse\"/\x92\x41\x15\x12\x07GetData\x1a\nQuery data\x82\xd3\xe4\x93\x02\x11\"\x0c/api/v1/data:\x01*\x1a\x1a\x92\x41\x17\x12\x15Service to query dataB\xaf\x01\n\x10\x63om.sift.data.v1B\tDataProtoP\x01Z+azimuth/gen/protos/go/sift/data/v1;datav1pb\xa2\x02\x03SDX\xaa\x02\x0cSift.Data.V1\xca\x02\x0cSift\\Data\\V1\xe2\x02\x18Sift\\Data\\V1\\GPBMetadata\xea\x02\x0eSift::Data::V1\x92\x41\x10\x12\x0e\n\x0c\x44\x61ta Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.data.v1.data_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.data.v1B\tDataProtoP\001\242\002\003SDX\252\002\014Sift.Data.V1\312\002\014Sift\\Data\\V1\342\002\030Sift\\Data\\V1\\GPBMetadata\352\002\016Sift::Data::V1\222A\020\022\016\n\014Data Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.data.v1B\tDataProtoP\001Z+azimuth/gen/protos/go/sift/data/v1;datav1pb\242\002\003SDX\252\002\014Sift.Data.V1\312\002\014Sift\\Data\\V1\342\002\030Sift\\Data\\V1\\GPBMetadata\352\002\016Sift::Data::V1\222A\020\022\016\n\014Data Service' _globals['_CALCULATEDCHANNELQUERY'].fields_by_name['channel_key']._loaded_options = None _globals['_CALCULATEDCHANNELQUERY'].fields_by_name['channel_key']._serialized_options = b'\340A\002' _globals['_CALCULATEDCHANNELQUERY'].fields_by_name['expression']._loaded_options = None diff --git a/python/gen/sift/ingest/v1/ingest_pb2.py b/python/gen/sift/ingest/v1/ingest_pb2.py index 8202d430..b1deaac9 100644 --- a/python/gen/sift/ingest/v1/ingest_pb2.py +++ b/python/gen/sift/ingest/v1/ingest_pb2.py @@ -16,14 +16,14 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bsift/ingest/v1/ingest.proto\x12\x0esift.ingest.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x02\n!IngestWithConfigDataStreamRequest\x12.\n\x13ingestion_config_id\x18\x01 \x01(\tR\x11ingestionConfigId\x12\x12\n\x04\x66low\x18\x02 \x01(\tR\x04\x66low\x12\x38\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12W\n\x0e\x63hannel_values\x18\x04 \x03(\x0b\x32\x30.sift.ingest.v1.IngestWithConfigDataChannelValueR\rchannelValues\x12\x15\n\x06run_id\x18\x05 \x01(\tR\x05runId\x12\x42\n\x1e\x65nd_stream_on_validation_error\x18\x06 \x01(\x08R\x1a\x65ndStreamOnValidationError\x12\'\n\x0forganization_id\x18\x07 \x01(\tR\x0eorganizationId\"$\n\"IngestWithConfigDataStreamResponse\"\xd5\x02\n IngestWithConfigDataChannelValue\x12\x18\n\x06string\x18\x01 \x01(\tH\x00R\x06string\x12\x18\n\x06\x64ouble\x18\x02 \x01(\x01H\x00R\x06\x64ouble\x12\x16\n\x05\x66loat\x18\x03 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x04 \x01(\x08H\x00R\x04\x62ool\x12\x16\n\x05int32\x18\x05 \x01(\x05H\x00R\x05int32\x12\x18\n\x06uint32\x18\x06 \x01(\rH\x00R\x06uint32\x12\x16\n\x05int64\x18\x07 \x01(\x03H\x00R\x05int64\x12\x18\n\x06uint64\x18\x08 \x01(\x04H\x00R\x06uint64\x12\x1d\n\tbit_field\x18\t \x01(\x0cH\x00R\x08\x62itField\x12\x14\n\x04\x65num\x18\n \x01(\rH\x00R\x04\x65num\x12.\n\x05\x65mpty\x18\x0b \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x05\x65mptyB\x06\n\x04type2\x97\x01\n\rIngestService\x12\x85\x01\n\x1aIngestWithConfigDataStream\x12\x31.sift.ingest.v1.IngestWithConfigDataStreamRequest\x1a\x32.sift.ingest.v1.IngestWithConfigDataStreamResponse(\x01\x42{\n\x12\x63om.sift.ingest.v1B\x0bIngestProtoP\x01\xa2\x02\x03SIX\xaa\x02\x0eSift.Ingest.V1\xca\x02\x0eSift\\Ingest\\V1\xe2\x02\x1aSift\\Ingest\\V1\\GPBMetadata\xea\x02\x10Sift::Ingest::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bsift/ingest/v1/ingest.proto\x12\x0esift.ingest.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfe\x02\n!IngestWithConfigDataStreamRequest\x12.\n\x13ingestion_config_id\x18\x01 \x01(\tR\x11ingestionConfigId\x12\x12\n\x04\x66low\x18\x02 \x01(\tR\x04\x66low\x12\x38\n\ttimestamp\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12W\n\x0e\x63hannel_values\x18\x04 \x03(\x0b\x32\x30.sift.ingest.v1.IngestWithConfigDataChannelValueR\rchannelValues\x12\x15\n\x06run_id\x18\x05 \x01(\tR\x05runId\x12\x42\n\x1e\x65nd_stream_on_validation_error\x18\x06 \x01(\x08R\x1a\x65ndStreamOnValidationError\x12\'\n\x0forganization_id\x18\x07 \x01(\tR\x0eorganizationId\"$\n\"IngestWithConfigDataStreamResponse\"\xd5\x02\n IngestWithConfigDataChannelValue\x12\x18\n\x06string\x18\x01 \x01(\tH\x00R\x06string\x12\x18\n\x06\x64ouble\x18\x02 \x01(\x01H\x00R\x06\x64ouble\x12\x16\n\x05\x66loat\x18\x03 \x01(\x02H\x00R\x05\x66loat\x12\x14\n\x04\x62ool\x18\x04 \x01(\x08H\x00R\x04\x62ool\x12\x16\n\x05int32\x18\x05 \x01(\x05H\x00R\x05int32\x12\x18\n\x06uint32\x18\x06 \x01(\rH\x00R\x06uint32\x12\x16\n\x05int64\x18\x07 \x01(\x03H\x00R\x05int64\x12\x18\n\x06uint64\x18\x08 \x01(\x04H\x00R\x06uint64\x12\x1d\n\tbit_field\x18\t \x01(\x0cH\x00R\x08\x62itField\x12\x14\n\x04\x65num\x18\n \x01(\rH\x00R\x04\x65num\x12.\n\x05\x65mpty\x18\x0b \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x05\x65mptyB\x06\n\x04type2\x97\x01\n\rIngestService\x12\x85\x01\n\x1aIngestWithConfigDataStream\x12\x31.sift.ingest.v1.IngestWithConfigDataStreamRequest\x1a\x32.sift.ingest.v1.IngestWithConfigDataStreamResponse(\x01\x42\xac\x01\n\x12\x63om.sift.ingest.v1B\x0bIngestProtoP\x01Z/azimuth/gen/protos/go/sift/ingest/v1;ingestv1pb\xa2\x02\x03SIX\xaa\x02\x0eSift.Ingest.V1\xca\x02\x0eSift\\Ingest\\V1\xe2\x02\x1aSift\\Ingest\\V1\\GPBMetadata\xea\x02\x10Sift::Ingest::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.ingest.v1.ingest_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\022com.sift.ingest.v1B\013IngestProtoP\001\242\002\003SIX\252\002\016Sift.Ingest.V1\312\002\016Sift\\Ingest\\V1\342\002\032Sift\\Ingest\\V1\\GPBMetadata\352\002\020Sift::Ingest::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\022com.sift.ingest.v1B\013IngestProtoP\001Z/azimuth/gen/protos/go/sift/ingest/v1;ingestv1pb\242\002\003SIX\252\002\016Sift.Ingest.V1\312\002\016Sift\\Ingest\\V1\342\002\032Sift\\Ingest\\V1\\GPBMetadata\352\002\020Sift::Ingest::V1' _globals['_INGESTWITHCONFIGDATASTREAMREQUEST']._serialized_start=110 _globals['_INGESTWITHCONFIGDATASTREAMREQUEST']._serialized_end=492 _globals['_INGESTWITHCONFIGDATASTREAMRESPONSE']._serialized_start=494 diff --git a/python/gen/sift/ingestion_configs/v1/ingestion_configs_pb2.py b/python/gen/sift/ingestion_configs/v1/ingestion_configs_pb2.py index 7f4079f8..545ac6ec 100644 --- a/python/gen/sift/ingestion_configs/v1/ingestion_configs_pb2.py +++ b/python/gen/sift/ingestion_configs/v1/ingestion_configs_pb2.py @@ -20,14 +20,14 @@ from sift.common.type.v1 import channel_enum_type_pb2 as sift_dot_common_dot_type_dot_v1_dot_channel__enum__type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1sift/ingestion_configs/v1/ingestion_configs.proto\x12\x19sift.ingestion_configs.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\x8a\x01\n\x0fIngestionConfig\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\x12\x1e\n\x08\x61sset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nclient_key\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tclientKey\"k\n\nFlowConfig\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x44\n\x08\x63hannels\x18\x02 \x03(\x0b\x32(.sift.ingestion_configs.v1.ChannelConfigR\x08\x63hannels\"\xf3\x02\n\rChannelConfig\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tcomponent\x12\x17\n\x04unit\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x04unit\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12\x46\n\tdata_type\x18\x05 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\x43\n\nenum_types\x18\x06 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x07 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\"P\n\x19GetIngestionConfigRequest\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\"x\n\x1aGetIngestionConfigResponse\x12Z\n\x10ingestion_config\x18\x01 \x01(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigB\x03\xe0\x41\x02R\x0fingestionConfig\"\xd1\x01\n\x1c\x43reateIngestionConfigRequest\x12\"\n\nasset_name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tassetName\x12;\n\x05\x66lows\x18\x02 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\x12\"\n\nclient_key\x18\x04 \x01(\tB\x03\xe0\x41\x01R\tclientKey\"{\n\x1d\x43reateIngestionConfigResponse\x12Z\n\x10ingestion_config\x18\x01 \x01(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigB\x03\xe0\x41\x02R\x0fingestionConfig\"\x80\x01\n\x1bListIngestionConfigsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x9f\x01\n\x1cListIngestionConfigsResponse\x12W\n\x11ingestion_configs\x18\x01 \x03(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigR\x10ingestionConfigs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x90\x01\n!CreateIngestionConfigFlowsRequest\x12.\n\x13ingestion_config_id\x18\x01 \x01(\tR\x11ingestionConfigId\x12;\n\x05\x66lows\x18\x02 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\"$\n\"CreateIngestionConfigFlowsResponse\"\xb9\x01\n\x1fListIngestionConfigFlowsRequest\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\x12 \n\tpage_size\x18\x02 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x87\x01\n ListIngestionConfigFlowsResponse\x12;\n\x05\x66lows\x18\x01 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\x95\x0c\n\x16IngestionConfigService\x12\xf1\x01\n\x12GetIngestionConfig\x12\x34.sift.ingestion_configs.v1.GetIngestionConfigRequest\x1a\x35.sift.ingestion_configs.v1.GetIngestionConfigResponse\"n\x92\x41\x34\x12\x12GetIngestionConfig\x1a\x1eRetrieves an ingestion config.\x82\xd3\xe4\x93\x02\x31\x12//api/v1/ingestion-configs/{ingestion_config_id}\x12\xe7\x01\n\x15\x43reateIngestionConfig\x12\x37.sift.ingestion_configs.v1.CreateIngestionConfigRequest\x1a\x38.sift.ingestion_configs.v1.CreateIngestionConfigResponse\"[\x92\x41\x34\x12\x15\x43reateIngestionConfig\x1a\x1b\x43reate an ingestion config.\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v1/ingestion-configs:\x01*\x12\xf5\x01\n\x14ListIngestionConfigs\x12\x36.sift.ingestion_configs.v1.ListIngestionConfigsRequest\x1a\x37.sift.ingestion_configs.v1.ListIngestionConfigsResponse\"l\x92\x41H\x12\x14ListIngestionConfigs\x1a\x30List ingestion configs using an optional filter.\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/ingestion-configs\x12\xaa\x02\n\x1a\x43reateIngestionConfigFlows\x12<.sift.ingestion_configs.v1.CreateIngestionConfigFlowsRequest\x1a=.sift.ingestion_configs.v1.CreateIngestionConfigFlowsResponse\"\x8e\x01\x92\x41N\x12\x1a\x43reateIngestionConfigFlows\x1a\x30\x43reate ingestion config [flows](/glossary#flow).\x82\xd3\xe4\x93\x02\x37\"5/api/v1/ingestion-configs/{ingestion_config_id}/flows\x12\xb9\x02\n\x18ListIngestionConfigFlows\x12:.sift.ingestion_configs.v1.ListIngestionConfigFlowsRequest\x1a;.sift.ingestion_configs.v1.ListIngestionConfigFlowsResponse\"\xa3\x01\x92\x41\x63\x12\x18ListIngestionConfigFlows\x1aGList ingestion config [flows](/glossary#flow) using an optional filter.\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/ingestion-configs/{ingestion_config_id}/flows\x1a\xbb\x01\x92\x41\xb7\x01\x12ZService to programmatically interact with [ingestion configs](/glossary#ingestion-config).\x1aY\n+Read more about what ingestion configs are.\x12*/ingestion/creating-amend-ingestion-configB\xd7\x01\n\x1d\x63om.sift.ingestion_configs.v1B\x15IngestionConfigsProtoP\x01\xa2\x02\x03SIX\xaa\x02\x18Sift.IngestionConfigs.V1\xca\x02\x18Sift\\IngestionConfigs\\V1\xe2\x02$Sift\\IngestionConfigs\\V1\\GPBMetadata\xea\x02\x1aSift::IngestionConfigs::V1\x92\x41\x1c\x12\x1a\n\x18Ingestion Config Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1sift/ingestion_configs/v1/ingestion_configs.proto\x12\x19sift.ingestion_configs.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x33sift/common/type/v1/channel_bit_field_element.proto\x1a+sift/common/type/v1/channel_data_type.proto\x1a+sift/common/type/v1/channel_enum_type.proto\"\x8a\x01\n\x0fIngestionConfig\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\x12\x1e\n\x08\x61sset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nclient_key\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tclientKey\"k\n\nFlowConfig\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12\x44\n\x08\x63hannels\x18\x02 \x03(\x0b\x32(.sift.ingestion_configs.v1.ChannelConfigR\x08\x63hannels\"\xf3\x02\n\rChannelConfig\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tcomponent\x12\x17\n\x04unit\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x04unit\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x0b\x64\x65scription\x12\x46\n\tdata_type\x18\x05 \x01(\x0e\x32$.sift.common.type.v1.ChannelDataTypeB\x03\xe0\x41\x02R\x08\x64\x61taType\x12\x43\n\nenum_types\x18\x06 \x03(\x0b\x32$.sift.common.type.v1.ChannelEnumTypeR\tenumTypes\x12Y\n\x12\x62it_field_elements\x18\x07 \x03(\x0b\x32+.sift.common.type.v1.ChannelBitFieldElementR\x10\x62itFieldElements\"P\n\x19GetIngestionConfigRequest\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\"x\n\x1aGetIngestionConfigResponse\x12Z\n\x10ingestion_config\x18\x01 \x01(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigB\x03\xe0\x41\x02R\x0fingestionConfig\"\xd1\x01\n\x1c\x43reateIngestionConfigRequest\x12\"\n\nasset_name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\tassetName\x12;\n\x05\x66lows\x18\x02 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\x12\"\n\nclient_key\x18\x04 \x01(\tB\x03\xe0\x41\x01R\tclientKey\"{\n\x1d\x43reateIngestionConfigResponse\x12Z\n\x10ingestion_config\x18\x01 \x01(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigB\x03\xe0\x41\x02R\x0fingestionConfig\"\x80\x01\n\x1bListIngestionConfigsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x9f\x01\n\x1cListIngestionConfigsResponse\x12W\n\x11ingestion_configs\x18\x01 \x03(\x0b\x32*.sift.ingestion_configs.v1.IngestionConfigR\x10ingestionConfigs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x90\x01\n!CreateIngestionConfigFlowsRequest\x12.\n\x13ingestion_config_id\x18\x01 \x01(\tR\x11ingestionConfigId\x12;\n\x05\x66lows\x18\x02 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\"$\n\"CreateIngestionConfigFlowsResponse\"\xb9\x01\n\x1fListIngestionConfigFlowsRequest\x12\x33\n\x13ingestion_config_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x11ingestionConfigId\x12 \n\tpage_size\x18\x02 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x87\x01\n ListIngestionConfigFlowsResponse\x12;\n\x05\x66lows\x18\x01 \x03(\x0b\x32%.sift.ingestion_configs.v1.FlowConfigR\x05\x66lows\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\x95\x0c\n\x16IngestionConfigService\x12\xf1\x01\n\x12GetIngestionConfig\x12\x34.sift.ingestion_configs.v1.GetIngestionConfigRequest\x1a\x35.sift.ingestion_configs.v1.GetIngestionConfigResponse\"n\x92\x41\x34\x12\x12GetIngestionConfig\x1a\x1eRetrieves an ingestion config.\x82\xd3\xe4\x93\x02\x31\x12//api/v1/ingestion-configs/{ingestion_config_id}\x12\xe7\x01\n\x15\x43reateIngestionConfig\x12\x37.sift.ingestion_configs.v1.CreateIngestionConfigRequest\x1a\x38.sift.ingestion_configs.v1.CreateIngestionConfigResponse\"[\x92\x41\x34\x12\x15\x43reateIngestionConfig\x1a\x1b\x43reate an ingestion config.\x82\xd3\xe4\x93\x02\x1e\"\x19/api/v1/ingestion-configs:\x01*\x12\xf5\x01\n\x14ListIngestionConfigs\x12\x36.sift.ingestion_configs.v1.ListIngestionConfigsRequest\x1a\x37.sift.ingestion_configs.v1.ListIngestionConfigsResponse\"l\x92\x41H\x12\x14ListIngestionConfigs\x1a\x30List ingestion configs using an optional filter.\x82\xd3\xe4\x93\x02\x1b\x12\x19/api/v1/ingestion-configs\x12\xaa\x02\n\x1a\x43reateIngestionConfigFlows\x12<.sift.ingestion_configs.v1.CreateIngestionConfigFlowsRequest\x1a=.sift.ingestion_configs.v1.CreateIngestionConfigFlowsResponse\"\x8e\x01\x92\x41N\x12\x1a\x43reateIngestionConfigFlows\x1a\x30\x43reate ingestion config [flows](/glossary#flow).\x82\xd3\xe4\x93\x02\x37\"5/api/v1/ingestion-configs/{ingestion_config_id}/flows\x12\xb9\x02\n\x18ListIngestionConfigFlows\x12:.sift.ingestion_configs.v1.ListIngestionConfigFlowsRequest\x1a;.sift.ingestion_configs.v1.ListIngestionConfigFlowsResponse\"\xa3\x01\x92\x41\x63\x12\x18ListIngestionConfigFlows\x1aGList ingestion config [flows](/glossary#flow) using an optional filter.\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/ingestion-configs/{ingestion_config_id}/flows\x1a\xbb\x01\x92\x41\xb7\x01\x12ZService to programmatically interact with [ingestion configs](/glossary#ingestion-config).\x1aY\n+Read more about what ingestion configs are.\x12*/ingestion/creating-amend-ingestion-configB\x9e\x02\n\x1d\x63om.sift.ingestion_configs.v1B\x15IngestionConfigsProtoP\x01ZEazimuth/gen/protos/go/sift/ingestion_configs/v1;ingestion_configsv1pb\xa2\x02\x03SIX\xaa\x02\x18Sift.IngestionConfigs.V1\xca\x02\x18Sift\\IngestionConfigs\\V1\xe2\x02$Sift\\IngestionConfigs\\V1\\GPBMetadata\xea\x02\x1aSift::IngestionConfigs::V1\x92\x41\x1c\x12\x1a\n\x18Ingestion Config Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.ingestion_configs.v1.ingestion_configs_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\035com.sift.ingestion_configs.v1B\025IngestionConfigsProtoP\001\242\002\003SIX\252\002\030Sift.IngestionConfigs.V1\312\002\030Sift\\IngestionConfigs\\V1\342\002$Sift\\IngestionConfigs\\V1\\GPBMetadata\352\002\032Sift::IngestionConfigs::V1\222A\034\022\032\n\030Ingestion Config Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\035com.sift.ingestion_configs.v1B\025IngestionConfigsProtoP\001ZEazimuth/gen/protos/go/sift/ingestion_configs/v1;ingestion_configsv1pb\242\002\003SIX\252\002\030Sift.IngestionConfigs.V1\312\002\030Sift\\IngestionConfigs\\V1\342\002$Sift\\IngestionConfigs\\V1\\GPBMetadata\352\002\032Sift::IngestionConfigs::V1\222A\034\022\032\n\030Ingestion Config Service' _globals['_INGESTIONCONFIG'].fields_by_name['ingestion_config_id']._loaded_options = None _globals['_INGESTIONCONFIG'].fields_by_name['ingestion_config_id']._serialized_options = b'\340A\002' _globals['_INGESTIONCONFIG'].fields_by_name['asset_id']._loaded_options = None diff --git a/python/gen/sift/notifications/v1/notifications_pb2.py b/python/gen/sift/notifications/v1/notifications_pb2.py index dd473d7c..c1e0a90d 100644 --- a/python/gen/sift/notifications/v1/notifications_pb2.py +++ b/python/gen/sift/notifications/v1/notifications_pb2.py @@ -19,14 +19,14 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)sift/notifications/v1/notifications.proto\x12\x15sift.notifications.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xad\x04\n\x0cNotification\x12\'\n\x0fnotification_id\x18\x01 \x01(\tR\x0enotificationId\x12=\n\x0c\x63reated_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0b\x63reatedDate\x12?\n\rmodified_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0cmodifiedDate\x12+\n\x12\x63reated_by_user_id\x18\x04 \x01(\tR\x0f\x63reatedByUserId\x12-\n\x13modified_by_user_id\x18\x05 \x01(\tR\x10modifiedByUserId\x12\'\n\x0forganization_id\x18\x06 \x01(\tR\x0eorganizationId\x12*\n\x11recipient_user_id\x18\x07 \x01(\tR\x0frecipientUserId\x12\x17\n\x07is_read\x18\x08 \x01(\x08R\x06isRead\x12\x1b\n\tfull_link\x18\t \x01(\tR\x08\x66ullLink\x12T\n\x11notification_type\x18\n \x01(\x0e\x32\'.sift.notifications.v1.NotificationKindR\x10notificationType\x12\x1a\n\x08\x63ontents\x18\x0b \x01(\tR\x08\x63ontents\x12\x1b\n\tentity_id\x18\x0c \x01(\tR\x08\x65ntityId\"}\n\x18ListNotificationsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x8e\x01\n\x19ListNotificationsResponse\x12I\n\rnotifications\x18\x01 \x03(\x0b\x32#.sift.notifications.v1.NotificationR\rnotifications\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"t\n\x1f\x42\x61tchUpdateNotificationsRequest\x12Q\n\x08requests\x18\x01 \x03(\x0b\x32\x30.sift.notifications.v1.UpdateNotificationRequestB\x03\xe0\x41\x02R\x08requests\"\xab\x01\n\x19UpdateNotificationRequest\x12L\n\x0cnotification\x18\x01 \x01(\x0b\x32#.sift.notifications.v1.NotificationB\x03\xe0\x41\x02R\x0cnotification\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"m\n BatchUpdateNotificationsResponse\x12I\n\rnotifications\x18\x01 \x03(\x0b\x32#.sift.notifications.v1.NotificationR\rnotifications*\x8e\x02\n\x10NotificationKind\x12!\n\x1dNOTIFICATION_KIND_UNSPECIFIED\x10\x00\x12\x1a\n\x16NOTIFICATION_KIND_TEXT\x10\x01\x12)\n%NOTIFICATION_KIND_ANNOTATION_ASSIGNED\x10\x02\x12\x35\n1NOTIFICATION_KIND_MENTIONED_IN_ANNOTATION_COMMENT\x10\x03\x12)\n%NOTIFICATION_KIND_CONDITION_TRIGGERED\x10\x04\x12.\n*NOTIFICATION_KIND_ANNOTATION_STATE_CHANGED\x10\x05\x32\x85\x05\n\x13NotificationService\x12\xde\x01\n\x11ListNotifications\x12/.sift.notifications.v1.ListNotificationsRequest\x1a\x30.sift.notifications.v1.ListNotificationsResponse\"f\x92\x41\x46\x12\x11ListNotifications\x1a\x31Retrieves notifications using an optional filter.\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/notifications\x12\xc6\x02\n\x18\x42\x61tchUpdateNotifications\x12\x36.sift.notifications.v1.BatchUpdateNotificationsRequest\x1a\x37.sift.notifications.v1.BatchUpdateNotificationsResponse\"\xb8\x01\x92\x41\x88\x01\x12\x18\x42\x61tchUpdateNotifications\x1alBatch updates a list of notifications using the list of fields specified in their respective `update_mask`s.\x82\xd3\xe4\x93\x02&\"!/api/v1/notifications:batchUpdate:\x01*\x1a\x44\x92\x41\x41\x12?Service to programmatically interact with in-app notifications.B\xc0\x01\n\x19\x63om.sift.notifications.v1B\x12NotificationsProtoP\x01\xa2\x02\x03SNX\xaa\x02\x15Sift.Notifications.V1\xca\x02\x15Sift\\Notifications\\V1\xe2\x02!Sift\\Notifications\\V1\\GPBMetadata\xea\x02\x17Sift::Notifications::V1\x92\x41\x18\x12\x16\n\x14Notification Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)sift/notifications/v1/notifications.proto\x12\x15sift.notifications.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xad\x04\n\x0cNotification\x12\'\n\x0fnotification_id\x18\x01 \x01(\tR\x0enotificationId\x12=\n\x0c\x63reated_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0b\x63reatedDate\x12?\n\rmodified_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0cmodifiedDate\x12+\n\x12\x63reated_by_user_id\x18\x04 \x01(\tR\x0f\x63reatedByUserId\x12-\n\x13modified_by_user_id\x18\x05 \x01(\tR\x10modifiedByUserId\x12\'\n\x0forganization_id\x18\x06 \x01(\tR\x0eorganizationId\x12*\n\x11recipient_user_id\x18\x07 \x01(\tR\x0frecipientUserId\x12\x17\n\x07is_read\x18\x08 \x01(\x08R\x06isRead\x12\x1b\n\tfull_link\x18\t \x01(\tR\x08\x66ullLink\x12T\n\x11notification_type\x18\n \x01(\x0e\x32\'.sift.notifications.v1.NotificationKindR\x10notificationType\x12\x1a\n\x08\x63ontents\x18\x0b \x01(\tR\x08\x63ontents\x12\x1b\n\tentity_id\x18\x0c \x01(\tR\x08\x65ntityId\"}\n\x18ListNotificationsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"\x8e\x01\n\x19ListNotificationsResponse\x12I\n\rnotifications\x18\x01 \x03(\x0b\x32#.sift.notifications.v1.NotificationR\rnotifications\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"t\n\x1f\x42\x61tchUpdateNotificationsRequest\x12Q\n\x08requests\x18\x01 \x03(\x0b\x32\x30.sift.notifications.v1.UpdateNotificationRequestB\x03\xe0\x41\x02R\x08requests\"\xab\x01\n\x19UpdateNotificationRequest\x12L\n\x0cnotification\x18\x01 \x01(\x0b\x32#.sift.notifications.v1.NotificationB\x03\xe0\x41\x02R\x0cnotification\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"m\n BatchUpdateNotificationsResponse\x12I\n\rnotifications\x18\x01 \x03(\x0b\x32#.sift.notifications.v1.NotificationR\rnotifications*\x8e\x02\n\x10NotificationKind\x12!\n\x1dNOTIFICATION_KIND_UNSPECIFIED\x10\x00\x12\x1a\n\x16NOTIFICATION_KIND_TEXT\x10\x01\x12)\n%NOTIFICATION_KIND_ANNOTATION_ASSIGNED\x10\x02\x12\x35\n1NOTIFICATION_KIND_MENTIONED_IN_ANNOTATION_COMMENT\x10\x03\x12)\n%NOTIFICATION_KIND_CONDITION_TRIGGERED\x10\x04\x12.\n*NOTIFICATION_KIND_ANNOTATION_STATE_CHANGED\x10\x05\x32\x85\x05\n\x13NotificationService\x12\xde\x01\n\x11ListNotifications\x12/.sift.notifications.v1.ListNotificationsRequest\x1a\x30.sift.notifications.v1.ListNotificationsResponse\"f\x92\x41\x46\x12\x11ListNotifications\x1a\x31Retrieves notifications using an optional filter.\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/notifications\x12\xc6\x02\n\x18\x42\x61tchUpdateNotifications\x12\x36.sift.notifications.v1.BatchUpdateNotificationsRequest\x1a\x37.sift.notifications.v1.BatchUpdateNotificationsResponse\"\xb8\x01\x92\x41\x88\x01\x12\x18\x42\x61tchUpdateNotifications\x1alBatch updates a list of notifications using the list of fields specified in their respective `update_mask`s.\x82\xd3\xe4\x93\x02&\"!/api/v1/notifications:batchUpdate:\x01*\x1a\x44\x92\x41\x41\x12?Service to programmatically interact with in-app notifications.B\xff\x01\n\x19\x63om.sift.notifications.v1B\x12NotificationsProtoP\x01Z=azimuth/gen/protos/go/sift/notifications/v1;notificationsv1pb\xa2\x02\x03SNX\xaa\x02\x15Sift.Notifications.V1\xca\x02\x15Sift\\Notifications\\V1\xe2\x02!Sift\\Notifications\\V1\\GPBMetadata\xea\x02\x17Sift::Notifications::V1\x92\x41\x18\x12\x16\n\x14Notification Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.notifications.v1.notifications_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\031com.sift.notifications.v1B\022NotificationsProtoP\001\242\002\003SNX\252\002\025Sift.Notifications.V1\312\002\025Sift\\Notifications\\V1\342\002!Sift\\Notifications\\V1\\GPBMetadata\352\002\027Sift::Notifications::V1\222A\030\022\026\n\024Notification Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\031com.sift.notifications.v1B\022NotificationsProtoP\001Z=azimuth/gen/protos/go/sift/notifications/v1;notificationsv1pb\242\002\003SNX\252\002\025Sift.Notifications.V1\312\002\025Sift\\Notifications\\V1\342\002!Sift\\Notifications\\V1\\GPBMetadata\352\002\027Sift::Notifications::V1\222A\030\022\026\n\024Notification Service' _globals['_LISTNOTIFICATIONSREQUEST'].fields_by_name['page_size']._loaded_options = None _globals['_LISTNOTIFICATIONSREQUEST'].fields_by_name['page_size']._serialized_options = b'\340A\001' _globals['_LISTNOTIFICATIONSREQUEST'].fields_by_name['page_token']._loaded_options = None diff --git a/python/gen/sift/rules/v1/rules_pb2.py b/python/gen/sift/rules/v1/rules_pb2.py index 3e5fe4f7..7e9dd962 100644 --- a/python/gen/sift/rules/v1/rules_pb2.py +++ b/python/gen/sift/rules/v1/rules_pb2.py @@ -19,14 +19,14 @@ from sift.annotations.v1 import annotations_pb2 as sift_dot_annotations_dot_v1_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19sift/rules/v1/rules.proto\x12\rsift.rules.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a%sift/annotations/v1/annotations.proto\"\xb5\x04\n\x04Rule\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\x12\x1e\n\x08\x61sset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12*\n\x0e\x63urrent_status\x18\x05 \x01(\tB\x03\xe0\x41\x02R\rcurrentStatus\x12\"\n\nis_enabled\x18\x06 \x01(\x08\x42\x03\xe0\x41\x02R\tisEnabled\x12\x42\n\x0c\x63reated_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\t \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\n \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x41\n\nconditions\x18\x0c \x03(\x0b\x32\x1c.sift.rules.v1.RuleConditionB\x03\xe0\x41\x02R\nconditions\"\xf2\x03\n\rRuleCondition\x12/\n\x11rule_condition_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0fruleConditionId\x12\x1c\n\x07rule_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\x12K\n\nexpression\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleConditionExpressionB\x03\xe0\x41\x02R\nexpression\x12\x1b\n\x06status\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x06status\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x38\n\x07\x61\x63tions\x18\t \x03(\x0b\x32\x19.sift.rules.v1.RuleActionB\x03\xe0\x41\x02R\x07\x61\x63tions\"\xec\x03\n\nRuleAction\x12)\n\x0erule_action_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0cruleActionId\x12/\n\x11rule_condition_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0fruleConditionId\x12?\n\x0b\x61\x63tion_type\x18\x03 \x01(\x0e\x32\x19.sift.rules.v1.ActionKindB\x03\xe0\x41\x02R\nactionType\x12Q\n\rconfiguration\x18\x04 \x01(\x0b\x32&.sift.rules.v1.RuleActionConfigurationB\x03\xe0\x41\x02R\rconfiguration\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\"\xd9\x02\n\x12SearchRulesRequest\x12\x19\n\x05limit\x18\x01 \x01(\rH\x00R\x05limit\x88\x01\x01\x12\x16\n\x06offset\x18\x02 \x01(\rR\x06offset\x12\x35\n\x05order\x18\x03 \x01(\x0e\x32\x1a.sift.rules.v1.SearchOrderH\x01R\x05order\x88\x01\x01\x12!\n\x0cname_matches\x18\x04 \x01(\tR\x0bnameMatches\x12%\n\x0e\x63\x61se_sensitive\x18\x05 \x01(\x08R\rcaseSensitive\x12\x16\n\x06regexp\x18\x06 \x01(\x08R\x06regexp\x12\x1e\n\x08order_by\x18\x07 \x01(\tH\x02R\x07orderBy\x88\x01\x01\x12\x19\n\x08rule_ids\x18\x08 \x03(\tR\x07ruleIds\x12\x1b\n\tasset_ids\x18\t \x03(\tR\x08\x61ssetIdsB\x08\n\x06_limitB\x08\n\x06_orderB\x0b\n\t_order_by\"`\n\x13SearchRulesResponse\x12\x19\n\x05\x63ount\x18\x01 \x01(\rB\x03\xe0\x41\x02R\x05\x63ount\x12.\n\x05rules\x18\x02 \x03(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x05rules\".\n\x0eGetRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"?\n\x0fGetRuleResponse\x12,\n\x04rule\x18\x01 \x01(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x04rule\"6\n\x14\x42\x61tchGetRulesRequest\x12\x1e\n\x08rule_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x07ruleIds\"G\n\x15\x42\x61tchGetRulesResponse\x12.\n\x05rules\x18\x01 \x03(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x05rules\"R\n\x11\x43reateRuleRequest\x12=\n\x06update\x18\x01 \x01(\x0b\x32 .sift.rules.v1.UpdateRuleRequestB\x03\xe0\x41\x02R\x06update\"2\n\x12\x43reateRuleResponse\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"\xb6\x02\n\x11UpdateRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tH\x00R\x06ruleId\x88\x01\x01\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x1e\n\x08\x61sset_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nis_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x02R\tisEnabled\x12J\n\nconditions\x18\x06 \x03(\x0b\x32%.sift.rules.v1.UpdateConditionRequestB\x03\xe0\x41\x02R\nconditions\x12\'\n\x0forganization_id\x18\x07 \x01(\tR\x0eorganizationIdB\n\n\x08_rule_id\"\x8c\x02\n\x16UpdateConditionRequest\x12/\n\x11rule_condition_id\x18\x01 \x01(\tH\x00R\x0fruleConditionId\x88\x01\x01\x12\x1b\n\x06status\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x06status\x12K\n\nexpression\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleConditionExpressionB\x03\xe0\x41\x02R\nexpression\x12\x41\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\".sift.rules.v1.UpdateActionRequestB\x03\xe0\x41\x02R\x07\x61\x63tionsB\x14\n\x12_rule_condition_id\"\xe7\x01\n\x13UpdateActionRequest\x12)\n\x0erule_action_id\x18\x01 \x01(\tH\x00R\x0cruleActionId\x88\x01\x01\x12?\n\x0b\x61\x63tion_type\x18\x02 \x01(\x0e\x32\x19.sift.rules.v1.ActionKindB\x03\xe0\x41\x02R\nactionType\x12Q\n\rconfiguration\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleActionConfigurationB\x03\xe0\x41\x02R\rconfigurationB\x11\n\x0f_rule_action_id\"2\n\x12UpdateRuleResponse\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"1\n\x11\x44\x65leteRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"\x14\n\x12\x44\x65leteRuleResponse\"?\n\x1dViewHumanFriendlyRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\"D\n\x1eViewHumanFriendlyRulesResponse\x12\"\n\nrules_json\x18\x01 \x01(\tB\x03\xe0\x41\x02R\trulesJson\"\x93\x01\n\x1fUpdateHumanFriendlyRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nrules_json\x18\x02 \x01(\tB\x03\xe0\x41\x02R\trulesJson\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\"\x88\x01\n UpdateHumanFriendlyRulesResponse\x12\x1d\n\x07success\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02R\x07success\x12$\n\x0brules_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\nrulesCount\x12\x1f\n\x08messages\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x08messages\"\xf0\x01\n\x17RuleConditionExpression\x12n\n\x19single_channel_comparison\x18\x01 \x01(\x0b\x32\x30.sift.rules.v1.SingleChannelComparisonExpressionH\x00R\x17singleChannelComparison\x12W\n\x12\x63\x61lculated_channel\x18\x02 \x01(\x0b\x32&.sift.rules.v1.CalculatedChannelConfigH\x00R\x11\x63\x61lculatedChannelB\x0c\n\nexpression\"\xcb\x02\n!SingleChannelComparisonExpression\x12\x30\n\x11\x63hannel_component\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x10\x63hannelComponent\x12&\n\x0c\x63hannel_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x63hannelName\x12G\n\ncomparator\x18\x03 \x01(\x0e\x32\".sift.rules.v1.ConditionComparatorB\x03\xe0\x41\x02R\ncomparator\x12\x18\n\x06\x64ouble\x18\x04 \x01(\x01H\x00R\x06\x64ouble\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x42\n\nlast_value\x18\x06 \x01(\x0b\x32!.sift.rules.v1.LastValueThresholdH\x00R\tlastValueB\x0b\n\tthreshold\"\x14\n\x12LastValueThreshold\"\x98\x02\n\x17\x43\x61lculatedChannelConfig\x12q\n\x12\x63hannel_references\x18\x01 \x03(\x0b\x32=.sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntryB\x03\xe0\x41\x02R\x11\x63hannelReferences\x12#\n\nexpression\x18\x02 \x01(\tB\x03\xe0\x41\x02R\nexpression\x1a\x65\n\x16\x43hannelReferencesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.sift.rules.v1.ChannelReferenceR\x05value:\x02\x38\x01\"N\n\x10\x43hannelReference\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x02 \x01(\tB\x03\xe0\x41\x02R\tcomponent\"\xd0\x01\n\x17RuleActionConfiguration\x12T\n\x0cnotification\x18\x01 \x01(\x0b\x32..sift.rules.v1.NotificationActionConfigurationH\x00R\x0cnotification\x12N\n\nannotation\x18\x02 \x01(\x0b\x32,.sift.rules.v1.AnnotationActionConfigurationH\x00R\nannotationB\x0f\n\rconfiguration\"T\n\x1fNotificationActionConfiguration\x12\x31\n\x12recipient_user_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x10recipientUserIds\"\xd7\x01\n\x1d\x41nnotationActionConfiguration\x12\x1c\n\x07tag_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x06tagIds\x12L\n\x0f\x61nnotation_type\x18\x02 \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeR\x0e\x61nnotationType\x12\x32\n\x13\x61ssigned_to_user_id\x18\x03 \x01(\tH\x00R\x10\x61ssignedToUserId\x88\x01\x01\x42\x16\n\x14_assigned_to_user_id\"\xf1\x01\n\x14\x45valuateRulesRequest\x12\x1e\n\x08rule_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x07ruleIds\x12X\n\x12\x61nnotation_options\x18\x02 \x01(\x0b\x32).sift.rules.v1.EvaluatedAnnotationOptionsR\x11\x61nnotationOptions\x12\x17\n\x06run_id\x18\x03 \x01(\tH\x00R\x05runId\x12>\n\ntime_range\x18\x04 \x01(\x0b\x32\x1d.sift.rules.v1.TimeRangeQueryH\x00R\ttimeRangeB\x06\n\x04time\"5\n\x1a\x45valuatedAnnotationOptions\x12\x17\n\x07tag_ids\x18\x01 \x03(\tR\x06tagIds\"\x82\x01\n\x0eTimeRangeQuery\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\"Q\n\x15\x45valuateRulesResponse\x12\x38\n\x18\x63reated_annotation_count\x18\x01 \x01(\x05R\x16\x63reatedAnnotationCount*\\\n\x0bSearchOrder\x12 \n\x18SEARCH_ORDER_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x14\n\x10SEARCH_ORDER_ASC\x10\x01\x12\x15\n\x11SEARCH_ORDER_DESC\x10\x02*O\n\nActionKind\x12\x1f\n\x17\x41\x43TION_KIND_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x10\n\x0cNOTIFICATION\x10\x01\x12\x0e\n\nANNOTATION\x10\x02*\xad\x01\n\x13\x43onditionComparator\x12(\n CONDITION_COMPARATOR_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\r\n\tNOT_EQUAL\x10\x06\x32\xdc\x0e\n\x0bRuleService\x12\xb9\x01\n\x0bSearchRules\x12!.sift.rules.v1.SearchRulesRequest\x1a\".sift.rules.v1.SearchRulesResponse\"c\x92\x41\x41\x12\x0bSearchRules\x1a\x32Queries rules based on provided search parameters.\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/rules/search:\x01*\x12\x7f\n\x07GetRule\x12\x1d.sift.rules.v1.GetRuleRequest\x1a\x1e.sift.rules.v1.GetRuleResponse\"5\x92\x41\x1d\x12\x08GetRules\x1a\x11Retrieves a rule.\x82\xd3\xe4\x93\x02\x0f\x12\r/api/v1/rules\x12\xaa\x01\n\rBatchGetRules\x12#.sift.rules.v1.BatchGetRulesRequest\x1a$.sift.rules.v1.BatchGetRulesResponse\"N\x92\x41*\x12\rBatchGetRules\x1a\x19Retrieves multiple rules.\x82\xd3\xe4\x93\x02\x1b\"\x16/api/v1/rules:batchGet:\x01*\x12\x8b\x01\n\nCreateRule\x12 .sift.rules.v1.CreateRuleRequest\x1a!.sift.rules.v1.CreateRuleResponse\"8\x92\x41\x1d\x12\nCreateRule\x1a\x0f\x43reates a rule.\x82\xd3\xe4\x93\x02\x12\"\r/api/v1/rules:\x01*\x12\x95\x01\n\nUpdateRule\x12 .sift.rules.v1.UpdateRuleRequest\x1a!.sift.rules.v1.UpdateRuleResponse\"B\x92\x41\'\x12\nUpdateRule\x1a\x19Updates an existing rule.\x82\xd3\xe4\x93\x02\x12\x1a\r/api/v1/rules:\x01*\x12\x92\x01\n\nDeleteRule\x12 .sift.rules.v1.DeleteRuleRequest\x1a!.sift.rules.v1.DeleteRuleResponse\"?\x92\x41\x1d\x12\nDeleteRule\x1a\x0f\x44\x65letes a rule.\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/rules/delete:\x01*\x12\xdb\x01\n\rEvaluateRules\x12#.sift.rules.v1.EvaluateRulesRequest\x1a$.sift.rules.v1.EvaluateRulesResponse\"\x7f\x92\x41[\x12\rEvaluateRules\x1aJEvaluates the provided rules and generate annotations based on the result.\x82\xd3\xe4\x93\x02\x1b\"\x16/api/v1/rules/evaluate:\x01*\x12\x81\x02\n\x16ViewHumanFriendlyRules\x12,.sift.rules.v1.ViewHumanFriendlyRulesRequest\x1a-.sift.rules.v1.ViewHumanFriendlyRulesResponse\"\x89\x01\x92\x41_\x12\x16ViewHumanFriendlyRules\x1a\x45Retrieve a JSON object containing all of the rules for a given asset.\x82\xd3\xe4\x93\x02!\x12\x1f/api/v1/rules:viewHumanFriendly\x12\x91\x02\n\x18UpdateHumanFriendlyRules\x12..sift.rules.v1.UpdateHumanFriendlyRulesRequest\x1a/.sift.rules.v1.UpdateHumanFriendlyRulesResponse\"\x93\x01\x92\x41\x64\x12\x18UpdateHumanFriendlyRules\x1aHBatch update rules given the `rules_json` which is a JSON list of rules.\x82\xd3\xe4\x93\x02&\"!/api/v1/rules:updateHumanFriendly:\x01*\x1a\xb1\x01\x92\x41\xad\x01\x12\x30Service to programmatically interact with rules.\x1ay\n\x1fRead more about what rules are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265421102B\x88\x01\n\x11\x63om.sift.rules.v1B\nRulesProtoP\x01\xa2\x02\x03SRX\xaa\x02\rSift.Rules.V1\xca\x02\rSift\\Rules\\V1\xe2\x02\x19Sift\\Rules\\V1\\GPBMetadata\xea\x02\x0fSift::Rules::V1\x92\x41\x10\x12\x0e\n\x0cRule Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19sift/rules/v1/rules.proto\x12\rsift.rules.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a%sift/annotations/v1/annotations.proto\"\xb5\x04\n\x04Rule\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\x12\x1e\n\x08\x61sset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\x17\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12*\n\x0e\x63urrent_status\x18\x05 \x01(\tB\x03\xe0\x41\x02R\rcurrentStatus\x12\"\n\nis_enabled\x18\x06 \x01(\x08\x42\x03\xe0\x41\x02R\tisEnabled\x12\x42\n\x0c\x63reated_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\t \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\n \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x41\n\nconditions\x18\x0c \x03(\x0b\x32\x1c.sift.rules.v1.RuleConditionB\x03\xe0\x41\x02R\nconditions\"\xf2\x03\n\rRuleCondition\x12/\n\x11rule_condition_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0fruleConditionId\x12\x1c\n\x07rule_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\x12K\n\nexpression\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleConditionExpressionB\x03\xe0\x41\x02R\nexpression\x12\x1b\n\x06status\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x06status\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x38\n\x07\x61\x63tions\x18\t \x03(\x0b\x32\x19.sift.rules.v1.RuleActionB\x03\xe0\x41\x02R\x07\x61\x63tions\"\xec\x03\n\nRuleAction\x12)\n\x0erule_action_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x0cruleActionId\x12/\n\x11rule_condition_id\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0fruleConditionId\x12?\n\x0b\x61\x63tion_type\x18\x03 \x01(\x0e\x32\x19.sift.rules.v1.ActionKindB\x03\xe0\x41\x02R\nactionType\x12Q\n\rconfiguration\x18\x04 \x01(\x0b\x32&.sift.rules.v1.RuleActionConfigurationB\x03\xe0\x41\x02R\rconfiguration\x12\x42\n\x0c\x63reated_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x07 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x08 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\"\xd9\x02\n\x12SearchRulesRequest\x12\x19\n\x05limit\x18\x01 \x01(\rH\x00R\x05limit\x88\x01\x01\x12\x16\n\x06offset\x18\x02 \x01(\rR\x06offset\x12\x35\n\x05order\x18\x03 \x01(\x0e\x32\x1a.sift.rules.v1.SearchOrderH\x01R\x05order\x88\x01\x01\x12!\n\x0cname_matches\x18\x04 \x01(\tR\x0bnameMatches\x12%\n\x0e\x63\x61se_sensitive\x18\x05 \x01(\x08R\rcaseSensitive\x12\x16\n\x06regexp\x18\x06 \x01(\x08R\x06regexp\x12\x1e\n\x08order_by\x18\x07 \x01(\tH\x02R\x07orderBy\x88\x01\x01\x12\x19\n\x08rule_ids\x18\x08 \x03(\tR\x07ruleIds\x12\x1b\n\tasset_ids\x18\t \x03(\tR\x08\x61ssetIdsB\x08\n\x06_limitB\x08\n\x06_orderB\x0b\n\t_order_by\"`\n\x13SearchRulesResponse\x12\x19\n\x05\x63ount\x18\x01 \x01(\rB\x03\xe0\x41\x02R\x05\x63ount\x12.\n\x05rules\x18\x02 \x03(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x05rules\".\n\x0eGetRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"?\n\x0fGetRuleResponse\x12,\n\x04rule\x18\x01 \x01(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x04rule\"6\n\x14\x42\x61tchGetRulesRequest\x12\x1e\n\x08rule_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x07ruleIds\"G\n\x15\x42\x61tchGetRulesResponse\x12.\n\x05rules\x18\x01 \x03(\x0b\x32\x13.sift.rules.v1.RuleB\x03\xe0\x41\x02R\x05rules\"R\n\x11\x43reateRuleRequest\x12=\n\x06update\x18\x01 \x01(\x0b\x32 .sift.rules.v1.UpdateRuleRequestB\x03\xe0\x41\x02R\x06update\"2\n\x12\x43reateRuleResponse\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"\xb6\x02\n\x11UpdateRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tH\x00R\x06ruleId\x88\x01\x01\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x1e\n\x08\x61sset_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nis_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x02R\tisEnabled\x12J\n\nconditions\x18\x06 \x03(\x0b\x32%.sift.rules.v1.UpdateConditionRequestB\x03\xe0\x41\x02R\nconditions\x12\'\n\x0forganization_id\x18\x07 \x01(\tR\x0eorganizationIdB\n\n\x08_rule_id\"\x8c\x02\n\x16UpdateConditionRequest\x12/\n\x11rule_condition_id\x18\x01 \x01(\tH\x00R\x0fruleConditionId\x88\x01\x01\x12\x1b\n\x06status\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x06status\x12K\n\nexpression\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleConditionExpressionB\x03\xe0\x41\x02R\nexpression\x12\x41\n\x07\x61\x63tions\x18\x04 \x03(\x0b\x32\".sift.rules.v1.UpdateActionRequestB\x03\xe0\x41\x02R\x07\x61\x63tionsB\x14\n\x12_rule_condition_id\"\xe7\x01\n\x13UpdateActionRequest\x12)\n\x0erule_action_id\x18\x01 \x01(\tH\x00R\x0cruleActionId\x88\x01\x01\x12?\n\x0b\x61\x63tion_type\x18\x02 \x01(\x0e\x32\x19.sift.rules.v1.ActionKindB\x03\xe0\x41\x02R\nactionType\x12Q\n\rconfiguration\x18\x03 \x01(\x0b\x32&.sift.rules.v1.RuleActionConfigurationB\x03\xe0\x41\x02R\rconfigurationB\x11\n\x0f_rule_action_id\"2\n\x12UpdateRuleResponse\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"1\n\x11\x44\x65leteRuleRequest\x12\x1c\n\x07rule_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06ruleId\"\x14\n\x12\x44\x65leteRuleResponse\"C\n\x1dViewHumanFriendlyRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId:\x02\x18\x01\"H\n\x1eViewHumanFriendlyRulesResponse\x12\"\n\nrules_json\x18\x01 \x01(\tB\x03\xe0\x41\x02R\trulesJson:\x02\x18\x01\"\x97\x01\n\x1fUpdateHumanFriendlyRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nrules_json\x18\x02 \x01(\tB\x03\xe0\x41\x02R\trulesJson\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId:\x02\x18\x01\"\x8c\x01\n UpdateHumanFriendlyRulesResponse\x12\x1d\n\x07success\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02R\x07success\x12$\n\x0brules_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\nrulesCount\x12\x1f\n\x08messages\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x08messages:\x02\x18\x01\"6\n\x14ViewJsonRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\";\n\x15ViewJsonRulesResponse\x12\"\n\nrules_json\x18\x01 \x01(\tB\x03\xe0\x41\x02R\trulesJson\"\x84\x01\n\x10JsonRulesRequest\x12\x1e\n\x08\x61sset_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x07\x61ssetId\x12\"\n\nrules_json\x18\x02 \x01(\tB\x03\xe0\x41\x02R\trulesJson\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\"\xc1\x02\n\x11JsonRulesResponse\x12\x1d\n\x07success\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02R\x07success\x12/\n\x11total_rules_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02R\x0ftotalRulesCount\x12\x33\n\x13rules_created_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02R\x11rulesCreatedCount\x12\x33\n\x13rules_updated_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x02R\x11rulesUpdatedCount\x12\x33\n\x13rules_deleted_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x02R\x11rulesDeletedCount\x12*\n\x0e\x65rror_messages\x18\x06 \x01(\tH\x00R\rerrorMessages\x88\x01\x01\x42\x11\n\x0f_error_messages\"Z\n\x18ValidateJsonRulesRequest\x12>\n\x07request\x18\x01 \x01(\x0b\x32\x1f.sift.rules.v1.JsonRulesRequestB\x03\xe0\x41\x02R\x07request\"^\n\x19ValidateJsonRulesResponse\x12\x41\n\x08response\x18\x01 \x01(\x0b\x32 .sift.rules.v1.JsonRulesResponseB\x03\xe0\x41\x02R\x08response\"X\n\x16UpdateJsonRulesRequest\x12>\n\x07request\x18\x01 \x01(\x0b\x32\x1f.sift.rules.v1.JsonRulesRequestB\x03\xe0\x41\x02R\x07request\"\\\n\x17UpdateJsonRulesResponse\x12\x41\n\x08response\x18\x01 \x01(\x0b\x32 .sift.rules.v1.JsonRulesResponseB\x03\xe0\x41\x02R\x08response\"\xf0\x01\n\x17RuleConditionExpression\x12n\n\x19single_channel_comparison\x18\x01 \x01(\x0b\x32\x30.sift.rules.v1.SingleChannelComparisonExpressionH\x00R\x17singleChannelComparison\x12W\n\x12\x63\x61lculated_channel\x18\x02 \x01(\x0b\x32&.sift.rules.v1.CalculatedChannelConfigH\x00R\x11\x63\x61lculatedChannelB\x0c\n\nexpression\"\xcb\x02\n!SingleChannelComparisonExpression\x12\x30\n\x11\x63hannel_component\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x10\x63hannelComponent\x12&\n\x0c\x63hannel_name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x63hannelName\x12G\n\ncomparator\x18\x03 \x01(\x0e\x32\".sift.rules.v1.ConditionComparatorB\x03\xe0\x41\x02R\ncomparator\x12\x18\n\x06\x64ouble\x18\x04 \x01(\x01H\x00R\x06\x64ouble\x12\x18\n\x06string\x18\x05 \x01(\tH\x00R\x06string\x12\x42\n\nlast_value\x18\x06 \x01(\x0b\x32!.sift.rules.v1.LastValueThresholdH\x00R\tlastValueB\x0b\n\tthreshold\"\x14\n\x12LastValueThreshold\"\x98\x02\n\x17\x43\x61lculatedChannelConfig\x12q\n\x12\x63hannel_references\x18\x01 \x03(\x0b\x32=.sift.rules.v1.CalculatedChannelConfig.ChannelReferencesEntryB\x03\xe0\x41\x02R\x11\x63hannelReferences\x12#\n\nexpression\x18\x02 \x01(\tB\x03\xe0\x41\x02R\nexpression\x1a\x65\n\x16\x43hannelReferencesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.sift.rules.v1.ChannelReferenceR\x05value:\x02\x38\x01\"N\n\x10\x43hannelReference\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12!\n\tcomponent\x18\x02 \x01(\tB\x03\xe0\x41\x02R\tcomponent\"\xd0\x01\n\x17RuleActionConfiguration\x12T\n\x0cnotification\x18\x01 \x01(\x0b\x32..sift.rules.v1.NotificationActionConfigurationH\x00R\x0cnotification\x12N\n\nannotation\x18\x02 \x01(\x0b\x32,.sift.rules.v1.AnnotationActionConfigurationH\x00R\nannotationB\x0f\n\rconfiguration\"T\n\x1fNotificationActionConfiguration\x12\x31\n\x12recipient_user_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x10recipientUserIds\"\xd7\x01\n\x1d\x41nnotationActionConfiguration\x12\x1c\n\x07tag_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x06tagIds\x12L\n\x0f\x61nnotation_type\x18\x02 \x01(\x0e\x32#.sift.annotations.v1.AnnotationTypeR\x0e\x61nnotationType\x12\x32\n\x13\x61ssigned_to_user_id\x18\x03 \x01(\tH\x00R\x10\x61ssignedToUserId\x88\x01\x01\x42\x16\n\x14_assigned_to_user_id\"\xf1\x01\n\x14\x45valuateRulesRequest\x12\x1e\n\x08rule_ids\x18\x01 \x03(\tB\x03\xe0\x41\x02R\x07ruleIds\x12X\n\x12\x61nnotation_options\x18\x02 \x01(\x0b\x32).sift.rules.v1.EvaluatedAnnotationOptionsR\x11\x61nnotationOptions\x12\x17\n\x06run_id\x18\x03 \x01(\tH\x00R\x05runId\x12>\n\ntime_range\x18\x04 \x01(\x0b\x32\x1d.sift.rules.v1.TimeRangeQueryH\x00R\ttimeRangeB\x06\n\x04time\"5\n\x1a\x45valuatedAnnotationOptions\x12\x17\n\x07tag_ids\x18\x01 \x03(\tR\x06tagIds\"\x82\x01\n\x0eTimeRangeQuery\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\"Q\n\x15\x45valuateRulesResponse\x12\x38\n\x18\x63reated_annotation_count\x18\x01 \x01(\x05R\x16\x63reatedAnnotationCount*\\\n\x0bSearchOrder\x12 \n\x18SEARCH_ORDER_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x14\n\x10SEARCH_ORDER_ASC\x10\x01\x12\x15\n\x11SEARCH_ORDER_DESC\x10\x02*O\n\nActionKind\x12\x1f\n\x17\x41\x43TION_KIND_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\x10\n\x0cNOTIFICATION\x10\x01\x12\x0e\n\nANNOTATION\x10\x02*\xad\x01\n\x13\x43onditionComparator\x12(\n CONDITION_COMPARATOR_UNSPECIFIED\x10\x00\x1a\x02\x08\x01\x12\r\n\tLESS_THAN\x10\x01\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x03\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x04\x12\t\n\x05\x45QUAL\x10\x05\x12\r\n\tNOT_EQUAL\x10\x06\x32\x9f\x14\n\x0bRuleService\x12\xb9\x01\n\x0bSearchRules\x12!.sift.rules.v1.SearchRulesRequest\x1a\".sift.rules.v1.SearchRulesResponse\"c\x92\x41\x41\x12\x0bSearchRules\x1a\x32Queries rules based on provided search parameters.\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/rules/search:\x01*\x12\x7f\n\x07GetRule\x12\x1d.sift.rules.v1.GetRuleRequest\x1a\x1e.sift.rules.v1.GetRuleResponse\"5\x92\x41\x1d\x12\x08GetRules\x1a\x11Retrieves a rule.\x82\xd3\xe4\x93\x02\x0f\x12\r/api/v1/rules\x12\xaa\x01\n\rBatchGetRules\x12#.sift.rules.v1.BatchGetRulesRequest\x1a$.sift.rules.v1.BatchGetRulesResponse\"N\x92\x41*\x12\rBatchGetRules\x1a\x19Retrieves multiple rules.\x82\xd3\xe4\x93\x02\x1b\"\x16/api/v1/rules:batchGet:\x01*\x12\x8b\x01\n\nCreateRule\x12 .sift.rules.v1.CreateRuleRequest\x1a!.sift.rules.v1.CreateRuleResponse\"8\x92\x41\x1d\x12\nCreateRule\x1a\x0f\x43reates a rule.\x82\xd3\xe4\x93\x02\x12\"\r/api/v1/rules:\x01*\x12\x95\x01\n\nUpdateRule\x12 .sift.rules.v1.UpdateRuleRequest\x1a!.sift.rules.v1.UpdateRuleResponse\"B\x92\x41\'\x12\nUpdateRule\x1a\x19Updates an existing rule.\x82\xd3\xe4\x93\x02\x12\x1a\r/api/v1/rules:\x01*\x12\x92\x01\n\nDeleteRule\x12 .sift.rules.v1.DeleteRuleRequest\x1a!.sift.rules.v1.DeleteRuleResponse\"?\x92\x41\x1d\x12\nDeleteRule\x1a\x0f\x44\x65letes a rule.\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/rules/delete:\x01*\x12\xdb\x01\n\rEvaluateRules\x12#.sift.rules.v1.EvaluateRulesRequest\x1a$.sift.rules.v1.EvaluateRulesResponse\"\x7f\x92\x41[\x12\rEvaluateRules\x1aJEvaluates the provided rules and generate annotations based on the result.\x82\xd3\xe4\x93\x02\x1b\"\x16/api/v1/rules/evaluate:\x01*\x12\x84\x02\n\x16ViewHumanFriendlyRules\x12,.sift.rules.v1.ViewHumanFriendlyRulesRequest\x1a-.sift.rules.v1.ViewHumanFriendlyRulesResponse\"\x8c\x01\x88\x02\x01\x92\x41_\x12\x16ViewHumanFriendlyRules\x1a\x45Retrieve a JSON object containing all of the rules for a given asset.\x82\xd3\xe4\x93\x02!\x12\x1f/api/v1/rules:viewHumanFriendly\x12\xd3\x01\n\rViewJsonRules\x12#.sift.rules.v1.ViewJsonRulesRequest\x1a$.sift.rules.v1.ViewJsonRulesResponse\"w\x92\x41V\x12\rViewJsonRules\x1a\x45Retrieve a JSON object containing all of the rules for a given asset.\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/rules:viewJson\x12\x94\x02\n\x18UpdateHumanFriendlyRules\x12..sift.rules.v1.UpdateHumanFriendlyRulesRequest\x1a/.sift.rules.v1.UpdateHumanFriendlyRulesResponse\"\x96\x01\x88\x02\x01\x92\x41\x64\x12\x18UpdateHumanFriendlyRules\x1aHBatch update rules given the `rules_json` which is a JSON list of rules.\x82\xd3\xe4\x93\x02&\"!/api/v1/rules:updateHumanFriendly:\x01*\x12\xfd\x01\n\x11ValidateJsonRules\x12\'.sift.rules.v1.ValidateJsonRulesRequest\x1a(.sift.rules.v1.ValidateJsonRulesResponse\"\x94\x01\x92\x41l\x12\x11ValidateJsonRules\x1aWValidate a batch update for rules given the `rules_json` which is a JSON list of rules.\x82\xd3\xe4\x93\x02\x1f\"\x1a/api/v1/rules:validateJson:\x01*\x12\xe4\x01\n\x0fUpdateJsonRules\x12%.sift.rules.v1.UpdateJsonRulesRequest\x1a&.sift.rules.v1.UpdateJsonRulesResponse\"\x81\x01\x92\x41[\x12\x0fUpdateJsonRules\x1aHBatch update rules given the `rules_json` which is a JSON list of rules.\x82\xd3\xe4\x93\x02\x1d\"\x18/api/v1/rules:updateJson:\x01*\x1a\xb1\x01\x92\x41\xad\x01\x12\x30Service to programmatically interact with rules.\x1ay\n\x1fRead more about what rules are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265421102B\xb7\x01\n\x11\x63om.sift.rules.v1B\nRulesProtoP\x01Z-azimuth/gen/protos/go/sift/rules/v1;rulesv1pb\xa2\x02\x03SRX\xaa\x02\rSift.Rules.V1\xca\x02\rSift\\Rules\\V1\xe2\x02\x19Sift\\Rules\\V1\\GPBMetadata\xea\x02\x0fSift::Rules::V1\x92\x41\x10\x12\x0e\n\x0cRule Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.rules.v1.rules_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021com.sift.rules.v1B\nRulesProtoP\001\242\002\003SRX\252\002\rSift.Rules.V1\312\002\rSift\\Rules\\V1\342\002\031Sift\\Rules\\V1\\GPBMetadata\352\002\017Sift::Rules::V1\222A\020\022\016\n\014Rule Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\021com.sift.rules.v1B\nRulesProtoP\001Z-azimuth/gen/protos/go/sift/rules/v1;rulesv1pb\242\002\003SRX\252\002\rSift.Rules.V1\312\002\rSift\\Rules\\V1\342\002\031Sift\\Rules\\V1\\GPBMetadata\352\002\017Sift::Rules::V1\222A\020\022\016\n\014Rule Service' _globals['_SEARCHORDER'].values_by_name["SEARCH_ORDER_UNSPECIFIED"]._loaded_options = None _globals['_SEARCHORDER'].values_by_name["SEARCH_ORDER_UNSPECIFIED"]._serialized_options = b'\010\001' _globals['_ACTIONKIND'].values_by_name["ACTION_KIND_UNSPECIFIED"]._loaded_options = None @@ -133,20 +133,56 @@ _globals['_DELETERULEREQUEST'].fields_by_name['rule_id']._serialized_options = b'\340A\002' _globals['_VIEWHUMANFRIENDLYRULESREQUEST'].fields_by_name['asset_id']._loaded_options = None _globals['_VIEWHUMANFRIENDLYRULESREQUEST'].fields_by_name['asset_id']._serialized_options = b'\340A\002' + _globals['_VIEWHUMANFRIENDLYRULESREQUEST']._loaded_options = None + _globals['_VIEWHUMANFRIENDLYRULESREQUEST']._serialized_options = b'\030\001' _globals['_VIEWHUMANFRIENDLYRULESRESPONSE'].fields_by_name['rules_json']._loaded_options = None _globals['_VIEWHUMANFRIENDLYRULESRESPONSE'].fields_by_name['rules_json']._serialized_options = b'\340A\002' + _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._loaded_options = None + _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._serialized_options = b'\030\001' _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['asset_id']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['asset_id']._serialized_options = b'\340A\002' _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['rules_json']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['rules_json']._serialized_options = b'\340A\002' _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['organization_id']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESREQUEST'].fields_by_name['organization_id']._serialized_options = b'\340A\002' + _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._loaded_options = None + _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._serialized_options = b'\030\001' _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['success']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['success']._serialized_options = b'\340A\002' _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['rules_count']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['rules_count']._serialized_options = b'\340A\002' _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['messages']._loaded_options = None _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE'].fields_by_name['messages']._serialized_options = b'\340A\002' + _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._loaded_options = None + _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._serialized_options = b'\030\001' + _globals['_VIEWJSONRULESREQUEST'].fields_by_name['asset_id']._loaded_options = None + _globals['_VIEWJSONRULESREQUEST'].fields_by_name['asset_id']._serialized_options = b'\340A\002' + _globals['_VIEWJSONRULESRESPONSE'].fields_by_name['rules_json']._loaded_options = None + _globals['_VIEWJSONRULESRESPONSE'].fields_by_name['rules_json']._serialized_options = b'\340A\002' + _globals['_JSONRULESREQUEST'].fields_by_name['asset_id']._loaded_options = None + _globals['_JSONRULESREQUEST'].fields_by_name['asset_id']._serialized_options = b'\340A\002' + _globals['_JSONRULESREQUEST'].fields_by_name['rules_json']._loaded_options = None + _globals['_JSONRULESREQUEST'].fields_by_name['rules_json']._serialized_options = b'\340A\002' + _globals['_JSONRULESREQUEST'].fields_by_name['organization_id']._loaded_options = None + _globals['_JSONRULESREQUEST'].fields_by_name['organization_id']._serialized_options = b'\340A\002' + _globals['_JSONRULESRESPONSE'].fields_by_name['success']._loaded_options = None + _globals['_JSONRULESRESPONSE'].fields_by_name['success']._serialized_options = b'\340A\002' + _globals['_JSONRULESRESPONSE'].fields_by_name['total_rules_count']._loaded_options = None + _globals['_JSONRULESRESPONSE'].fields_by_name['total_rules_count']._serialized_options = b'\340A\002' + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_created_count']._loaded_options = None + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_created_count']._serialized_options = b'\340A\002' + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_updated_count']._loaded_options = None + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_updated_count']._serialized_options = b'\340A\002' + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_deleted_count']._loaded_options = None + _globals['_JSONRULESRESPONSE'].fields_by_name['rules_deleted_count']._serialized_options = b'\340A\002' + _globals['_VALIDATEJSONRULESREQUEST'].fields_by_name['request']._loaded_options = None + _globals['_VALIDATEJSONRULESREQUEST'].fields_by_name['request']._serialized_options = b'\340A\002' + _globals['_VALIDATEJSONRULESRESPONSE'].fields_by_name['response']._loaded_options = None + _globals['_VALIDATEJSONRULESRESPONSE'].fields_by_name['response']._serialized_options = b'\340A\002' + _globals['_UPDATEJSONRULESREQUEST'].fields_by_name['request']._loaded_options = None + _globals['_UPDATEJSONRULESREQUEST'].fields_by_name['request']._serialized_options = b'\340A\002' + _globals['_UPDATEJSONRULESRESPONSE'].fields_by_name['response']._loaded_options = None + _globals['_UPDATEJSONRULESRESPONSE'].fields_by_name['response']._serialized_options = b'\340A\002' _globals['_SINGLECHANNELCOMPARISONEXPRESSION'].fields_by_name['channel_component']._loaded_options = None _globals['_SINGLECHANNELCOMPARISONEXPRESSION'].fields_by_name['channel_component']._serialized_options = b'\340A\002' _globals['_SINGLECHANNELCOMPARISONEXPRESSION'].fields_by_name['channel_name']._loaded_options = None @@ -186,15 +222,21 @@ _globals['_RULESERVICE'].methods_by_name['EvaluateRules']._loaded_options = None _globals['_RULESERVICE'].methods_by_name['EvaluateRules']._serialized_options = b'\222A[\022\rEvaluateRules\032JEvaluates the provided rules and generate annotations based on the result.\202\323\344\223\002\033\"\026/api/v1/rules/evaluate:\001*' _globals['_RULESERVICE'].methods_by_name['ViewHumanFriendlyRules']._loaded_options = None - _globals['_RULESERVICE'].methods_by_name['ViewHumanFriendlyRules']._serialized_options = b'\222A_\022\026ViewHumanFriendlyRules\032ERetrieve a JSON object containing all of the rules for a given asset.\202\323\344\223\002!\022\037/api/v1/rules:viewHumanFriendly' + _globals['_RULESERVICE'].methods_by_name['ViewHumanFriendlyRules']._serialized_options = b'\210\002\001\222A_\022\026ViewHumanFriendlyRules\032ERetrieve a JSON object containing all of the rules for a given asset.\202\323\344\223\002!\022\037/api/v1/rules:viewHumanFriendly' + _globals['_RULESERVICE'].methods_by_name['ViewJsonRules']._loaded_options = None + _globals['_RULESERVICE'].methods_by_name['ViewJsonRules']._serialized_options = b'\222AV\022\rViewJsonRules\032ERetrieve a JSON object containing all of the rules for a given asset.\202\323\344\223\002\030\022\026/api/v1/rules:viewJson' _globals['_RULESERVICE'].methods_by_name['UpdateHumanFriendlyRules']._loaded_options = None - _globals['_RULESERVICE'].methods_by_name['UpdateHumanFriendlyRules']._serialized_options = b'\222Ad\022\030UpdateHumanFriendlyRules\032HBatch update rules given the `rules_json` which is a JSON list of rules.\202\323\344\223\002&\"!/api/v1/rules:updateHumanFriendly:\001*' - _globals['_SEARCHORDER']._serialized_start=5974 - _globals['_SEARCHORDER']._serialized_end=6066 - _globals['_ACTIONKIND']._serialized_start=6068 - _globals['_ACTIONKIND']._serialized_end=6147 - _globals['_CONDITIONCOMPARATOR']._serialized_start=6150 - _globals['_CONDITIONCOMPARATOR']._serialized_end=6323 + _globals['_RULESERVICE'].methods_by_name['UpdateHumanFriendlyRules']._serialized_options = b'\210\002\001\222Ad\022\030UpdateHumanFriendlyRules\032HBatch update rules given the `rules_json` which is a JSON list of rules.\202\323\344\223\002&\"!/api/v1/rules:updateHumanFriendly:\001*' + _globals['_RULESERVICE'].methods_by_name['ValidateJsonRules']._loaded_options = None + _globals['_RULESERVICE'].methods_by_name['ValidateJsonRules']._serialized_options = b'\222Al\022\021ValidateJsonRules\032WValidate a batch update for rules given the `rules_json` which is a JSON list of rules.\202\323\344\223\002\037\"\032/api/v1/rules:validateJson:\001*' + _globals['_RULESERVICE'].methods_by_name['UpdateJsonRules']._loaded_options = None + _globals['_RULESERVICE'].methods_by_name['UpdateJsonRules']._serialized_options = b'\222A[\022\017UpdateJsonRules\032HBatch update rules given the `rules_json` which is a JSON list of rules.\202\323\344\223\002\035\"\030/api/v1/rules:updateJson:\001*' + _globals['_SEARCHORDER']._serialized_start=6938 + _globals['_SEARCHORDER']._serialized_end=7030 + _globals['_ACTIONKIND']._serialized_start=7032 + _globals['_ACTIONKIND']._serialized_end=7111 + _globals['_CONDITIONCOMPARATOR']._serialized_start=7114 + _globals['_CONDITIONCOMPARATOR']._serialized_end=7287 _globals['_RULE']._serialized_start=228 _globals['_RULE']._serialized_end=793 _globals['_RULECONDITION']._serialized_start=796 @@ -230,39 +272,55 @@ _globals['_DELETERULERESPONSE']._serialized_start=3536 _globals['_DELETERULERESPONSE']._serialized_end=3556 _globals['_VIEWHUMANFRIENDLYRULESREQUEST']._serialized_start=3558 - _globals['_VIEWHUMANFRIENDLYRULESREQUEST']._serialized_end=3621 - _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._serialized_start=3623 - _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._serialized_end=3691 - _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._serialized_start=3694 - _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._serialized_end=3841 - _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._serialized_start=3844 - _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._serialized_end=3980 - _globals['_RULECONDITIONEXPRESSION']._serialized_start=3983 - _globals['_RULECONDITIONEXPRESSION']._serialized_end=4223 - _globals['_SINGLECHANNELCOMPARISONEXPRESSION']._serialized_start=4226 - _globals['_SINGLECHANNELCOMPARISONEXPRESSION']._serialized_end=4557 - _globals['_LASTVALUETHRESHOLD']._serialized_start=4559 - _globals['_LASTVALUETHRESHOLD']._serialized_end=4579 - _globals['_CALCULATEDCHANNELCONFIG']._serialized_start=4582 - _globals['_CALCULATEDCHANNELCONFIG']._serialized_end=4862 - _globals['_CALCULATEDCHANNELCONFIG_CHANNELREFERENCESENTRY']._serialized_start=4761 - _globals['_CALCULATEDCHANNELCONFIG_CHANNELREFERENCESENTRY']._serialized_end=4862 - _globals['_CHANNELREFERENCE']._serialized_start=4864 - _globals['_CHANNELREFERENCE']._serialized_end=4942 - _globals['_RULEACTIONCONFIGURATION']._serialized_start=4945 - _globals['_RULEACTIONCONFIGURATION']._serialized_end=5153 - _globals['_NOTIFICATIONACTIONCONFIGURATION']._serialized_start=5155 - _globals['_NOTIFICATIONACTIONCONFIGURATION']._serialized_end=5239 - _globals['_ANNOTATIONACTIONCONFIGURATION']._serialized_start=5242 - _globals['_ANNOTATIONACTIONCONFIGURATION']._serialized_end=5457 - _globals['_EVALUATERULESREQUEST']._serialized_start=5460 - _globals['_EVALUATERULESREQUEST']._serialized_end=5701 - _globals['_EVALUATEDANNOTATIONOPTIONS']._serialized_start=5703 - _globals['_EVALUATEDANNOTATIONOPTIONS']._serialized_end=5756 - _globals['_TIMERANGEQUERY']._serialized_start=5759 - _globals['_TIMERANGEQUERY']._serialized_end=5889 - _globals['_EVALUATERULESRESPONSE']._serialized_start=5891 - _globals['_EVALUATERULESRESPONSE']._serialized_end=5972 - _globals['_RULESERVICE']._serialized_start=6326 - _globals['_RULESERVICE']._serialized_end=8210 + _globals['_VIEWHUMANFRIENDLYRULESREQUEST']._serialized_end=3625 + _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._serialized_start=3627 + _globals['_VIEWHUMANFRIENDLYRULESRESPONSE']._serialized_end=3699 + _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._serialized_start=3702 + _globals['_UPDATEHUMANFRIENDLYRULESREQUEST']._serialized_end=3853 + _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._serialized_start=3856 + _globals['_UPDATEHUMANFRIENDLYRULESRESPONSE']._serialized_end=3996 + _globals['_VIEWJSONRULESREQUEST']._serialized_start=3998 + _globals['_VIEWJSONRULESREQUEST']._serialized_end=4052 + _globals['_VIEWJSONRULESRESPONSE']._serialized_start=4054 + _globals['_VIEWJSONRULESRESPONSE']._serialized_end=4113 + _globals['_JSONRULESREQUEST']._serialized_start=4116 + _globals['_JSONRULESREQUEST']._serialized_end=4248 + _globals['_JSONRULESRESPONSE']._serialized_start=4251 + _globals['_JSONRULESRESPONSE']._serialized_end=4572 + _globals['_VALIDATEJSONRULESREQUEST']._serialized_start=4574 + _globals['_VALIDATEJSONRULESREQUEST']._serialized_end=4664 + _globals['_VALIDATEJSONRULESRESPONSE']._serialized_start=4666 + _globals['_VALIDATEJSONRULESRESPONSE']._serialized_end=4760 + _globals['_UPDATEJSONRULESREQUEST']._serialized_start=4762 + _globals['_UPDATEJSONRULESREQUEST']._serialized_end=4850 + _globals['_UPDATEJSONRULESRESPONSE']._serialized_start=4852 + _globals['_UPDATEJSONRULESRESPONSE']._serialized_end=4944 + _globals['_RULECONDITIONEXPRESSION']._serialized_start=4947 + _globals['_RULECONDITIONEXPRESSION']._serialized_end=5187 + _globals['_SINGLECHANNELCOMPARISONEXPRESSION']._serialized_start=5190 + _globals['_SINGLECHANNELCOMPARISONEXPRESSION']._serialized_end=5521 + _globals['_LASTVALUETHRESHOLD']._serialized_start=5523 + _globals['_LASTVALUETHRESHOLD']._serialized_end=5543 + _globals['_CALCULATEDCHANNELCONFIG']._serialized_start=5546 + _globals['_CALCULATEDCHANNELCONFIG']._serialized_end=5826 + _globals['_CALCULATEDCHANNELCONFIG_CHANNELREFERENCESENTRY']._serialized_start=5725 + _globals['_CALCULATEDCHANNELCONFIG_CHANNELREFERENCESENTRY']._serialized_end=5826 + _globals['_CHANNELREFERENCE']._serialized_start=5828 + _globals['_CHANNELREFERENCE']._serialized_end=5906 + _globals['_RULEACTIONCONFIGURATION']._serialized_start=5909 + _globals['_RULEACTIONCONFIGURATION']._serialized_end=6117 + _globals['_NOTIFICATIONACTIONCONFIGURATION']._serialized_start=6119 + _globals['_NOTIFICATIONACTIONCONFIGURATION']._serialized_end=6203 + _globals['_ANNOTATIONACTIONCONFIGURATION']._serialized_start=6206 + _globals['_ANNOTATIONACTIONCONFIGURATION']._serialized_end=6421 + _globals['_EVALUATERULESREQUEST']._serialized_start=6424 + _globals['_EVALUATERULESREQUEST']._serialized_end=6665 + _globals['_EVALUATEDANNOTATIONOPTIONS']._serialized_start=6667 + _globals['_EVALUATEDANNOTATIONOPTIONS']._serialized_end=6720 + _globals['_TIMERANGEQUERY']._serialized_start=6723 + _globals['_TIMERANGEQUERY']._serialized_end=6853 + _globals['_EVALUATERULESRESPONSE']._serialized_start=6855 + _globals['_EVALUATERULESRESPONSE']._serialized_end=6936 + _globals['_RULESERVICE']._serialized_start=7290 + _globals['_RULESERVICE']._serialized_end=9881 # @@protoc_insertion_point(module_scope) diff --git a/python/gen/sift/rules/v1/rules_pb2.pyi b/python/gen/sift/rules/v1/rules_pb2.pyi index 4bba556b..0ece5040 100644 --- a/python/gen/sift/rules/v1/rules_pb2.pyi +++ b/python/gen/sift/rules/v1/rules_pb2.pyi @@ -525,6 +525,8 @@ global___DeleteRuleResponse = DeleteRuleResponse @typing.final class ViewHumanFriendlyRulesRequest(google.protobuf.message.Message): + """Deprecated - use ViewJsonRulesRequest.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor ASSET_ID_FIELD_NUMBER: builtins.int @@ -540,6 +542,8 @@ global___ViewHumanFriendlyRulesRequest = ViewHumanFriendlyRulesRequest @typing.final class ViewHumanFriendlyRulesResponse(google.protobuf.message.Message): + """Deprecated - use ViewJsonRulesResponse.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor RULES_JSON_FIELD_NUMBER: builtins.int @@ -555,6 +559,8 @@ global___ViewHumanFriendlyRulesResponse = ViewHumanFriendlyRulesResponse @typing.final class UpdateHumanFriendlyRulesRequest(google.protobuf.message.Message): + """Deprecated - use UpdateJsonRulesRequest.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor ASSET_ID_FIELD_NUMBER: builtins.int @@ -576,6 +582,8 @@ global___UpdateHumanFriendlyRulesRequest = UpdateHumanFriendlyRulesRequest @typing.final class UpdateHumanFriendlyRulesResponse(google.protobuf.message.Message): + """Deprecated - use UpdateJsonRulesResponse.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor SUCCESS_FIELD_NUMBER: builtins.int @@ -595,6 +603,157 @@ class UpdateHumanFriendlyRulesResponse(google.protobuf.message.Message): global___UpdateHumanFriendlyRulesResponse = UpdateHumanFriendlyRulesResponse +@typing.final +class ViewJsonRulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASSET_ID_FIELD_NUMBER: builtins.int + asset_id: builtins.str + def __init__( + self, + *, + asset_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id"]) -> None: ... + +global___ViewJsonRulesRequest = ViewJsonRulesRequest + +@typing.final +class ViewJsonRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RULES_JSON_FIELD_NUMBER: builtins.int + rules_json: builtins.str + def __init__( + self, + *, + rules_json: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["rules_json", b"rules_json"]) -> None: ... + +global___ViewJsonRulesResponse = ViewJsonRulesResponse + +@typing.final +class JsonRulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ASSET_ID_FIELD_NUMBER: builtins.int + RULES_JSON_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + asset_id: builtins.str + rules_json: builtins.str + organization_id: builtins.str + def __init__( + self, + *, + asset_id: builtins.str = ..., + rules_json: builtins.str = ..., + organization_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["asset_id", b"asset_id", "organization_id", b"organization_id", "rules_json", b"rules_json"]) -> None: ... + +global___JsonRulesRequest = JsonRulesRequest + +@typing.final +class JsonRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SUCCESS_FIELD_NUMBER: builtins.int + TOTAL_RULES_COUNT_FIELD_NUMBER: builtins.int + RULES_CREATED_COUNT_FIELD_NUMBER: builtins.int + RULES_UPDATED_COUNT_FIELD_NUMBER: builtins.int + RULES_DELETED_COUNT_FIELD_NUMBER: builtins.int + ERROR_MESSAGES_FIELD_NUMBER: builtins.int + success: builtins.bool + total_rules_count: builtins.int + rules_created_count: builtins.int + rules_updated_count: builtins.int + rules_deleted_count: builtins.int + error_messages: builtins.str + def __init__( + self, + *, + success: builtins.bool = ..., + total_rules_count: builtins.int = ..., + rules_created_count: builtins.int = ..., + rules_updated_count: builtins.int = ..., + rules_deleted_count: builtins.int = ..., + error_messages: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["_error_messages", b"_error_messages", "error_messages", b"error_messages"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["_error_messages", b"_error_messages", "error_messages", b"error_messages", "rules_created_count", b"rules_created_count", "rules_deleted_count", b"rules_deleted_count", "rules_updated_count", b"rules_updated_count", "success", b"success", "total_rules_count", b"total_rules_count"]) -> None: ... + def WhichOneof(self, oneof_group: typing.Literal["_error_messages", b"_error_messages"]) -> typing.Literal["error_messages"] | None: ... + +global___JsonRulesResponse = JsonRulesResponse + +@typing.final +class ValidateJsonRulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REQUEST_FIELD_NUMBER: builtins.int + @property + def request(self) -> global___JsonRulesRequest: ... + def __init__( + self, + *, + request: global___JsonRulesRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["request", b"request"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request", b"request"]) -> None: ... + +global___ValidateJsonRulesRequest = ValidateJsonRulesRequest + +@typing.final +class ValidateJsonRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESPONSE_FIELD_NUMBER: builtins.int + @property + def response(self) -> global___JsonRulesResponse: ... + def __init__( + self, + *, + response: global___JsonRulesResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["response", b"response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["response", b"response"]) -> None: ... + +global___ValidateJsonRulesResponse = ValidateJsonRulesResponse + +@typing.final +class UpdateJsonRulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REQUEST_FIELD_NUMBER: builtins.int + @property + def request(self) -> global___JsonRulesRequest: ... + def __init__( + self, + *, + request: global___JsonRulesRequest | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["request", b"request"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request", b"request"]) -> None: ... + +global___UpdateJsonRulesRequest = UpdateJsonRulesRequest + +@typing.final +class UpdateJsonRulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + RESPONSE_FIELD_NUMBER: builtins.int + @property + def response(self) -> global___JsonRulesResponse: ... + def __init__( + self, + *, + response: global___JsonRulesResponse | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["response", b"response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["response", b"response"]) -> None: ... + +global___UpdateJsonRulesResponse = UpdateJsonRulesResponse + @typing.final class RuleConditionExpression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/python/gen/sift/rules/v1/rules_pb2_grpc.py b/python/gen/sift/rules/v1/rules_pb2_grpc.py index 5294b118..9e8ec95b 100644 --- a/python/gen/sift/rules/v1/rules_pb2_grpc.py +++ b/python/gen/sift/rules/v1/rules_pb2_grpc.py @@ -54,11 +54,26 @@ def __init__(self, channel): request_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewHumanFriendlyRulesRequest.SerializeToString, response_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewHumanFriendlyRulesResponse.FromString, ) + self.ViewJsonRules = channel.unary_unary( + '/sift.rules.v1.RuleService/ViewJsonRules', + request_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesRequest.SerializeToString, + response_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesResponse.FromString, + ) self.UpdateHumanFriendlyRules = channel.unary_unary( '/sift.rules.v1.RuleService/UpdateHumanFriendlyRules', request_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateHumanFriendlyRulesRequest.SerializeToString, response_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateHumanFriendlyRulesResponse.FromString, ) + self.ValidateJsonRules = channel.unary_unary( + '/sift.rules.v1.RuleService/ValidateJsonRules', + request_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesRequest.SerializeToString, + response_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesResponse.FromString, + ) + self.UpdateJsonRules = channel.unary_unary( + '/sift.rules.v1.RuleService/UpdateJsonRules', + request_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesRequest.SerializeToString, + response_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesResponse.FromString, + ) class RuleServiceServicer(object): @@ -114,6 +129,13 @@ def EvaluateRules(self, request, context): raise NotImplementedError('Method not implemented!') def ViewHumanFriendlyRules(self, request, context): + """Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ViewJsonRules(self, request, context): """Retrieve a JSON object containing all of the rules for a given asset. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -121,6 +143,20 @@ def ViewHumanFriendlyRules(self, request, context): raise NotImplementedError('Method not implemented!') def UpdateHumanFriendlyRules(self, request, context): + """Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ValidateJsonRules(self, request, context): + """Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateJsonRules(self, request, context): """Batch update rules given the `rules_json` which is a JSON list of rules. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -170,11 +206,26 @@ def add_RuleServiceServicer_to_server(servicer, server): request_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewHumanFriendlyRulesRequest.FromString, response_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewHumanFriendlyRulesResponse.SerializeToString, ), + 'ViewJsonRules': grpc.unary_unary_rpc_method_handler( + servicer.ViewJsonRules, + request_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesRequest.FromString, + response_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesResponse.SerializeToString, + ), 'UpdateHumanFriendlyRules': grpc.unary_unary_rpc_method_handler( servicer.UpdateHumanFriendlyRules, request_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateHumanFriendlyRulesRequest.FromString, response_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateHumanFriendlyRulesResponse.SerializeToString, ), + 'ValidateJsonRules': grpc.unary_unary_rpc_method_handler( + servicer.ValidateJsonRules, + request_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesRequest.FromString, + response_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesResponse.SerializeToString, + ), + 'UpdateJsonRules': grpc.unary_unary_rpc_method_handler( + servicer.UpdateJsonRules, + request_deserializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesRequest.FromString, + response_serializer=sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'sift.rules.v1.RuleService', rpc_method_handlers) @@ -321,6 +372,23 @@ def ViewHumanFriendlyRules(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def ViewJsonRules(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.rules.v1.RuleService/ViewJsonRules', + sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesRequest.SerializeToString, + sift_dot_rules_dot_v1_dot_rules__pb2.ViewJsonRulesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def UpdateHumanFriendlyRules(request, target, @@ -337,3 +405,37 @@ def UpdateHumanFriendlyRules(request, sift_dot_rules_dot_v1_dot_rules__pb2.UpdateHumanFriendlyRulesResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ValidateJsonRules(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.rules.v1.RuleService/ValidateJsonRules', + sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesRequest.SerializeToString, + sift_dot_rules_dot_v1_dot_rules__pb2.ValidateJsonRulesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateJsonRules(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/sift.rules.v1.RuleService/UpdateJsonRules', + sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesRequest.SerializeToString, + sift_dot_rules_dot_v1_dot_rules__pb2.UpdateJsonRulesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/gen/sift/rules/v1/rules_pb2_grpc.pyi b/python/gen/sift/rules/v1/rules_pb2_grpc.pyi index 0fc7ef2e..a55b8ffd 100644 --- a/python/gen/sift/rules/v1/rules_pb2_grpc.pyi +++ b/python/gen/sift/rules/v1/rules_pb2_grpc.pyi @@ -72,12 +72,30 @@ class RuleServiceStub: sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesRequest, sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesResponse, ] + """Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset.""" + + ViewJsonRules: grpc.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.ViewJsonRulesRequest, + sift.rules.v1.rules_pb2.ViewJsonRulesResponse, + ] """Retrieve a JSON object containing all of the rules for a given asset.""" UpdateHumanFriendlyRules: grpc.UnaryUnaryMultiCallable[ sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesRequest, sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesResponse, ] + """Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules.""" + + ValidateJsonRules: grpc.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.ValidateJsonRulesRequest, + sift.rules.v1.rules_pb2.ValidateJsonRulesResponse, + ] + """Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation.""" + + UpdateJsonRules: grpc.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.UpdateJsonRulesRequest, + sift.rules.v1.rules_pb2.UpdateJsonRulesResponse, + ] """Batch update rules given the `rules_json` which is a JSON list of rules.""" class RuleServiceAsyncStub: @@ -127,12 +145,30 @@ class RuleServiceAsyncStub: sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesRequest, sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesResponse, ] + """Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset.""" + + ViewJsonRules: grpc.aio.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.ViewJsonRulesRequest, + sift.rules.v1.rules_pb2.ViewJsonRulesResponse, + ] """Retrieve a JSON object containing all of the rules for a given asset.""" UpdateHumanFriendlyRules: grpc.aio.UnaryUnaryMultiCallable[ sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesRequest, sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesResponse, ] + """Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules.""" + + ValidateJsonRules: grpc.aio.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.ValidateJsonRulesRequest, + sift.rules.v1.rules_pb2.ValidateJsonRulesResponse, + ] + """Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation.""" + + UpdateJsonRules: grpc.aio.UnaryUnaryMultiCallable[ + sift.rules.v1.rules_pb2.UpdateJsonRulesRequest, + sift.rules.v1.rules_pb2.UpdateJsonRulesResponse, + ] """Batch update rules given the `rules_json` which is a JSON list of rules.""" class RuleServiceServicer(metaclass=abc.ABCMeta): @@ -198,6 +234,14 @@ class RuleServiceServicer(metaclass=abc.ABCMeta): request: sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesRequest, context: _ServicerContext, ) -> typing.Union[sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesResponse, collections.abc.Awaitable[sift.rules.v1.rules_pb2.ViewHumanFriendlyRulesResponse]]: + """Deprecated - use ViewJsonRules instead. Retrieve a JSON object containing all of the rules for a given asset.""" + + @abc.abstractmethod + def ViewJsonRules( + self, + request: sift.rules.v1.rules_pb2.ViewJsonRulesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.rules.v1.rules_pb2.ViewJsonRulesResponse, collections.abc.Awaitable[sift.rules.v1.rules_pb2.ViewJsonRulesResponse]]: """Retrieve a JSON object containing all of the rules for a given asset.""" @abc.abstractmethod @@ -206,6 +250,22 @@ class RuleServiceServicer(metaclass=abc.ABCMeta): request: sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesRequest, context: _ServicerContext, ) -> typing.Union[sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesResponse, collections.abc.Awaitable[sift.rules.v1.rules_pb2.UpdateHumanFriendlyRulesResponse]]: + """Deprecated - use UpdateJsonRules instead. Batch update rules given the `rules_json` which is a JSON list of rules.""" + + @abc.abstractmethod + def ValidateJsonRules( + self, + request: sift.rules.v1.rules_pb2.ValidateJsonRulesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.rules.v1.rules_pb2.ValidateJsonRulesResponse, collections.abc.Awaitable[sift.rules.v1.rules_pb2.ValidateJsonRulesResponse]]: + """Validate a batch update for rules given the `rules_json` which is a JSON list of rules. This is a dry-run operation.""" + + @abc.abstractmethod + def UpdateJsonRules( + self, + request: sift.rules.v1.rules_pb2.UpdateJsonRulesRequest, + context: _ServicerContext, + ) -> typing.Union[sift.rules.v1.rules_pb2.UpdateJsonRulesResponse, collections.abc.Awaitable[sift.rules.v1.rules_pb2.UpdateJsonRulesResponse]]: """Batch update rules given the `rules_json` which is a JSON list of rules.""" def add_RuleServiceServicer_to_server(servicer: RuleServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... diff --git a/python/gen/sift/runs/v2/runs_pb2.py b/python/gen/sift/runs/v2/runs_pb2.py index 1a5cb740..1c3aae0a 100644 --- a/python/gen/sift/runs/v2/runs_pb2.py +++ b/python/gen/sift/runs/v2/runs_pb2.py @@ -19,14 +19,14 @@ from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/runs/v2/runs.proto\x12\x0csift.runs.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xdf\x04\n\x03Run\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12\x42\n\x0c\x63reated_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x43\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00R\tstartTime\x88\x01\x01\x12\x41\n\tstop_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x01R\x08stopTime\x88\x01\x01\x12 \n\tis_pinned\x18\t \x01(\x08\x42\x03\xe0\x41\x02R\x08isPinned\x12\x17\n\x04name\x18\n \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x17\n\x04tags\x18\x0c \x03(\tB\x03\xe0\x41\x02R\x04tagsB\r\n\x0b_start_timeB\x0c\n\n_stop_time\"+\n\rGetRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\":\n\x0eGetRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"t\n\x0fListRunsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"f\n\x10ListRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x04runs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x97\x02\n\x10\x43reateRunRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x17\n\x04tags\x18\x03 \x03(\tB\x03\xe0\x41\x01R\x04tags\x12>\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\tstartTime\x12<\n\tstop_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x08stopTime\x12,\n\x0forganization_id\x18\x07 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"=\n\x11\x43reateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"~\n\x10UpdateRunRequest\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"=\n\x11UpdateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"q\n-CreateAutomaticRunAssociationForAssetsRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12$\n\x0b\x61sset_names\x18\x02 \x03(\tB\x03\xe0\x41\x02R\nassetNames\"0\n.CreateAutomaticRunAssociationForAssetsResponse\".\n\x10\x44\x65leteRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\"\x13\n\x11\x44\x65leteRunResponse\",\n\x0eStopRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\"\x11\n\x0fStopRunResponse2\xcd\x0c\n\nRunService\x12~\n\x06GetRun\x12\x1b.sift.runs.v2.GetRunRequest\x1a\x1c.sift.runs.v2.GetRunResponse\"9\x92\x41\x19\x12\x06GetRun\x1a\x0fRetrieve a run.\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v2/runs/{run_id}\x12\x95\x01\n\x08ListRuns\x12\x1d.sift.runs.v2.ListRunsRequest\x1a\x1e.sift.runs.v2.ListRunsResponse\"J\x92\x41\x33\x12\x08ListRuns\x1a\'Retrieve runs using an optional filter.\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v2/runs\x12\x82\x01\n\tCreateRun\x12\x1e.sift.runs.v2.CreateRunRequest\x1a\x1f.sift.runs.v2.CreateRunResponse\"4\x92\x41\x1a\x12\tCreateRun\x1a\rCreate a run.\x82\xd3\xe4\x93\x02\x11\"\x0c/api/v2/runs:\x01*\x12\xc7\x01\n\tUpdateRun\x12\x1e.sift.runs.v2.UpdateRunRequest\x1a\x1f.sift.runs.v2.UpdateRunResponse\"y\x92\x41_\x12\tUpdateRun\x1aRUpdates an existing run using using the list of fields specified in `update_mask`.\x82\xd3\xe4\x93\x02\x11\x32\x0c/api/v2/runs:\x01*\x12\xdc\x01\n\tDeleteRun\x12\x1e.sift.runs.v2.DeleteRunRequest\x1a\x1f.sift.runs.v2.DeleteRunResponse\"\x8d\x01\x92\x41m\x12\tDeleteRun\x1a`Permanently delete a given run. In order for a run to be deleted it must have a set `stop_time`.\x82\xd3\xe4\x93\x02\x17*\x15/api/v2/runs/{run_id}\x12\xe6\x01\n\x07StopRun\x12\x1c.sift.runs.v2.StopRunRequest\x1a\x1d.sift.runs.v2.StopRunResponse\"\x9d\x01\x92\x41~\x12\x07StopRun\x1asSet the stop time of a run to the current time. To set the stop time of a run to an arbitrary time see `UpdateRun`.\x82\xd3\xe4\x93\x02\x16\x32\x11/api/v2/runs:stop:\x01*\x12\xcc\x02\n&CreateAutomaticRunAssociationForAssets\x12;.sift.runs.v2.CreateAutomaticRunAssociationForAssetsRequest\x1a<.sift.runs.v2.CreateAutomaticRunAssociationForAssetsResponse\"\xa6\x01\x92\x41W\x12&CreateAutomaticRunAssociationForAssets\x1a-Associates a list of assets with a given run.\x82\xd3\xe4\x93\x02\x46\"A/api/v2/runs/{run_id}:create-automatic-run-association-for-assets:\x01*\x1a\xc0\x01\x92\x41\xbc\x01\x12@Service to programmatically interact with [runs](/glossary#run).\x1ax\n\x1eRead more about what runs are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265454053B\x81\x01\n\x10\x63om.sift.runs.v2B\tRunsProtoP\x01\xa2\x02\x03SRX\xaa\x02\x0cSift.Runs.V2\xca\x02\x0cSift\\Runs\\V2\xe2\x02\x18Sift\\Runs\\V2\\GPBMetadata\xea\x02\x0eSift::Runs::V2\x92\x41\x0f\x12\r\n\x0bRun serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/runs/v2/runs.proto\x12\x0csift.runs.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xdf\x04\n\x03Run\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12\x42\n\x0c\x63reated_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDate\x12\x30\n\x12\x63reated_by_user_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12,\n\x0forganization_id\x18\x06 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x43\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x00R\tstartTime\x88\x01\x01\x12\x41\n\tstop_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01H\x01R\x08stopTime\x88\x01\x01\x12 \n\tis_pinned\x18\t \x01(\x08\x42\x03\xe0\x41\x02R\x08isPinned\x12\x17\n\x04name\x18\n \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x0b \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x17\n\x04tags\x18\x0c \x03(\tB\x03\xe0\x41\x02R\x04tagsB\r\n\x0b_start_timeB\x0c\n\n_stop_time\"+\n\rGetRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\":\n\x0eGetRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"t\n\x0fListRunsRequest\x12 \n\tpage_size\x18\x01 \x01(\rB\x03\xe0\x41\x01R\x08pageSize\x12\"\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01R\tpageToken\x12\x1b\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01R\x06\x66ilter\"f\n\x10ListRunsResponse\x12*\n\x04runs\x18\x01 \x03(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x04runs\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x97\x02\n\x10\x43reateRunRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x04name\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x0b\x64\x65scription\x12\x17\n\x04tags\x18\x03 \x03(\tB\x03\xe0\x41\x01R\x04tags\x12>\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\tstartTime\x12<\n\tstop_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01R\x08stopTime\x12,\n\x0forganization_id\x18\x07 \x01(\tB\x03\xe0\x41\x01R\x0eorganizationId\"=\n\x11\x43reateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"~\n\x10UpdateRunRequest\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\x12@\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02R\nupdateMask\"=\n\x11UpdateRunResponse\x12(\n\x03run\x18\x01 \x01(\x0b\x32\x11.sift.runs.v2.RunB\x03\xe0\x41\x02R\x03run\"q\n-CreateAutomaticRunAssociationForAssetsRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\x12$\n\x0b\x61sset_names\x18\x02 \x03(\tB\x03\xe0\x41\x02R\nassetNames\"0\n.CreateAutomaticRunAssociationForAssetsResponse\".\n\x10\x44\x65leteRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\"\x13\n\x11\x44\x65leteRunResponse\",\n\x0eStopRunRequest\x12\x1a\n\x06run_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05runId\"\x11\n\x0fStopRunResponse2\xcd\x0c\n\nRunService\x12~\n\x06GetRun\x12\x1b.sift.runs.v2.GetRunRequest\x1a\x1c.sift.runs.v2.GetRunResponse\"9\x92\x41\x19\x12\x06GetRun\x1a\x0fRetrieve a run.\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v2/runs/{run_id}\x12\x95\x01\n\x08ListRuns\x12\x1d.sift.runs.v2.ListRunsRequest\x1a\x1e.sift.runs.v2.ListRunsResponse\"J\x92\x41\x33\x12\x08ListRuns\x1a\'Retrieve runs using an optional filter.\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v2/runs\x12\x82\x01\n\tCreateRun\x12\x1e.sift.runs.v2.CreateRunRequest\x1a\x1f.sift.runs.v2.CreateRunResponse\"4\x92\x41\x1a\x12\tCreateRun\x1a\rCreate a run.\x82\xd3\xe4\x93\x02\x11\"\x0c/api/v2/runs:\x01*\x12\xc7\x01\n\tUpdateRun\x12\x1e.sift.runs.v2.UpdateRunRequest\x1a\x1f.sift.runs.v2.UpdateRunResponse\"y\x92\x41_\x12\tUpdateRun\x1aRUpdates an existing run using using the list of fields specified in `update_mask`.\x82\xd3\xe4\x93\x02\x11\x32\x0c/api/v2/runs:\x01*\x12\xdc\x01\n\tDeleteRun\x12\x1e.sift.runs.v2.DeleteRunRequest\x1a\x1f.sift.runs.v2.DeleteRunResponse\"\x8d\x01\x92\x41m\x12\tDeleteRun\x1a`Permanently delete a given run. In order for a run to be deleted it must have a set `stop_time`.\x82\xd3\xe4\x93\x02\x17*\x15/api/v2/runs/{run_id}\x12\xe6\x01\n\x07StopRun\x12\x1c.sift.runs.v2.StopRunRequest\x1a\x1d.sift.runs.v2.StopRunResponse\"\x9d\x01\x92\x41~\x12\x07StopRun\x1asSet the stop time of a run to the current time. To set the stop time of a run to an arbitrary time see `UpdateRun`.\x82\xd3\xe4\x93\x02\x16\x32\x11/api/v2/runs:stop:\x01*\x12\xcc\x02\n&CreateAutomaticRunAssociationForAssets\x12;.sift.runs.v2.CreateAutomaticRunAssociationForAssetsRequest\x1a<.sift.runs.v2.CreateAutomaticRunAssociationForAssetsResponse\"\xa6\x01\x92\x41W\x12&CreateAutomaticRunAssociationForAssets\x1a-Associates a list of assets with a given run.\x82\xd3\xe4\x93\x02\x46\"A/api/v2/runs/{run_id}:create-automatic-run-association-for-assets:\x01*\x1a\xc0\x01\x92\x41\xbc\x01\x12@Service to programmatically interact with [runs](/glossary#run).\x1ax\n\x1eRead more about what runs are.\x12Vhttps://customer.support.siftstack.com/servicedesk/customer/portal/2/article/265454053B\xae\x01\n\x10\x63om.sift.runs.v2B\tRunsProtoP\x01Z+azimuth/gen/protos/go/sift/runs/v2;runsv2pb\xa2\x02\x03SRX\xaa\x02\x0cSift.Runs.V2\xca\x02\x0cSift\\Runs\\V2\xe2\x02\x18Sift\\Runs\\V2\\GPBMetadata\xea\x02\x0eSift::Runs::V2\x92\x41\x0f\x12\r\n\x0bRun serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.runs.v2.runs_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.runs.v2B\tRunsProtoP\001\242\002\003SRX\252\002\014Sift.Runs.V2\312\002\014Sift\\Runs\\V2\342\002\030Sift\\Runs\\V2\\GPBMetadata\352\002\016Sift::Runs::V2\222A\017\022\r\n\013Run service' + _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.runs.v2B\tRunsProtoP\001Z+azimuth/gen/protos/go/sift/runs/v2;runsv2pb\242\002\003SRX\252\002\014Sift.Runs.V2\312\002\014Sift\\Runs\\V2\342\002\030Sift\\Runs\\V2\\GPBMetadata\352\002\016Sift::Runs::V2\222A\017\022\r\n\013Run service' _globals['_RUN'].fields_by_name['run_id']._loaded_options = None _globals['_RUN'].fields_by_name['run_id']._serialized_options = b'\340A\002' _globals['_RUN'].fields_by_name['created_date']._loaded_options = None diff --git a/python/gen/sift/tags/v1/tags_pb2.py b/python/gen/sift/tags/v1/tags_pb2.py index 03d6383d..d8916e84 100644 --- a/python/gen/sift/tags/v1/tags_pb2.py +++ b/python/gen/sift/tags/v1/tags_pb2.py @@ -16,14 +16,14 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/tags/v1/tags.proto\x12\x0csift.tags.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd8\x02\n\x03Tag\x12\x1a\n\x06tag_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05tagId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x30\n\x12\x63reated_by_user_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x42\n\x0c\x63reated_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDateBo\n\x10\x63om.sift.tags.v1B\tTagsProtoP\x01\xa2\x02\x03STX\xaa\x02\x0cSift.Tags.V1\xca\x02\x0cSift\\Tags\\V1\xe2\x02\x18Sift\\Tags\\V1\\GPBMetadata\xea\x02\x0eSift::Tags::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17sift/tags/v1/tags.proto\x12\x0csift.tags.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd8\x02\n\x03Tag\x12\x1a\n\x06tag_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x05tagId\x12\x17\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x02R\x04name\x12,\n\x0forganization_id\x18\x03 \x01(\tB\x03\xe0\x41\x02R\x0eorganizationId\x12\x30\n\x12\x63reated_by_user_id\x18\x04 \x01(\tB\x03\xe0\x41\x02R\x0f\x63reatedByUserId\x12\x32\n\x13modified_by_user_id\x18\x05 \x01(\tB\x03\xe0\x41\x02R\x10modifiedByUserId\x12\x42\n\x0c\x63reated_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0b\x63reatedDate\x12\x44\n\rmodified_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02R\x0cmodifiedDateB\x9c\x01\n\x10\x63om.sift.tags.v1B\tTagsProtoP\x01Z+azimuth/gen/protos/go/sift/tags/v1;tagsv1pb\xa2\x02\x03STX\xaa\x02\x0cSift.Tags.V1\xca\x02\x0cSift\\Tags\\V1\xe2\x02\x18Sift\\Tags\\V1\\GPBMetadata\xea\x02\x0eSift::Tags::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.tags.v1.tags_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.tags.v1B\tTagsProtoP\001\242\002\003STX\252\002\014Sift.Tags.V1\312\002\014Sift\\Tags\\V1\342\002\030Sift\\Tags\\V1\\GPBMetadata\352\002\016Sift::Tags::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\020com.sift.tags.v1B\tTagsProtoP\001Z+azimuth/gen/protos/go/sift/tags/v1;tagsv1pb\242\002\003STX\252\002\014Sift.Tags.V1\312\002\014Sift\\Tags\\V1\342\002\030Sift\\Tags\\V1\\GPBMetadata\352\002\016Sift::Tags::V1' _globals['_TAG'].fields_by_name['tag_id']._loaded_options = None _globals['_TAG'].fields_by_name['tag_id']._serialized_options = b'\340A\002' _globals['_TAG'].fields_by_name['name']._loaded_options = None diff --git a/python/gen/sift/users/v2/users_pb2.py b/python/gen/sift/users/v2/users_pb2.py index d84665f2..d1570b06 100644 --- a/python/gen/sift/users/v2/users_pb2.py +++ b/python/gen/sift/users/v2/users_pb2.py @@ -18,14 +18,14 @@ from sift.common.type.v1 import user_pb2 as sift_dot_common_dot_type_dot_v1_dot_user__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19sift/users/v2/users.proto\x12\rsift.users.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1esift/common/type/v1/user.proto\"\x7f\n#UpdateUserOrganizationActiveRequest\x12\x17\n\x07user_id\x18\x01 \x01(\tR\x06userId\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x16\n\x06\x61\x63tive\x18\x03 \x01(\x08R\x06\x61\x63tive\"&\n$UpdateUserOrganizationActiveResponse\".\n\x0eGetUserRequest\x12\x1c\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06userId\"@\n\x0fGetUserResponse\x12-\n\x04user\x18\x01 \x01(\x0b\x32\x19.sift.common.type.v1.UserR\x04user2\xf6\x03\n\x0bUserService\x12\x96\x02\n\x1cUpdateUserOrganizationActive\x12\x32.sift.users.v2.UpdateUserOrganizationActiveRequest\x1a\x33.sift.users.v2.UpdateUserOrganizationActiveResponse\"\x8c\x01\x92\x41`\x12\x1cUpdateUserOrganizationActive\x1a@Used to toggle a user\'s active status within their organization.\x82\xd3\xe4\x93\x02#\"\x1e/api/v2/users/{user_id}/active:\x01*\x12\x8f\x01\n\x07GetUser\x12\x1d.sift.users.v2.GetUserRequest\x1a\x1e.sift.users.v2.GetUserResponse\"E\x92\x41#\x12\x07GetUser\x1a\x18Retrieves a user object.\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v2/users/{user_id}\x1a<\x92\x41\x39\x12\x37Service to programmatically interact with user objects.B\x88\x01\n\x11\x63om.sift.users.v2B\nUsersProtoP\x01\xa2\x02\x03SUX\xaa\x02\rSift.Users.V2\xca\x02\rSift\\Users\\V2\xe2\x02\x19Sift\\Users\\V2\\GPBMetadata\xea\x02\x0fSift::Users::V2\x92\x41\x10\x12\x0e\n\x0cUser Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19sift/users/v2/users.proto\x12\rsift.users.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1esift/common/type/v1/user.proto\"\x7f\n#UpdateUserOrganizationActiveRequest\x12\x17\n\x07user_id\x18\x01 \x01(\tR\x06userId\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x16\n\x06\x61\x63tive\x18\x03 \x01(\x08R\x06\x61\x63tive\"&\n$UpdateUserOrganizationActiveResponse\".\n\x0eGetUserRequest\x12\x1c\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02R\x06userId\"@\n\x0fGetUserResponse\x12-\n\x04user\x18\x01 \x01(\x0b\x32\x19.sift.common.type.v1.UserR\x04user2\xf6\x03\n\x0bUserService\x12\x96\x02\n\x1cUpdateUserOrganizationActive\x12\x32.sift.users.v2.UpdateUserOrganizationActiveRequest\x1a\x33.sift.users.v2.UpdateUserOrganizationActiveResponse\"\x8c\x01\x92\x41`\x12\x1cUpdateUserOrganizationActive\x1a@Used to toggle a user\'s active status within their organization.\x82\xd3\xe4\x93\x02#\"\x1e/api/v2/users/{user_id}/active:\x01*\x12\x8f\x01\n\x07GetUser\x12\x1d.sift.users.v2.GetUserRequest\x1a\x1e.sift.users.v2.GetUserResponse\"E\x92\x41#\x12\x07GetUser\x1a\x18Retrieves a user object.\x82\xd3\xe4\x93\x02\x19\x12\x17/api/v2/users/{user_id}\x1a<\x92\x41\x39\x12\x37Service to programmatically interact with user objects.B\xb7\x01\n\x11\x63om.sift.users.v2B\nUsersProtoP\x01Z-azimuth/gen/protos/go/sift/users/v2;usersv2pb\xa2\x02\x03SUX\xaa\x02\rSift.Users.V2\xca\x02\rSift\\Users\\V2\xe2\x02\x19Sift\\Users\\V2\\GPBMetadata\xea\x02\x0fSift::Users::V2\x92\x41\x10\x12\x0e\n\x0cUser Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'sift.users.v2.users_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021com.sift.users.v2B\nUsersProtoP\001\242\002\003SUX\252\002\rSift.Users.V2\312\002\rSift\\Users\\V2\342\002\031Sift\\Users\\V2\\GPBMetadata\352\002\017Sift::Users::V2\222A\020\022\016\n\014User Service' + _globals['DESCRIPTOR']._serialized_options = b'\n\021com.sift.users.v2B\nUsersProtoP\001Z-azimuth/gen/protos/go/sift/users/v2;usersv2pb\242\002\003SUX\252\002\rSift.Users.V2\312\002\rSift\\Users\\V2\342\002\031Sift\\Users\\V2\\GPBMetadata\352\002\017Sift::Users::V2\222A\020\022\016\n\014User Service' _globals['_GETUSERREQUEST'].fields_by_name['user_id']._loaded_options = None _globals['_GETUSERREQUEST'].fields_by_name['user_id']._serialized_options = b'\340A\002' _globals['_USERSERVICE']._loaded_options = None diff --git a/rust/src/gen/sift.calculated_channels.v1.rs b/rust/src/gen/sift.calculated_channels.v1.rs index 739bf58a..d0bfa40b 100644 --- a/rust/src/gen/sift.calculated_channels.v1.rs +++ b/rust/src/gen/sift.calculated_channels.v1.rs @@ -1,12 +1,23 @@ // @generated #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpressionChannelReference { + #[prost(string, tag="1")] + pub channel_reference: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub channel_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct ExpressionRequest { /// A map from the channel reference in the expression string (e.g. $1) to the channel id (uuid). + /// This is deprecated and should be passed in expression_channel_references instead. #[prost(map="string, string", tag="1")] pub channel_references: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, #[prost(string, tag="2")] pub expression: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub expression_channel_references: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/rust/src/gen/sift.calculated_channels.v1.serde.rs b/rust/src/gen/sift.calculated_channels.v1.serde.rs index 8b1870c0..99fe7797 100644 --- a/rust/src/gen/sift.calculated_channels.v1.serde.rs +++ b/rust/src/gen/sift.calculated_channels.v1.serde.rs @@ -91,6 +91,116 @@ impl<'de> serde::Deserialize<'de> for ErrorValidatingExpressionResult { deserializer.deserialize_struct("sift.calculated_channels.v1.ErrorValidatingExpressionResult", FIELDS, GeneratedVisitor) } } +impl serde::Serialize for ExpressionChannelReference { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.channel_reference.is_empty() { + len += 1; + } + if !self.channel_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.calculated_channels.v1.ExpressionChannelReference", len)?; + if !self.channel_reference.is_empty() { + struct_ser.serialize_field("channelReference", &self.channel_reference)?; + } + if !self.channel_id.is_empty() { + struct_ser.serialize_field("channelId", &self.channel_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ExpressionChannelReference { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "channel_reference", + "channelReference", + "channel_id", + "channelId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + ChannelReference, + ChannelId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "channelReference" | "channel_reference" => Ok(GeneratedField::ChannelReference), + "channelId" | "channel_id" => Ok(GeneratedField::ChannelId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ExpressionChannelReference; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.calculated_channels.v1.ExpressionChannelReference") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut channel_reference__ = None; + let mut channel_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::ChannelReference => { + if channel_reference__.is_some() { + return Err(serde::de::Error::duplicate_field("channelReference")); + } + channel_reference__ = Some(map_.next_value()?); + } + GeneratedField::ChannelId => { + if channel_id__.is_some() { + return Err(serde::de::Error::duplicate_field("channelId")); + } + channel_id__ = Some(map_.next_value()?); + } + } + } + Ok(ExpressionChannelReference { + channel_reference: channel_reference__.unwrap_or_default(), + channel_id: channel_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.calculated_channels.v1.ExpressionChannelReference", FIELDS, GeneratedVisitor) + } +} impl serde::Serialize for ExpressionIdentifier { #[allow(deprecated)] fn serialize(&self, serializer: S) -> std::result::Result @@ -398,6 +508,9 @@ impl serde::Serialize for ExpressionRequest { if !self.expression.is_empty() { len += 1; } + if !self.expression_channel_references.is_empty() { + len += 1; + } let mut struct_ser = serializer.serialize_struct("sift.calculated_channels.v1.ExpressionRequest", len)?; if !self.channel_references.is_empty() { struct_ser.serialize_field("channelReferences", &self.channel_references)?; @@ -405,6 +518,9 @@ impl serde::Serialize for ExpressionRequest { if !self.expression.is_empty() { struct_ser.serialize_field("expression", &self.expression)?; } + if !self.expression_channel_references.is_empty() { + struct_ser.serialize_field("expressionChannelReferences", &self.expression_channel_references)?; + } struct_ser.end() } } @@ -418,12 +534,15 @@ impl<'de> serde::Deserialize<'de> for ExpressionRequest { "channel_references", "channelReferences", "expression", + "expression_channel_references", + "expressionChannelReferences", ]; #[allow(clippy::enum_variant_names)] enum GeneratedField { ChannelReferences, Expression, + ExpressionChannelReferences, } impl<'de> serde::Deserialize<'de> for GeneratedField { fn deserialize(deserializer: D) -> std::result::Result @@ -447,6 +566,7 @@ impl<'de> serde::Deserialize<'de> for ExpressionRequest { match value { "channelReferences" | "channel_references" => Ok(GeneratedField::ChannelReferences), "expression" => Ok(GeneratedField::Expression), + "expressionChannelReferences" | "expression_channel_references" => Ok(GeneratedField::ExpressionChannelReferences), _ => Err(serde::de::Error::unknown_field(value, FIELDS)), } } @@ -468,6 +588,7 @@ impl<'de> serde::Deserialize<'de> for ExpressionRequest { { let mut channel_references__ = None; let mut expression__ = None; + let mut expression_channel_references__ = None; while let Some(k) = map_.next_key()? { match k { GeneratedField::ChannelReferences => { @@ -484,11 +605,18 @@ impl<'de> serde::Deserialize<'de> for ExpressionRequest { } expression__ = Some(map_.next_value()?); } + GeneratedField::ExpressionChannelReferences => { + if expression_channel_references__.is_some() { + return Err(serde::de::Error::duplicate_field("expressionChannelReferences")); + } + expression_channel_references__ = Some(map_.next_value()?); + } } } Ok(ExpressionRequest { channel_references: channel_references__.unwrap_or_default(), expression: expression__.unwrap_or_default(), + expression_channel_references: expression_channel_references__.unwrap_or_default(), }) } } diff --git a/rust/src/gen/sift.rules.v1.rs b/rust/src/gen/sift.rules.v1.rs index 6faa50e4..8ce236f2 100644 --- a/rust/src/gen/sift.rules.v1.rs +++ b/rust/src/gen/sift.rules.v1.rs @@ -197,18 +197,21 @@ pub struct DeleteRuleRequest { #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteRuleResponse { } +/// Deprecated - use ViewJsonRulesRequest. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ViewHumanFriendlyRulesRequest { #[prost(string, tag="1")] pub asset_id: ::prost::alloc::string::String, } +/// Deprecated - use ViewJsonRulesResponse. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ViewHumanFriendlyRulesResponse { #[prost(string, tag="1")] pub rules_json: ::prost::alloc::string::String, } +/// Deprecated - use UpdateJsonRulesRequest. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateHumanFriendlyRulesRequest { @@ -219,6 +222,7 @@ pub struct UpdateHumanFriendlyRulesRequest { #[prost(string, tag="3")] pub organization_id: ::prost::alloc::string::String, } +/// Deprecated - use UpdateJsonRulesResponse. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct UpdateHumanFriendlyRulesResponse { @@ -231,6 +235,68 @@ pub struct UpdateHumanFriendlyRulesResponse { } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] +pub struct ViewJsonRulesRequest { + #[prost(string, tag="1")] + pub asset_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ViewJsonRulesResponse { + #[prost(string, tag="1")] + pub rules_json: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct JsonRulesRequest { + #[prost(string, tag="1")] + pub asset_id: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub rules_json: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub organization_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct JsonRulesResponse { + #[prost(bool, tag="1")] + pub success: bool, + #[prost(int32, tag="2")] + pub total_rules_count: i32, + #[prost(int32, tag="3")] + pub rules_created_count: i32, + #[prost(int32, tag="4")] + pub rules_updated_count: i32, + #[prost(int32, tag="5")] + pub rules_deleted_count: i32, + #[prost(string, optional, tag="6")] + pub error_messages: ::core::option::Option<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ValidateJsonRulesRequest { + #[prost(message, optional, tag="1")] + pub request: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ValidateJsonRulesResponse { + #[prost(message, optional, tag="1")] + pub response: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateJsonRulesRequest { + #[prost(message, optional, tag="1")] + pub request: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateJsonRulesResponse { + #[prost(message, optional, tag="1")] + pub response: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct RuleConditionExpression { #[prost(oneof="rule_condition_expression::Expression", tags="1, 2")] pub expression: ::core::option::Option, diff --git a/rust/src/gen/sift.rules.v1.serde.rs b/rust/src/gen/sift.rules.v1.serde.rs index 6dd3966a..b2c4ba08 100644 --- a/rust/src/gen/sift.rules.v1.serde.rs +++ b/rust/src/gen/sift.rules.v1.serde.rs @@ -1552,6 +1552,323 @@ impl<'de> serde::Deserialize<'de> for GetRuleResponse { deserializer.deserialize_struct("sift.rules.v1.GetRuleResponse", FIELDS, GeneratedVisitor) } } +impl serde::Serialize for JsonRulesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.asset_id.is_empty() { + len += 1; + } + if !self.rules_json.is_empty() { + len += 1; + } + if !self.organization_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.JsonRulesRequest", len)?; + if !self.asset_id.is_empty() { + struct_ser.serialize_field("assetId", &self.asset_id)?; + } + if !self.rules_json.is_empty() { + struct_ser.serialize_field("rulesJson", &self.rules_json)?; + } + if !self.organization_id.is_empty() { + struct_ser.serialize_field("organizationId", &self.organization_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for JsonRulesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "asset_id", + "assetId", + "rules_json", + "rulesJson", + "organization_id", + "organizationId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + AssetId, + RulesJson, + OrganizationId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "assetId" | "asset_id" => Ok(GeneratedField::AssetId), + "rulesJson" | "rules_json" => Ok(GeneratedField::RulesJson), + "organizationId" | "organization_id" => Ok(GeneratedField::OrganizationId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = JsonRulesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.JsonRulesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut asset_id__ = None; + let mut rules_json__ = None; + let mut organization_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::AssetId => { + if asset_id__.is_some() { + return Err(serde::de::Error::duplicate_field("assetId")); + } + asset_id__ = Some(map_.next_value()?); + } + GeneratedField::RulesJson => { + if rules_json__.is_some() { + return Err(serde::de::Error::duplicate_field("rulesJson")); + } + rules_json__ = Some(map_.next_value()?); + } + GeneratedField::OrganizationId => { + if organization_id__.is_some() { + return Err(serde::de::Error::duplicate_field("organizationId")); + } + organization_id__ = Some(map_.next_value()?); + } + } + } + Ok(JsonRulesRequest { + asset_id: asset_id__.unwrap_or_default(), + rules_json: rules_json__.unwrap_or_default(), + organization_id: organization_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.JsonRulesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for JsonRulesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.success { + len += 1; + } + if self.total_rules_count != 0 { + len += 1; + } + if self.rules_created_count != 0 { + len += 1; + } + if self.rules_updated_count != 0 { + len += 1; + } + if self.rules_deleted_count != 0 { + len += 1; + } + if self.error_messages.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.JsonRulesResponse", len)?; + if self.success { + struct_ser.serialize_field("success", &self.success)?; + } + if self.total_rules_count != 0 { + struct_ser.serialize_field("totalRulesCount", &self.total_rules_count)?; + } + if self.rules_created_count != 0 { + struct_ser.serialize_field("rulesCreatedCount", &self.rules_created_count)?; + } + if self.rules_updated_count != 0 { + struct_ser.serialize_field("rulesUpdatedCount", &self.rules_updated_count)?; + } + if self.rules_deleted_count != 0 { + struct_ser.serialize_field("rulesDeletedCount", &self.rules_deleted_count)?; + } + if let Some(v) = self.error_messages.as_ref() { + struct_ser.serialize_field("errorMessages", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for JsonRulesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "success", + "total_rules_count", + "totalRulesCount", + "rules_created_count", + "rulesCreatedCount", + "rules_updated_count", + "rulesUpdatedCount", + "rules_deleted_count", + "rulesDeletedCount", + "error_messages", + "errorMessages", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Success, + TotalRulesCount, + RulesCreatedCount, + RulesUpdatedCount, + RulesDeletedCount, + ErrorMessages, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "success" => Ok(GeneratedField::Success), + "totalRulesCount" | "total_rules_count" => Ok(GeneratedField::TotalRulesCount), + "rulesCreatedCount" | "rules_created_count" => Ok(GeneratedField::RulesCreatedCount), + "rulesUpdatedCount" | "rules_updated_count" => Ok(GeneratedField::RulesUpdatedCount), + "rulesDeletedCount" | "rules_deleted_count" => Ok(GeneratedField::RulesDeletedCount), + "errorMessages" | "error_messages" => Ok(GeneratedField::ErrorMessages), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = JsonRulesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.JsonRulesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut success__ = None; + let mut total_rules_count__ = None; + let mut rules_created_count__ = None; + let mut rules_updated_count__ = None; + let mut rules_deleted_count__ = None; + let mut error_messages__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Success => { + if success__.is_some() { + return Err(serde::de::Error::duplicate_field("success")); + } + success__ = Some(map_.next_value()?); + } + GeneratedField::TotalRulesCount => { + if total_rules_count__.is_some() { + return Err(serde::de::Error::duplicate_field("totalRulesCount")); + } + total_rules_count__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::RulesCreatedCount => { + if rules_created_count__.is_some() { + return Err(serde::de::Error::duplicate_field("rulesCreatedCount")); + } + rules_created_count__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::RulesUpdatedCount => { + if rules_updated_count__.is_some() { + return Err(serde::de::Error::duplicate_field("rulesUpdatedCount")); + } + rules_updated_count__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::RulesDeletedCount => { + if rules_deleted_count__.is_some() { + return Err(serde::de::Error::duplicate_field("rulesDeletedCount")); + } + rules_deleted_count__ = + Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0) + ; + } + GeneratedField::ErrorMessages => { + if error_messages__.is_some() { + return Err(serde::de::Error::duplicate_field("errorMessages")); + } + error_messages__ = map_.next_value()?; + } + } + } + Ok(JsonRulesResponse { + success: success__.unwrap_or_default(), + total_rules_count: total_rules_count__.unwrap_or_default(), + rules_created_count: rules_created_count__.unwrap_or_default(), + rules_updated_count: rules_updated_count__.unwrap_or_default(), + rules_deleted_count: rules_deleted_count__.unwrap_or_default(), + error_messages: error_messages__, + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.JsonRulesResponse", FIELDS, GeneratedVisitor) + } +} impl serde::Serialize for LastValueThreshold { #[allow(deprecated)] fn serialize(&self, serializer: S) -> std::result::Result @@ -3910,7 +4227,7 @@ impl<'de> serde::Deserialize<'de> for UpdateHumanFriendlyRulesResponse { deserializer.deserialize_struct("sift.rules.v1.UpdateHumanFriendlyRulesResponse", FIELDS, GeneratedVisitor) } } -impl serde::Serialize for UpdateRuleRequest { +impl serde::Serialize for UpdateJsonRulesRequest { #[allow(deprecated)] fn serialize(&self, serializer: S) -> std::result::Result where @@ -3918,16 +4235,198 @@ impl serde::Serialize for UpdateRuleRequest { { use serde::ser::SerializeStruct; let mut len = 0; - if self.rule_id.is_some() { + if self.request.is_some() { len += 1; } - if !self.name.is_empty() { - len += 1; + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.UpdateJsonRulesRequest", len)?; + if let Some(v) = self.request.as_ref() { + struct_ser.serialize_field("request", v)?; } - if !self.description.is_empty() { - len += 1; + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateJsonRulesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "request", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Request, } - if !self.asset_id.is_empty() { + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "request" => Ok(GeneratedField::Request), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateJsonRulesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.UpdateJsonRulesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut request__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Request => { + if request__.is_some() { + return Err(serde::de::Error::duplicate_field("request")); + } + request__ = map_.next_value()?; + } + } + } + Ok(UpdateJsonRulesRequest { + request: request__, + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.UpdateJsonRulesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateJsonRulesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.response.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.UpdateJsonRulesResponse", len)?; + if let Some(v) = self.response.as_ref() { + struct_ser.serialize_field("response", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for UpdateJsonRulesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "response", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Response, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "response" => Ok(GeneratedField::Response), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = UpdateJsonRulesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.UpdateJsonRulesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut response__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Response => { + if response__.is_some() { + return Err(serde::de::Error::duplicate_field("response")); + } + response__ = map_.next_value()?; + } + } + } + Ok(UpdateJsonRulesResponse { + response: response__, + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.UpdateJsonRulesResponse", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for UpdateRuleRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.rule_id.is_some() { + len += 1; + } + if !self.name.is_empty() { + len += 1; + } + if !self.description.is_empty() { + len += 1; + } + if !self.asset_id.is_empty() { len += 1; } if self.is_enabled { @@ -4199,6 +4698,188 @@ impl<'de> serde::Deserialize<'de> for UpdateRuleResponse { deserializer.deserialize_struct("sift.rules.v1.UpdateRuleResponse", FIELDS, GeneratedVisitor) } } +impl serde::Serialize for ValidateJsonRulesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.request.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.ValidateJsonRulesRequest", len)?; + if let Some(v) = self.request.as_ref() { + struct_ser.serialize_field("request", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ValidateJsonRulesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "request", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Request, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "request" => Ok(GeneratedField::Request), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ValidateJsonRulesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.ValidateJsonRulesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut request__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Request => { + if request__.is_some() { + return Err(serde::de::Error::duplicate_field("request")); + } + request__ = map_.next_value()?; + } + } + } + Ok(ValidateJsonRulesRequest { + request: request__, + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.ValidateJsonRulesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ValidateJsonRulesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if self.response.is_some() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.ValidateJsonRulesResponse", len)?; + if let Some(v) = self.response.as_ref() { + struct_ser.serialize_field("response", v)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ValidateJsonRulesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "response", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + Response, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "response" => Ok(GeneratedField::Response), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ValidateJsonRulesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.ValidateJsonRulesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut response__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::Response => { + if response__.is_some() { + return Err(serde::de::Error::duplicate_field("response")); + } + response__ = map_.next_value()?; + } + } + } + Ok(ValidateJsonRulesResponse { + response: response__, + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.ValidateJsonRulesResponse", FIELDS, GeneratedVisitor) + } +} impl serde::Serialize for ViewHumanFriendlyRulesRequest { #[allow(deprecated)] fn serialize(&self, serializer: S) -> std::result::Result @@ -4383,3 +5064,187 @@ impl<'de> serde::Deserialize<'de> for ViewHumanFriendlyRulesResponse { deserializer.deserialize_struct("sift.rules.v1.ViewHumanFriendlyRulesResponse", FIELDS, GeneratedVisitor) } } +impl serde::Serialize for ViewJsonRulesRequest { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.asset_id.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.ViewJsonRulesRequest", len)?; + if !self.asset_id.is_empty() { + struct_ser.serialize_field("assetId", &self.asset_id)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ViewJsonRulesRequest { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "asset_id", + "assetId", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + AssetId, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "assetId" | "asset_id" => Ok(GeneratedField::AssetId), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ViewJsonRulesRequest; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.ViewJsonRulesRequest") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut asset_id__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::AssetId => { + if asset_id__.is_some() { + return Err(serde::de::Error::duplicate_field("assetId")); + } + asset_id__ = Some(map_.next_value()?); + } + } + } + Ok(ViewJsonRulesRequest { + asset_id: asset_id__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.ViewJsonRulesRequest", FIELDS, GeneratedVisitor) + } +} +impl serde::Serialize for ViewJsonRulesResponse { + #[allow(deprecated)] + fn serialize(&self, serializer: S) -> std::result::Result + where + S: serde::Serializer, + { + use serde::ser::SerializeStruct; + let mut len = 0; + if !self.rules_json.is_empty() { + len += 1; + } + let mut struct_ser = serializer.serialize_struct("sift.rules.v1.ViewJsonRulesResponse", len)?; + if !self.rules_json.is_empty() { + struct_ser.serialize_field("rulesJson", &self.rules_json)?; + } + struct_ser.end() + } +} +impl<'de> serde::Deserialize<'de> for ViewJsonRulesResponse { + #[allow(deprecated)] + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + const FIELDS: &[&str] = &[ + "rules_json", + "rulesJson", + ]; + + #[allow(clippy::enum_variant_names)] + enum GeneratedField { + RulesJson, + } + impl<'de> serde::Deserialize<'de> for GeneratedField { + fn deserialize(deserializer: D) -> std::result::Result + where + D: serde::Deserializer<'de>, + { + struct GeneratedVisitor; + + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = GeneratedField; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(formatter, "expected one of: {:?}", &FIELDS) + } + + #[allow(unused_variables)] + fn visit_str(self, value: &str) -> std::result::Result + where + E: serde::de::Error, + { + match value { + "rulesJson" | "rules_json" => Ok(GeneratedField::RulesJson), + _ => Err(serde::de::Error::unknown_field(value, FIELDS)), + } + } + } + deserializer.deserialize_identifier(GeneratedVisitor) + } + } + struct GeneratedVisitor; + impl<'de> serde::de::Visitor<'de> for GeneratedVisitor { + type Value = ViewJsonRulesResponse; + + fn expecting(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + formatter.write_str("struct sift.rules.v1.ViewJsonRulesResponse") + } + + fn visit_map(self, mut map_: V) -> std::result::Result + where + V: serde::de::MapAccess<'de>, + { + let mut rules_json__ = None; + while let Some(k) = map_.next_key()? { + match k { + GeneratedField::RulesJson => { + if rules_json__.is_some() { + return Err(serde::de::Error::duplicate_field("rulesJson")); + } + rules_json__ = Some(map_.next_value()?); + } + } + } + Ok(ViewJsonRulesResponse { + rules_json: rules_json__.unwrap_or_default(), + }) + } + } + deserializer.deserialize_struct("sift.rules.v1.ViewJsonRulesResponse", FIELDS, GeneratedVisitor) + } +} diff --git a/rust/src/gen/sift.rules.v1.tonic.rs b/rust/src/gen/sift.rules.v1.tonic.rs index b5dab028..337925d5 100644 --- a/rust/src/gen/sift.rules.v1.tonic.rs +++ b/rust/src/gen/sift.rules.v1.tonic.rs @@ -289,6 +289,31 @@ pub mod rule_service_client { ); self.inner.unary(req, path, codec).await } + pub async fn view_json_rules( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.rules.v1.RuleService/ViewJsonRules", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert(GrpcMethod::new("sift.rules.v1.RuleService", "ViewJsonRules")); + self.inner.unary(req, path, codec).await + } pub async fn update_human_friendly_rules( &mut self, request: impl tonic::IntoRequest, @@ -319,6 +344,58 @@ pub mod rule_service_client { ); self.inner.unary(req, path, codec).await } + pub async fn validate_json_rules( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.rules.v1.RuleService/ValidateJsonRules", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert( + GrpcMethod::new("sift.rules.v1.RuleService", "ValidateJsonRules"), + ); + self.inner.unary(req, path, codec).await + } + pub async fn update_json_rules( + &mut self, + request: impl tonic::IntoRequest, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + > { + self.inner + .ready() + .await + .map_err(|e| { + tonic::Status::new( + tonic::Code::Unknown, + format!("Service was not ready: {}", e.into()), + ) + })?; + let codec = tonic::codec::ProstCodec::default(); + let path = http::uri::PathAndQuery::from_static( + "/sift.rules.v1.RuleService/UpdateJsonRules", + ); + let mut req = request.into_request(); + req.extensions_mut() + .insert(GrpcMethod::new("sift.rules.v1.RuleService", "UpdateJsonRules")); + self.inner.unary(req, path, codec).await + } } } /// Generated server implementations. @@ -381,6 +458,13 @@ pub mod rule_service_server { tonic::Response, tonic::Status, >; + async fn view_json_rules( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; async fn update_human_friendly_rules( &self, request: tonic::Request, @@ -388,6 +472,20 @@ pub mod rule_service_server { tonic::Response, tonic::Status, >; + async fn validate_json_rules( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; + async fn update_json_rules( + &self, + request: tonic::Request, + ) -> std::result::Result< + tonic::Response, + tonic::Status, + >; } #[derive(Debug)] pub struct RuleServiceServer { @@ -840,6 +938,52 @@ pub mod rule_service_server { }; Box::pin(fut) } + "/sift.rules.v1.RuleService/ViewJsonRules" => { + #[allow(non_camel_case_types)] + struct ViewJsonRulesSvc(pub Arc); + impl< + T: RuleService, + > tonic::server::UnaryService + for ViewJsonRulesSvc { + type Response = super::ViewJsonRulesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::view_json_rules(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ViewJsonRulesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } "/sift.rules.v1.RuleService/UpdateHumanFriendlyRules" => { #[allow(non_camel_case_types)] struct UpdateHumanFriendlyRulesSvc(pub Arc); @@ -892,6 +1036,99 @@ pub mod rule_service_server { }; Box::pin(fut) } + "/sift.rules.v1.RuleService/ValidateJsonRules" => { + #[allow(non_camel_case_types)] + struct ValidateJsonRulesSvc(pub Arc); + impl< + T: RuleService, + > tonic::server::UnaryService + for ValidateJsonRulesSvc { + type Response = super::ValidateJsonRulesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::validate_json_rules(&inner, request) + .await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = ValidateJsonRulesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } + "/sift.rules.v1.RuleService/UpdateJsonRules" => { + #[allow(non_camel_case_types)] + struct UpdateJsonRulesSvc(pub Arc); + impl< + T: RuleService, + > tonic::server::UnaryService + for UpdateJsonRulesSvc { + type Response = super::UpdateJsonRulesResponse; + type Future = BoxFuture< + tonic::Response, + tonic::Status, + >; + fn call( + &mut self, + request: tonic::Request, + ) -> Self::Future { + let inner = Arc::clone(&self.0); + let fut = async move { + ::update_json_rules(&inner, request).await + }; + Box::pin(fut) + } + } + let accept_compression_encodings = self.accept_compression_encodings; + let send_compression_encodings = self.send_compression_encodings; + let max_decoding_message_size = self.max_decoding_message_size; + let max_encoding_message_size = self.max_encoding_message_size; + let inner = self.inner.clone(); + let fut = async move { + let inner = inner.0; + let method = UpdateJsonRulesSvc(inner); + let codec = tonic::codec::ProstCodec::default(); + let mut grpc = tonic::server::Grpc::new(codec) + .apply_compression_config( + accept_compression_encodings, + send_compression_encodings, + ) + .apply_max_message_size_config( + max_decoding_message_size, + max_encoding_message_size, + ); + let res = grpc.unary(method, req).await; + Ok(res) + }; + Box::pin(fut) + } _ => { Box::pin(async move { Ok( diff --git a/rust/src/gen/sift.users.v2.tonic.rs b/rust/src/gen/sift.users.v2.tonic.rs index 94508e60..1445011f 100644 --- a/rust/src/gen/sift.users.v2.tonic.rs +++ b/rust/src/gen/sift.users.v2.tonic.rs @@ -84,6 +84,8 @@ pub mod user_service_client { self.inner = self.inner.max_encoding_message_size(limit); self } + /** Used to toggle a user's active status within their organization. +*/ pub async fn update_user_organization_active( &mut self, request: impl tonic::IntoRequest, @@ -114,6 +116,8 @@ pub mod user_service_client { ); self.inner.unary(req, path, codec).await } + /** Retrieves a user object. +*/ pub async fn get_user( &mut self, request: impl tonic::IntoRequest, @@ -148,6 +152,8 @@ pub mod user_service_server { /// Generated trait containing gRPC methods that should be implemented for use with UserServiceServer. #[async_trait] pub trait UserService: Send + Sync + 'static { + /** Used to toggle a user's active status within their organization. +*/ async fn update_user_organization_active( &self, request: tonic::Request, @@ -155,6 +161,8 @@ pub mod user_service_server { tonic::Response, tonic::Status, >; + /** Retrieves a user object. +*/ async fn get_user( &self, request: tonic::Request,