feedbackmodv1

package
v0.0.0-...-0f6a5af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

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) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

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

func (m *Config) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Survey.ProtoReflect.Descriptor instead.

func (*Survey) GetFreeformPrompt

func (x *Survey) GetFreeformPrompt() string

func (*Survey) GetPrompt

func (x *Survey) GetPrompt() string

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) Reset

func (x *Survey) Reset()

func (*Survey) String

func (x *Survey) String() string

func (*Survey) Validate

func (m *Survey) Validate() error

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

func (m *Survey) ValidateAll() error

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

Cause function returns cause value.

func (SurveyOriginValidationError) Error

Error satisfies the builtin error interface

func (SurveyOriginValidationError) ErrorName

func (e SurveyOriginValidationError) ErrorName() string

ErrorName returns error name.

func (SurveyOriginValidationError) Field

Field function returns field value.

func (SurveyOriginValidationError) Key

Key function returns key value.

func (SurveyOriginValidationError) Reason

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL