Documentation ¶
Index ¶
- Variables
- type Os
- func (*Os) Descriptor() ([]byte, []int)deprecated
- func (x *Os) GetPredictedOsFamily() string
- func (x *Os) GetPredictedOsFamilyScore() float64
- func (*Os) ProtoMessage()
- func (x *Os) ProtoReflect() protoreflect.Message
- func (x *Os) Reset()
- func (x *Os) String() string
- func (m *Os) Validate() error
- func (m *Os) ValidateAll() error
- type OsMultiError
- type OsValidationError
Constants ¶
This section is empty.
Variables ¶
var File_signal_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Os ¶
type Os struct { // The predicted OS Family classification generated // against captured network data used to determine // the family of the OS that made the network call PredictedOsFamily string `protobuf:"bytes,1,opt,name=predicted_os_family,json=predictedOsFamily,proto3" json:"predicted_os_family,omitempty"` // The confidence score given to the predicted // OS Family PredictedOsFamilyScore float64 `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
Defines the signals regarding OS classification
func (*Os) Descriptor
deprecated
func (*Os) GetPredictedOsFamily ¶
func (*Os) GetPredictedOsFamilyScore ¶
func (*Os) ProtoMessage ¶
func (*Os) ProtoMessage()
func (*Os) ProtoReflect ¶
func (x *Os) ProtoReflect() protoreflect.Message
func (*Os) Validate ¶
Validate checks the field values on Os with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Os) ValidateAll ¶
ValidateAll checks the field values on Os with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OsMultiError, or nil if none found.
type OsMultiError ¶
type OsMultiError []error
OsMultiError is an error wrapping multiple validation errors returned by Os.ValidateAll() if the designated constraints aren't met.
func (OsMultiError) AllErrors ¶
func (m OsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OsMultiError) Error ¶
func (m OsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OsValidationError ¶
type OsValidationError struct {
// contains filtered or unexported fields
}
OsValidationError is the validation error returned by Os.Validate if the designated constraints aren't met.
func (OsValidationError) Cause ¶
func (e OsValidationError) Cause() error
Cause function returns cause value.
func (OsValidationError) Error ¶
func (e OsValidationError) Error() string
Error satisfies the builtin error interface
func (OsValidationError) ErrorName ¶
func (e OsValidationError) ErrorName() string
ErrorName returns error name.
func (OsValidationError) Field ¶
func (e OsValidationError) Field() string
Field function returns field value.
func (OsValidationError) Key ¶
func (e OsValidationError) Key() bool
Key function returns key value.
func (OsValidationError) Reason ¶
func (e OsValidationError) Reason() string
Reason function returns reason value.