Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetOrigins() []*SurveyOrigin
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Survey
- func (*Survey) Descriptor() ([]byte, []int)deprecated
- func (x *Survey) GetFreeformPrompt() string
- func (x *Survey) GetPrompt() string
- func (x *Survey) GetRatingLabels() []*v1.RatingLabel
- func (*Survey) ProtoMessage()
- func (x *Survey) ProtoReflect() protoreflect.Message
- func (x *Survey) Reset()
- func (x *Survey) String() string
- func (m *Survey) Validate() error
- func (m *Survey) ValidateAll() error
- type SurveyMultiError
- type SurveyOrigin
- func (*SurveyOrigin) Descriptor() ([]byte, []int)deprecated
- func (x *SurveyOrigin) GetOrigin() v1.Origin
- func (x *SurveyOrigin) GetSurvey() *Survey
- func (*SurveyOrigin) ProtoMessage()
- func (x *SurveyOrigin) ProtoReflect() protoreflect.Message
- func (x *SurveyOrigin) Reset()
- func (x *SurveyOrigin) String() string
- func (m *SurveyOrigin) Validate() error
- func (m *SurveyOrigin) ValidateAll() error
- type SurveyOriginMultiError
- type SurveyOriginValidationError
- func (e SurveyOriginValidationError) Cause() error
- func (e SurveyOriginValidationError) Error() string
- func (e SurveyOriginValidationError) ErrorName() string
- func (e SurveyOriginValidationError) Field() string
- func (e SurveyOriginValidationError) Key() bool
- func (e SurveyOriginValidationError) Reason() string
- type SurveyValidationError
Constants ¶
This section is empty.
Variables ¶
var File_config_module_feedback_v1_feedback_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Origins []*SurveyOrigin `protobuf:"bytes,1,rep,name=origins,proto3" json:"origins,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetOrigins ¶
func (x *Config) GetOrigins() []*SurveyOrigin
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config 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 (*Config) ValidateAll ¶
ValidateAll checks the field values on Config 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 ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Survey ¶
type Survey struct { Prompt string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"` FreeformPrompt string `protobuf:"bytes,2,opt,name=freeform_prompt,json=freeformPrompt,proto3" json:"freeform_prompt,omitempty"` RatingLabels []*v1.RatingLabel `protobuf:"bytes,3,rep,name=rating_labels,json=ratingLabels,proto3" json:"rating_labels,omitempty"` // contains filtered or unexported fields }
func (*Survey) Descriptor
deprecated
func (*Survey) GetFreeformPrompt ¶
func (*Survey) GetRatingLabels ¶
func (x *Survey) GetRatingLabels() []*v1.RatingLabel
func (*Survey) ProtoMessage ¶
func (*Survey) ProtoMessage()
func (*Survey) ProtoReflect ¶
func (x *Survey) ProtoReflect() protoreflect.Message
func (*Survey) Validate ¶
Validate checks the field values on Survey 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 (*Survey) ValidateAll ¶
ValidateAll checks the field values on Survey 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 SurveyMultiError, or nil if none found.
type SurveyMultiError ¶
type SurveyMultiError []error
SurveyMultiError is an error wrapping multiple validation errors returned by Survey.ValidateAll() if the designated constraints aren't met.
func (SurveyMultiError) AllErrors ¶
func (m SurveyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SurveyMultiError) Error ¶
func (m SurveyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SurveyOrigin ¶
type SurveyOrigin struct { Origin v1.Origin `protobuf:"varint,1,opt,name=origin,proto3,enum=clutch.feedback.v1.Origin" json:"origin,omitempty"` Survey *Survey `protobuf:"bytes,2,opt,name=survey,proto3" json:"survey,omitempty"` // contains filtered or unexported fields }
func (*SurveyOrigin) Descriptor
deprecated
func (*SurveyOrigin) Descriptor() ([]byte, []int)
Deprecated: Use SurveyOrigin.ProtoReflect.Descriptor instead.
func (*SurveyOrigin) GetOrigin ¶
func (x *SurveyOrigin) GetOrigin() v1.Origin
func (*SurveyOrigin) GetSurvey ¶
func (x *SurveyOrigin) GetSurvey() *Survey
func (*SurveyOrigin) ProtoMessage ¶
func (*SurveyOrigin) ProtoMessage()
func (*SurveyOrigin) ProtoReflect ¶
func (x *SurveyOrigin) ProtoReflect() protoreflect.Message
func (*SurveyOrigin) Reset ¶
func (x *SurveyOrigin) Reset()
func (*SurveyOrigin) String ¶
func (x *SurveyOrigin) String() string
func (*SurveyOrigin) Validate ¶
func (m *SurveyOrigin) Validate() error
Validate checks the field values on SurveyOrigin 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 (*SurveyOrigin) ValidateAll ¶
func (m *SurveyOrigin) ValidateAll() error
ValidateAll checks the field values on SurveyOrigin 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 SurveyOriginMultiError, or nil if none found.
type SurveyOriginMultiError ¶
type SurveyOriginMultiError []error
SurveyOriginMultiError is an error wrapping multiple validation errors returned by SurveyOrigin.ValidateAll() if the designated constraints aren't met.
func (SurveyOriginMultiError) AllErrors ¶
func (m SurveyOriginMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SurveyOriginMultiError) Error ¶
func (m SurveyOriginMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SurveyOriginValidationError ¶
type SurveyOriginValidationError struct {
// contains filtered or unexported fields
}
SurveyOriginValidationError is the validation error returned by SurveyOrigin.Validate if the designated constraints aren't met.
func (SurveyOriginValidationError) Cause ¶
func (e SurveyOriginValidationError) Cause() error
Cause function returns cause value.
func (SurveyOriginValidationError) Error ¶
func (e SurveyOriginValidationError) Error() string
Error satisfies the builtin error interface
func (SurveyOriginValidationError) ErrorName ¶
func (e SurveyOriginValidationError) ErrorName() string
ErrorName returns error name.
func (SurveyOriginValidationError) Field ¶
func (e SurveyOriginValidationError) Field() string
Field function returns field value.
func (SurveyOriginValidationError) Key ¶
func (e SurveyOriginValidationError) Key() bool
Key function returns key value.
func (SurveyOriginValidationError) Reason ¶
func (e SurveyOriginValidationError) Reason() string
Reason function returns reason value.
type SurveyValidationError ¶
type SurveyValidationError struct {
// contains filtered or unexported fields
}
SurveyValidationError is the validation error returned by Survey.Validate if the designated constraints aren't met.
func (SurveyValidationError) Cause ¶
func (e SurveyValidationError) Cause() error
Cause function returns cause value.
func (SurveyValidationError) Error ¶
func (e SurveyValidationError) Error() string
Error satisfies the builtin error interface
func (SurveyValidationError) ErrorName ¶
func (e SurveyValidationError) ErrorName() string
ErrorName returns error name.
func (SurveyValidationError) Field ¶
func (e SurveyValidationError) Field() string
Field function returns field value.
func (SurveyValidationError) Key ¶
func (e SurveyValidationError) Key() bool
Key function returns key value.
func (SurveyValidationError) Reason ¶
func (e SurveyValidationError) Reason() string
Reason function returns reason value.