v1

package
v0.2.70 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConstraintKind_name = map[int32]string{
		0: "CONSTRAINT_KIND_DEPENDENT_ON",
		1: "CONSTRAINT_KIND_REQUIRED_TOGETHER",
		2: "CONSTRAINT_KIND_AT_LEAST_ONE",
		3: "CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE",
	}
	ConstraintKind_value = map[string]int32{
		"CONSTRAINT_KIND_DEPENDENT_ON":       0,
		"CONSTRAINT_KIND_REQUIRED_TOGETHER":  1,
		"CONSTRAINT_KIND_AT_LEAST_ONE":       2,
		"CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE": 3,
	}
)

Enum value maps for ConstraintKind.

View Source
var (
	StringFieldType_name = map[int32]string{
		0: "STRING_FIELD_TYPE_TEXT",
		1: "STRING_FIELD_TYPE_RANDOM",
		2: "STRING_FIELD_TYPE_OAUTH2",
		3: "STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS",
		4: "STRING_FIELD_TYPE_FILE_UPLOAD",
	}
	StringFieldType_value = map[string]int32{
		"STRING_FIELD_TYPE_TEXT":                      0,
		"STRING_FIELD_TYPE_RANDOM":                    1,
		"STRING_FIELD_TYPE_OAUTH2":                    2,
		"STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS": 3,
		"STRING_FIELD_TYPE_FILE_UPLOAD":               4,
	}
)

Enum value maps for StringFieldType.

View Source
var (
	WellKnownString_name = map[int32]string{
		0: "WELL_KNOWN_STRING_UNKNOWN",
		1: "WELL_KNOWN_STRING_EMAIL",
		2: "WELL_KNOWN_STRING_HOSTNAME",
		3: "WELL_KNOWN_STRING_IP",
		4: "WELL_KNOWN_STRING_IPV4",
		5: "WELL_KNOWN_STRING_IPV6",
		6: "WELL_KNOWN_STRING_URI",
		7: "WELL_KNOWN_STRING_ADDRESS",
		8: "WELL_KNOWN_STRING_UUID",
	}
	WellKnownString_value = map[string]int32{
		"WELL_KNOWN_STRING_UNKNOWN":  0,
		"WELL_KNOWN_STRING_EMAIL":    1,
		"WELL_KNOWN_STRING_HOSTNAME": 2,
		"WELL_KNOWN_STRING_IP":       3,
		"WELL_KNOWN_STRING_IPV4":     4,
		"WELL_KNOWN_STRING_IPV6":     5,
		"WELL_KNOWN_STRING_URI":      6,
		"WELL_KNOWN_STRING_ADDRESS":  7,
		"WELL_KNOWN_STRING_UUID":     8,
	}
)

Enum value maps for WellKnownString.

View Source
var File_c1_config_config_proto protoreflect.FileDescriptor
View Source
var File_c1_config_rules_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BoolField

type BoolField struct {
	DefaultValue bool       `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Rules        *BoolRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolField) Descriptor deprecated

func (*BoolField) Descriptor() ([]byte, []int)

Deprecated: Use BoolField.ProtoReflect.Descriptor instead.

func (*BoolField) GetDefaultValue

func (x *BoolField) GetDefaultValue() bool

func (*BoolField) GetRules

func (x *BoolField) GetRules() *BoolRules

func (*BoolField) ProtoMessage

func (*BoolField) ProtoMessage()

func (*BoolField) ProtoReflect

func (x *BoolField) ProtoReflect() protoreflect.Message

func (*BoolField) Reset

func (x *BoolField) Reset()

func (*BoolField) String

func (x *BoolField) String() string

func (*BoolField) Validate

func (m *BoolField) Validate() error

Validate checks the field values on BoolField 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 (*BoolField) ValidateAll

func (m *BoolField) ValidateAll() error

ValidateAll checks the field values on BoolField 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 BoolFieldMultiError, or nil if none found.

type BoolFieldMultiError

type BoolFieldMultiError []error

BoolFieldMultiError is an error wrapping multiple validation errors returned by BoolField.ValidateAll() if the designated constraints aren't met.

func (BoolFieldMultiError) AllErrors

func (m BoolFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BoolFieldMultiError) Error

func (m BoolFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BoolFieldValidationError

type BoolFieldValidationError struct {
	// contains filtered or unexported fields
}

BoolFieldValidationError is the validation error returned by BoolField.Validate if the designated constraints aren't met.

func (BoolFieldValidationError) Cause

func (e BoolFieldValidationError) Cause() error

Cause function returns cause value.

func (BoolFieldValidationError) Error

func (e BoolFieldValidationError) Error() string

Error satisfies the builtin error interface

func (BoolFieldValidationError) ErrorName

func (e BoolFieldValidationError) ErrorName() string

ErrorName returns error name.

func (BoolFieldValidationError) Field

func (e BoolFieldValidationError) Field() string

Field function returns field value.

func (BoolFieldValidationError) Key

Key function returns key value.

func (BoolFieldValidationError) Reason

func (e BoolFieldValidationError) Reason() string

Reason function returns reason value.

type BoolRules

type BoolRules struct {

	// Const specifies that this field must be exactly the specified value
	Eq *bool `protobuf:"varint,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"`
	// contains filtered or unexported fields
}

BoolRules describes the constraints applied to `bool` values

func (*BoolRules) Descriptor deprecated

func (*BoolRules) Descriptor() ([]byte, []int)

Deprecated: Use BoolRules.ProtoReflect.Descriptor instead.

func (*BoolRules) GetEq

func (x *BoolRules) GetEq() bool

func (*BoolRules) ProtoMessage

func (*BoolRules) ProtoMessage()

func (*BoolRules) ProtoReflect

func (x *BoolRules) ProtoReflect() protoreflect.Message

func (*BoolRules) Reset

func (x *BoolRules) Reset()

func (*BoolRules) String

func (x *BoolRules) String() string

func (*BoolRules) Validate

func (m *BoolRules) Validate() error

Validate checks the field values on BoolRules 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 (*BoolRules) ValidateAll

func (m *BoolRules) ValidateAll() error

ValidateAll checks the field values on BoolRules 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 BoolRulesMultiError, or nil if none found.

type BoolRulesMultiError

type BoolRulesMultiError []error

BoolRulesMultiError is an error wrapping multiple validation errors returned by BoolRules.ValidateAll() if the designated constraints aren't met.

func (BoolRulesMultiError) AllErrors

func (m BoolRulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BoolRulesMultiError) Error

func (m BoolRulesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BoolRulesValidationError

type BoolRulesValidationError struct {
	// contains filtered or unexported fields
}

BoolRulesValidationError is the validation error returned by BoolRules.Validate if the designated constraints aren't met.

func (BoolRulesValidationError) Cause

func (e BoolRulesValidationError) Cause() error

Cause function returns cause value.

func (BoolRulesValidationError) Error

func (e BoolRulesValidationError) Error() string

Error satisfies the builtin error interface

func (BoolRulesValidationError) ErrorName

func (e BoolRulesValidationError) ErrorName() string

ErrorName returns error name.

func (BoolRulesValidationError) Field

func (e BoolRulesValidationError) Field() string

Field function returns field value.

func (BoolRulesValidationError) Key

Key function returns key value.

func (BoolRulesValidationError) Reason

func (e BoolRulesValidationError) Reason() string

Reason function returns reason value.

type Configuration

type Configuration struct {
	Fields      []*Field      `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	Constraints []*Constraint `protobuf:"bytes,2,rep,name=constraints,proto3" json:"constraints,omitempty"`
	DisplayName string        `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	HelpUrl     string        `protobuf:"bytes,4,opt,name=help_url,json=helpUrl,proto3" json:"help_url,omitempty"`
	IconUrl     string        `protobuf:"bytes,5,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"`
	IsDirectory bool          `protobuf:"varint,7,opt,name=is_directory,json=isDirectory,proto3" json:"is_directory,omitempty"`
	CatalogId   string        `protobuf:"bytes,8,opt,name=catalog_id,json=catalogId,proto3" json:"catalog_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

func (*Configuration) Descriptor() ([]byte, []int)

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetCatalogId

func (x *Configuration) GetCatalogId() string

func (*Configuration) GetConstraints

func (x *Configuration) GetConstraints() []*Constraint

func (*Configuration) GetDisplayName

func (x *Configuration) GetDisplayName() string

func (*Configuration) GetFields

func (x *Configuration) GetFields() []*Field

func (*Configuration) GetHelpUrl

func (x *Configuration) GetHelpUrl() string

func (*Configuration) GetIconUrl

func (x *Configuration) GetIconUrl() string

func (*Configuration) GetIsDirectory

func (x *Configuration) GetIsDirectory() bool

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

func (x *Configuration) ProtoReflect() protoreflect.Message

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

func (*Configuration) Validate

func (m *Configuration) Validate() error

Validate checks the field values on Configuration 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 (*Configuration) ValidateAll

func (m *Configuration) ValidateAll() error

ValidateAll checks the field values on Configuration 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 ConfigurationMultiError, or nil if none found.

type ConfigurationMultiError

type ConfigurationMultiError []error

ConfigurationMultiError is an error wrapping multiple validation errors returned by Configuration.ValidateAll() if the designated constraints aren't met.

func (ConfigurationMultiError) AllErrors

func (m ConfigurationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigurationMultiError) Error

func (m ConfigurationMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigurationValidationError

type ConfigurationValidationError struct {
	// contains filtered or unexported fields
}

ConfigurationValidationError is the validation error returned by Configuration.Validate if the designated constraints aren't met.

func (ConfigurationValidationError) Cause

Cause function returns cause value.

func (ConfigurationValidationError) Error

Error satisfies the builtin error interface

func (ConfigurationValidationError) ErrorName

func (e ConfigurationValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigurationValidationError) Field

Field function returns field value.

func (ConfigurationValidationError) Key

Key function returns key value.

func (ConfigurationValidationError) Reason

Reason function returns reason value.

type Constraint

type Constraint struct {
	Kind                ConstraintKind `protobuf:"varint,1,opt,name=kind,proto3,enum=c1.config.v1.ConstraintKind" json:"kind,omitempty"`
	FieldNames          []string       `protobuf:"bytes,2,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"`
	SecondaryFieldNames []string       `protobuf:"bytes,3,rep,name=secondary_field_names,json=secondaryFieldNames,proto3" json:"secondary_field_names,omitempty"`
	Name                string         `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`                         // optional
	HelpText            string         `protobuf:"bytes,5,opt,name=help_text,json=helpText,proto3" json:"help_text,omitempty"` // optional
	IsFieldGroup        bool           `protobuf:"varint,6,opt,name=is_field_group,json=isFieldGroup,proto3" json:"is_field_group,omitempty"`
	// contains filtered or unexported fields
}

func (*Constraint) Descriptor deprecated

func (*Constraint) Descriptor() ([]byte, []int)

Deprecated: Use Constraint.ProtoReflect.Descriptor instead.

func (*Constraint) GetFieldNames

func (x *Constraint) GetFieldNames() []string

func (*Constraint) GetHelpText

func (x *Constraint) GetHelpText() string

func (*Constraint) GetIsFieldGroup

func (x *Constraint) GetIsFieldGroup() bool

func (*Constraint) GetKind

func (x *Constraint) GetKind() ConstraintKind

func (*Constraint) GetName

func (x *Constraint) GetName() string

func (*Constraint) GetSecondaryFieldNames

func (x *Constraint) GetSecondaryFieldNames() []string

func (*Constraint) ProtoMessage

func (*Constraint) ProtoMessage()

func (*Constraint) ProtoReflect

func (x *Constraint) ProtoReflect() protoreflect.Message

func (*Constraint) Reset

func (x *Constraint) Reset()

func (*Constraint) String

func (x *Constraint) String() string

func (*Constraint) Validate

func (m *Constraint) Validate() error

Validate checks the field values on Constraint 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 (*Constraint) ValidateAll

func (m *Constraint) ValidateAll() error

ValidateAll checks the field values on Constraint 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 ConstraintMultiError, or nil if none found.

type ConstraintKind

type ConstraintKind int32
const (
	ConstraintKind_CONSTRAINT_KIND_DEPENDENT_ON       ConstraintKind = 0
	ConstraintKind_CONSTRAINT_KIND_REQUIRED_TOGETHER  ConstraintKind = 1
	ConstraintKind_CONSTRAINT_KIND_AT_LEAST_ONE       ConstraintKind = 2
	ConstraintKind_CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE ConstraintKind = 3
)

func (ConstraintKind) Descriptor

func (ConstraintKind) Enum

func (x ConstraintKind) Enum() *ConstraintKind

func (ConstraintKind) EnumDescriptor deprecated

func (ConstraintKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConstraintKind.Descriptor instead.

func (ConstraintKind) Number

func (ConstraintKind) String

func (x ConstraintKind) String() string

func (ConstraintKind) Type

type ConstraintMultiError

type ConstraintMultiError []error

ConstraintMultiError is an error wrapping multiple validation errors returned by Constraint.ValidateAll() if the designated constraints aren't met.

func (ConstraintMultiError) AllErrors

func (m ConstraintMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConstraintMultiError) Error

func (m ConstraintMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConstraintValidationError

type ConstraintValidationError struct {
	// contains filtered or unexported fields
}

ConstraintValidationError is the validation error returned by Constraint.Validate if the designated constraints aren't met.

func (ConstraintValidationError) Cause

func (e ConstraintValidationError) Cause() error

Cause function returns cause value.

func (ConstraintValidationError) Error

Error satisfies the builtin error interface

func (ConstraintValidationError) ErrorName

func (e ConstraintValidationError) ErrorName() string

ErrorName returns error name.

func (ConstraintValidationError) Field

Field function returns field value.

func (ConstraintValidationError) Key

Key function returns key value.

func (ConstraintValidationError) Reason

func (e ConstraintValidationError) Reason() string

Reason function returns reason value.

type Field

type Field struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // canonical name, typically in snake
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Placeholder string `protobuf:"bytes,4,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	IsRequired  bool   `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
	IsOps       bool   `protobuf:"varint,6,opt,name=is_ops,json=isOps,proto3" json:"is_ops,omitempty"`
	IsSecret    bool   `protobuf:"varint,7,opt,name=is_secret,json=isSecret,proto3" json:"is_secret,omitempty"`
	// Types that are valid to be assigned to Field:
	//
	//	*Field_StringField
	//	*Field_IntField
	//	*Field_BoolField
	//	*Field_StringSliceField
	Field isField_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetBoolField

func (x *Field) GetBoolField() *BoolField

func (*Field) GetDescription

func (x *Field) GetDescription() string

func (*Field) GetDisplayName

func (x *Field) GetDisplayName() string

func (*Field) GetField

func (x *Field) GetField() isField_Field

func (*Field) GetIntField

func (x *Field) GetIntField() *IntField

func (*Field) GetIsOps

func (x *Field) GetIsOps() bool

func (*Field) GetIsRequired

func (x *Field) GetIsRequired() bool

func (*Field) GetIsSecret

func (x *Field) GetIsSecret() bool

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetPlaceholder

func (x *Field) GetPlaceholder() string

func (*Field) GetStringField

func (x *Field) GetStringField() *StringField

func (*Field) GetStringSliceField

func (x *Field) GetStringSliceField() *StringSliceField

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

func (x *Field) ProtoReflect() protoreflect.Message

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

func (*Field) Validate

func (m *Field) Validate() error

Validate checks the field values on Field 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 (*Field) ValidateAll

func (m *Field) ValidateAll() error

ValidateAll checks the field values on Field 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 FieldMultiError, or nil if none found.

type FieldMultiError

type FieldMultiError []error

FieldMultiError is an error wrapping multiple validation errors returned by Field.ValidateAll() if the designated constraints aren't met.

func (FieldMultiError) AllErrors

func (m FieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FieldMultiError) Error

func (m FieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FieldValidationError

type FieldValidationError struct {
	// contains filtered or unexported fields
}

FieldValidationError is the validation error returned by Field.Validate if the designated constraints aren't met.

func (FieldValidationError) Cause

func (e FieldValidationError) Cause() error

Cause function returns cause value.

func (FieldValidationError) Error

func (e FieldValidationError) Error() string

Error satisfies the builtin error interface

func (FieldValidationError) ErrorName

func (e FieldValidationError) ErrorName() string

ErrorName returns error name.

func (FieldValidationError) Field

func (e FieldValidationError) Field() string

Field function returns field value.

func (FieldValidationError) Key

func (e FieldValidationError) Key() bool

Key function returns key value.

func (FieldValidationError) Reason

func (e FieldValidationError) Reason() string

Reason function returns reason value.

type Field_BoolField

type Field_BoolField struct {
	BoolField *BoolField `protobuf:"bytes,102,opt,name=bool_field,json=boolField,proto3,oneof"`
}

type Field_IntField

type Field_IntField struct {
	IntField *IntField `protobuf:"bytes,101,opt,name=int_field,json=intField,proto3,oneof"`
}

type Field_StringField

type Field_StringField struct {
	StringField *StringField `protobuf:"bytes,100,opt,name=string_field,json=stringField,proto3,oneof"`
}

type Field_StringSliceField

type Field_StringSliceField struct {
	StringSliceField *StringSliceField `protobuf:"bytes,103,opt,name=string_slice_field,json=stringSliceField,proto3,oneof"`
}

type Int64Rules

type Int64Rules struct {

	// Const specifies that this field must be exactly the specified value
	Eq *int64 `protobuf:"varint,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"`
	// Lt specifies that this field must be less than the specified value,
	// exclusive
	Lt *int64 `protobuf:"varint,2,opt,name=lt,proto3,oneof" json:"lt,omitempty"`
	// Lte specifies that this field must be less than or equal to the
	// specified value, inclusive
	Lte *int64 `protobuf:"varint,3,opt,name=lte,proto3,oneof" json:"lte,omitempty"`
	// Gt specifies that this field must be greater than the specified value,
	// exclusive. If the value of Gt is larger than a specified Lt or Lte, the
	// range is reversed.
	Gt *int64 `protobuf:"varint,4,opt,name=gt,proto3,oneof" json:"gt,omitempty"`
	// Gte specifies that this field must be greater than or equal to the
	// specified value, inclusive. If the value of Gte is larger than a
	// specified Lt or Lte, the range is reversed.
	Gte *int64 `protobuf:"varint,5,opt,name=gte,proto3,oneof" json:"gte,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []int64 `protobuf:"varint,6,rep,packed,name=in,proto3" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn []int64 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3" json:"not_in,omitempty"`
	// IgnoreEmpty specifies that the validation rules of this field should be
	// evaluated only if the field is not empty
	IgnoreEmpty bool `protobuf:"varint,8,opt,name=ignore_empty,json=ignoreEmpty,proto3" json:"ignore_empty,omitempty"`
	IsRequired  bool `protobuf:"varint,9,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
	// contains filtered or unexported fields
}

Int64Rules describes the constraints applied to `int64` values

func (*Int64Rules) Descriptor deprecated

func (*Int64Rules) Descriptor() ([]byte, []int)

Deprecated: Use Int64Rules.ProtoReflect.Descriptor instead.

func (*Int64Rules) GetEq

func (x *Int64Rules) GetEq() int64

func (*Int64Rules) GetGt

func (x *Int64Rules) GetGt() int64

func (*Int64Rules) GetGte

func (x *Int64Rules) GetGte() int64

func (*Int64Rules) GetIgnoreEmpty

func (x *Int64Rules) GetIgnoreEmpty() bool

func (*Int64Rules) GetIn

func (x *Int64Rules) GetIn() []int64

func (*Int64Rules) GetIsRequired

func (x *Int64Rules) GetIsRequired() bool

func (*Int64Rules) GetLt

func (x *Int64Rules) GetLt() int64

func (*Int64Rules) GetLte

func (x *Int64Rules) GetLte() int64

func (*Int64Rules) GetNotIn

func (x *Int64Rules) GetNotIn() []int64

func (*Int64Rules) ProtoMessage

func (*Int64Rules) ProtoMessage()

func (*Int64Rules) ProtoReflect

func (x *Int64Rules) ProtoReflect() protoreflect.Message

func (*Int64Rules) Reset

func (x *Int64Rules) Reset()

func (*Int64Rules) String

func (x *Int64Rules) String() string

func (*Int64Rules) Validate

func (m *Int64Rules) Validate() error

Validate checks the field values on Int64Rules 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 (*Int64Rules) ValidateAll

func (m *Int64Rules) ValidateAll() error

ValidateAll checks the field values on Int64Rules 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 Int64RulesMultiError, or nil if none found.

type Int64RulesMultiError

type Int64RulesMultiError []error

Int64RulesMultiError is an error wrapping multiple validation errors returned by Int64Rules.ValidateAll() if the designated constraints aren't met.

func (Int64RulesMultiError) AllErrors

func (m Int64RulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Int64RulesMultiError) Error

func (m Int64RulesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Int64RulesValidationError

type Int64RulesValidationError struct {
	// contains filtered or unexported fields
}

Int64RulesValidationError is the validation error returned by Int64Rules.Validate if the designated constraints aren't met.

func (Int64RulesValidationError) Cause

func (e Int64RulesValidationError) Cause() error

Cause function returns cause value.

func (Int64RulesValidationError) Error

Error satisfies the builtin error interface

func (Int64RulesValidationError) ErrorName

func (e Int64RulesValidationError) ErrorName() string

ErrorName returns error name.

func (Int64RulesValidationError) Field

Field function returns field value.

func (Int64RulesValidationError) Key

Key function returns key value.

func (Int64RulesValidationError) Reason

func (e Int64RulesValidationError) Reason() string

Reason function returns reason value.

type IntField

type IntField struct {

	// rules
	DefaultValue int64       `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Rules        *Int64Rules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*IntField) Descriptor deprecated

func (*IntField) Descriptor() ([]byte, []int)

Deprecated: Use IntField.ProtoReflect.Descriptor instead.

func (*IntField) GetDefaultValue

func (x *IntField) GetDefaultValue() int64

func (*IntField) GetRules

func (x *IntField) GetRules() *Int64Rules

func (*IntField) ProtoMessage

func (*IntField) ProtoMessage()

func (*IntField) ProtoReflect

func (x *IntField) ProtoReflect() protoreflect.Message

func (*IntField) Reset

func (x *IntField) Reset()

func (*IntField) String

func (x *IntField) String() string

func (*IntField) Validate

func (m *IntField) Validate() error

Validate checks the field values on IntField 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 (*IntField) ValidateAll

func (m *IntField) ValidateAll() error

ValidateAll checks the field values on IntField 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 IntFieldMultiError, or nil if none found.

type IntFieldMultiError

type IntFieldMultiError []error

IntFieldMultiError is an error wrapping multiple validation errors returned by IntField.ValidateAll() if the designated constraints aren't met.

func (IntFieldMultiError) AllErrors

func (m IntFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IntFieldMultiError) Error

func (m IntFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type IntFieldValidationError

type IntFieldValidationError struct {
	// contains filtered or unexported fields
}

IntFieldValidationError is the validation error returned by IntField.Validate if the designated constraints aren't met.

func (IntFieldValidationError) Cause

func (e IntFieldValidationError) Cause() error

Cause function returns cause value.

func (IntFieldValidationError) Error

func (e IntFieldValidationError) Error() string

Error satisfies the builtin error interface

func (IntFieldValidationError) ErrorName

func (e IntFieldValidationError) ErrorName() string

ErrorName returns error name.

func (IntFieldValidationError) Field

func (e IntFieldValidationError) Field() string

Field function returns field value.

func (IntFieldValidationError) Key

func (e IntFieldValidationError) Key() bool

Key function returns key value.

func (IntFieldValidationError) Reason

func (e IntFieldValidationError) Reason() string

Reason function returns reason value.

type RepeatedRules

type RepeatedRules struct {

	// MinItems specifies that this field must have the specified number of
	// items at a minimum
	MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof" json:"min_items,omitempty"`
	// MaxItems specifies that this field must have the specified number of
	// items at a maximum
	MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3,oneof" json:"max_items,omitempty"`
	// Unique specifies that all elements in this field must be unique. This
	// constraint is only applicable to scalar and enum types (messages are not
	// supported).
	Unique bool `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"`
	// Items specifies the constraints to be applied to each item in the field.
	// Repeated message fields will still execute validation against each item
	// unless skip is specified here.
	//
	// Types that are valid to be assigned to ItemRules:
	//
	//	*RepeatedRules_Int64
	//	*RepeatedRules_Bool
	//	*RepeatedRules_String_
	ItemRules isRepeatedRules_ItemRules `protobuf_oneof:"item_rules"`
	// IgnoreEmpty specifies that the validation rules of this field should be
	// evaluated only if the field is not empty
	IgnoreEmpty bool `protobuf:"varint,4,opt,name=ignore_empty,json=ignoreEmpty,proto3" json:"ignore_empty,omitempty"`
	IsRequired  bool `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
	// contains filtered or unexported fields
}

RepeatedRules describe the constraints applied to `repeated` values

func (*RepeatedRules) Descriptor deprecated

func (*RepeatedRules) Descriptor() ([]byte, []int)

Deprecated: Use RepeatedRules.ProtoReflect.Descriptor instead.

func (*RepeatedRules) GetBool

func (x *RepeatedRules) GetBool() *BoolRules

func (*RepeatedRules) GetIgnoreEmpty

func (x *RepeatedRules) GetIgnoreEmpty() bool

func (*RepeatedRules) GetInt64

func (x *RepeatedRules) GetInt64() *Int64Rules

func (*RepeatedRules) GetIsRequired

func (x *RepeatedRules) GetIsRequired() bool

func (*RepeatedRules) GetItemRules

func (x *RepeatedRules) GetItemRules() isRepeatedRules_ItemRules

func (*RepeatedRules) GetMaxItems

func (x *RepeatedRules) GetMaxItems() uint64

func (*RepeatedRules) GetMinItems

func (x *RepeatedRules) GetMinItems() uint64

func (*RepeatedRules) GetString_

func (x *RepeatedRules) GetString_() *StringRules

func (*RepeatedRules) GetUnique

func (x *RepeatedRules) GetUnique() bool

func (*RepeatedRules) ProtoMessage

func (*RepeatedRules) ProtoMessage()

func (*RepeatedRules) ProtoReflect

func (x *RepeatedRules) ProtoReflect() protoreflect.Message

func (*RepeatedRules) Reset

func (x *RepeatedRules) Reset()

func (*RepeatedRules) String

func (x *RepeatedRules) String() string

func (*RepeatedRules) Validate

func (m *RepeatedRules) Validate() error

Validate checks the field values on RepeatedRules 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 (*RepeatedRules) ValidateAll

func (m *RepeatedRules) ValidateAll() error

ValidateAll checks the field values on RepeatedRules 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 RepeatedRulesMultiError, or nil if none found.

type RepeatedRulesMultiError

type RepeatedRulesMultiError []error

RepeatedRulesMultiError is an error wrapping multiple validation errors returned by RepeatedRules.ValidateAll() if the designated constraints aren't met.

func (RepeatedRulesMultiError) AllErrors

func (m RepeatedRulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RepeatedRulesMultiError) Error

func (m RepeatedRulesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RepeatedRulesValidationError

type RepeatedRulesValidationError struct {
	// contains filtered or unexported fields
}

RepeatedRulesValidationError is the validation error returned by RepeatedRules.Validate if the designated constraints aren't met.

func (RepeatedRulesValidationError) Cause

Cause function returns cause value.

func (RepeatedRulesValidationError) Error

Error satisfies the builtin error interface

func (RepeatedRulesValidationError) ErrorName

func (e RepeatedRulesValidationError) ErrorName() string

ErrorName returns error name.

func (RepeatedRulesValidationError) Field

Field function returns field value.

func (RepeatedRulesValidationError) Key

Key function returns key value.

func (RepeatedRulesValidationError) Reason

Reason function returns reason value.

type RepeatedRules_Bool

type RepeatedRules_Bool struct {
	Bool *BoolRules `protobuf:"bytes,101,opt,name=bool,proto3,oneof"`
}

type RepeatedRules_Int64

type RepeatedRules_Int64 struct {
	// Scalar Field Types
	Int64 *Int64Rules `protobuf:"bytes,100,opt,name=int64,proto3,oneof"`
}

type RepeatedRules_String_

type RepeatedRules_String_ struct {
	String_ *StringRules `protobuf:"bytes,102,opt,name=string,proto3,oneof"` // RepeatedRules repeated = 103;
}

type RepeatedStringRules

type RepeatedStringRules struct {

	// MinItems specifies that this field must have the specified number of
	// items at a minimum
	MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof" json:"min_items,omitempty"`
	// MaxItems specifies that this field must have the specified number of
	// items at a maximum
	MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3,oneof" json:"max_items,omitempty"`
	// Unique specifies that all elements in this field must be unique. This
	// constraint is only applicable to scalar and enum types (messages are not
	// supported).
	Unique    bool         `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"`
	ItemRules *StringRules `protobuf:"bytes,4,opt,name=item_rules,json=itemRules,proto3" json:"item_rules,omitempty"`
	// IgnoreEmpty specifies that the validation rules of this field should be
	// evaluated only if the field is not empty
	IgnoreEmpty bool `protobuf:"varint,5,opt,name=ignore_empty,json=ignoreEmpty,proto3" json:"ignore_empty,omitempty"`
	IsRequired  bool `protobuf:"varint,6,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"` // repeated string eq = 7;
	// contains filtered or unexported fields
}

func (*RepeatedStringRules) Descriptor deprecated

func (*RepeatedStringRules) Descriptor() ([]byte, []int)

Deprecated: Use RepeatedStringRules.ProtoReflect.Descriptor instead.

func (*RepeatedStringRules) GetIgnoreEmpty

func (x *RepeatedStringRules) GetIgnoreEmpty() bool

func (*RepeatedStringRules) GetIsRequired

func (x *RepeatedStringRules) GetIsRequired() bool

func (*RepeatedStringRules) GetItemRules

func (x *RepeatedStringRules) GetItemRules() *StringRules

func (*RepeatedStringRules) GetMaxItems

func (x *RepeatedStringRules) GetMaxItems() uint64

func (*RepeatedStringRules) GetMinItems

func (x *RepeatedStringRules) GetMinItems() uint64

func (*RepeatedStringRules) GetUnique

func (x *RepeatedStringRules) GetUnique() bool

func (*RepeatedStringRules) ProtoMessage

func (*RepeatedStringRules) ProtoMessage()

func (*RepeatedStringRules) ProtoReflect

func (x *RepeatedStringRules) ProtoReflect() protoreflect.Message

func (*RepeatedStringRules) Reset

func (x *RepeatedStringRules) Reset()

func (*RepeatedStringRules) String

func (x *RepeatedStringRules) String() string

func (*RepeatedStringRules) Validate

func (m *RepeatedStringRules) Validate() error

Validate checks the field values on RepeatedStringRules 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 (*RepeatedStringRules) ValidateAll

func (m *RepeatedStringRules) ValidateAll() error

ValidateAll checks the field values on RepeatedStringRules 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 RepeatedStringRulesMultiError, or nil if none found.

type RepeatedStringRulesMultiError

type RepeatedStringRulesMultiError []error

RepeatedStringRulesMultiError is an error wrapping multiple validation errors returned by RepeatedStringRules.ValidateAll() if the designated constraints aren't met.

func (RepeatedStringRulesMultiError) AllErrors

func (m RepeatedStringRulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RepeatedStringRulesMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RepeatedStringRulesValidationError

type RepeatedStringRulesValidationError struct {
	// contains filtered or unexported fields
}

RepeatedStringRulesValidationError is the validation error returned by RepeatedStringRules.Validate if the designated constraints aren't met.

func (RepeatedStringRulesValidationError) Cause

Cause function returns cause value.

func (RepeatedStringRulesValidationError) Error

Error satisfies the builtin error interface

func (RepeatedStringRulesValidationError) ErrorName

ErrorName returns error name.

func (RepeatedStringRulesValidationError) Field

Field function returns field value.

func (RepeatedStringRulesValidationError) Key

Key function returns key value.

func (RepeatedStringRulesValidationError) Reason

Reason function returns reason value.

type StringField

type StringField struct {
	DefaultValue string          `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Rules        *StringRules    `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"`
	Type         StringFieldType `protobuf:"varint,3,opt,name=type,proto3,enum=c1.config.v1.StringFieldType" json:"type,omitempty"`
	// only used for FileUpload atm, oneofs are evil
	AllowedExtensions []string             `protobuf:"bytes,4,rep,name=allowed_extensions,json=allowedExtensions,proto3" json:"allowed_extensions,omitempty"`
	Options           []*StringFieldOption `protobuf:"bytes,5,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*StringField) Descriptor deprecated

func (*StringField) Descriptor() ([]byte, []int)

Deprecated: Use StringField.ProtoReflect.Descriptor instead.

func (*StringField) GetAllowedExtensions

func (x *StringField) GetAllowedExtensions() []string

func (*StringField) GetDefaultValue

func (x *StringField) GetDefaultValue() string

func (*StringField) GetOptions

func (x *StringField) GetOptions() []*StringFieldOption

func (*StringField) GetRules

func (x *StringField) GetRules() *StringRules

func (*StringField) GetType

func (x *StringField) GetType() StringFieldType

func (*StringField) ProtoMessage

func (*StringField) ProtoMessage()

func (*StringField) ProtoReflect

func (x *StringField) ProtoReflect() protoreflect.Message

func (*StringField) Reset

func (x *StringField) Reset()

func (*StringField) String

func (x *StringField) String() string

func (*StringField) Validate

func (m *StringField) Validate() error

Validate checks the field values on StringField 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 (*StringField) ValidateAll

func (m *StringField) ValidateAll() error

ValidateAll checks the field values on StringField 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 StringFieldMultiError, or nil if none found.

type StringFieldMultiError

type StringFieldMultiError []error

StringFieldMultiError is an error wrapping multiple validation errors returned by StringField.ValidateAll() if the designated constraints aren't met.

func (StringFieldMultiError) AllErrors

func (m StringFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringFieldMultiError) Error

func (m StringFieldMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StringFieldOption

type StringFieldOption struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value       string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*StringFieldOption) Descriptor deprecated

func (*StringFieldOption) Descriptor() ([]byte, []int)

Deprecated: Use StringFieldOption.ProtoReflect.Descriptor instead.

func (*StringFieldOption) GetDisplayName

func (x *StringFieldOption) GetDisplayName() string

func (*StringFieldOption) GetName

func (x *StringFieldOption) GetName() string

func (*StringFieldOption) GetValue

func (x *StringFieldOption) GetValue() string

func (*StringFieldOption) ProtoMessage

func (*StringFieldOption) ProtoMessage()

func (*StringFieldOption) ProtoReflect

func (x *StringFieldOption) ProtoReflect() protoreflect.Message

func (*StringFieldOption) Reset

func (x *StringFieldOption) Reset()

func (*StringFieldOption) String

func (x *StringFieldOption) String() string

func (*StringFieldOption) Validate

func (m *StringFieldOption) Validate() error

Validate checks the field values on StringFieldOption 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 (*StringFieldOption) ValidateAll

func (m *StringFieldOption) ValidateAll() error

ValidateAll checks the field values on StringFieldOption 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 StringFieldOptionMultiError, or nil if none found.

type StringFieldOptionMultiError

type StringFieldOptionMultiError []error

StringFieldOptionMultiError is an error wrapping multiple validation errors returned by StringFieldOption.ValidateAll() if the designated constraints aren't met.

func (StringFieldOptionMultiError) AllErrors

func (m StringFieldOptionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringFieldOptionMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StringFieldOptionValidationError

type StringFieldOptionValidationError struct {
	// contains filtered or unexported fields
}

StringFieldOptionValidationError is the validation error returned by StringFieldOption.Validate if the designated constraints aren't met.

func (StringFieldOptionValidationError) Cause

Cause function returns cause value.

func (StringFieldOptionValidationError) Error

Error satisfies the builtin error interface

func (StringFieldOptionValidationError) ErrorName

ErrorName returns error name.

func (StringFieldOptionValidationError) Field

Field function returns field value.

func (StringFieldOptionValidationError) Key

Key function returns key value.

func (StringFieldOptionValidationError) Reason

Reason function returns reason value.

type StringFieldType

type StringFieldType int32
const (
	StringFieldType_STRING_FIELD_TYPE_TEXT                      StringFieldType = 0
	StringFieldType_STRING_FIELD_TYPE_RANDOM                    StringFieldType = 1
	StringFieldType_STRING_FIELD_TYPE_OAUTH2                    StringFieldType = 2
	StringFieldType_STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS StringFieldType = 3
	StringFieldType_STRING_FIELD_TYPE_FILE_UPLOAD               StringFieldType = 4
)

func (StringFieldType) Descriptor

func (StringFieldType) Enum

func (x StringFieldType) Enum() *StringFieldType

func (StringFieldType) EnumDescriptor deprecated

func (StringFieldType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StringFieldType.Descriptor instead.

func (StringFieldType) Number

func (StringFieldType) String

func (x StringFieldType) String() string

func (StringFieldType) Type

type StringFieldValidationError

type StringFieldValidationError struct {
	// contains filtered or unexported fields
}

StringFieldValidationError is the validation error returned by StringField.Validate if the designated constraints aren't met.

func (StringFieldValidationError) Cause

Cause function returns cause value.

func (StringFieldValidationError) Error

Error satisfies the builtin error interface

func (StringFieldValidationError) ErrorName

func (e StringFieldValidationError) ErrorName() string

ErrorName returns error name.

func (StringFieldValidationError) Field

Field function returns field value.

func (StringFieldValidationError) Key

Key function returns key value.

func (StringFieldValidationError) Reason

Reason function returns reason value.

type StringRules

type StringRules struct {

	// Const specifies that this field must be exactly the specified value
	Eq *string `protobuf:"bytes,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"`
	// Len specifies that this field must be the specified number of
	// characters (Unicode code points). Note that the number of
	// characters may differ from the number of bytes in the string.
	Len *uint64 `protobuf:"varint,19,opt,name=len,proto3,oneof" json:"len,omitempty"`
	// MinLen specifies that this field must be the specified number of
	// characters (Unicode code points) at a minimum. Note that the number of
	// characters may differ from the number of bytes in the string.
	MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen,proto3,oneof" json:"min_len,omitempty"`
	// MaxLen specifies that this field must be the specified number of
	// characters (Unicode code points) at a maximum. Note that the number of
	// characters may differ from the number of bytes in the string.
	MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen,proto3,oneof" json:"max_len,omitempty"`
	// Pattern specifies that this field must match against the specified
	// regular expression (RE2 syntax). The included expression should elide
	// any delimiters.
	Pattern *string `protobuf:"bytes,6,opt,name=pattern,proto3,oneof" json:"pattern,omitempty"`
	// Prefix specifies that this field must have the specified substring at
	// the beginning of the string.
	Prefix *string `protobuf:"bytes,7,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"`
	// Suffix specifies that this field must have the specified substring at
	// the end of the string.
	Suffix *string `protobuf:"bytes,8,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"`
	// Contains specifies that this field must have the specified substring
	// anywhere in the string.
	Contains *string `protobuf:"bytes,9,opt,name=contains,proto3,oneof" json:"contains,omitempty"`
	// NotContains specifies that this field cannot have the specified substring
	// anywhere in the string.
	NotContains *string `protobuf:"bytes,23,opt,name=not_contains,json=notContains,proto3,oneof" json:"not_contains,omitempty"`
	// In specifies that this field must be equal to one of the specified
	// values
	In []string `protobuf:"bytes,10,rep,name=in,proto3" json:"in,omitempty"`
	// NotIn specifies that this field cannot be equal to one of the specified
	// values
	NotIn     []string        `protobuf:"bytes,11,rep,name=not_in,json=notIn,proto3" json:"not_in,omitempty"`
	WellKnown WellKnownString `protobuf:"varint,12,opt,name=well_known,json=wellKnown,proto3,enum=c1.config.v1.WellKnownString" json:"well_known,omitempty"`
	// IgnoreEmpty specifies that the validation rules of this field should be
	// evaluated only if the field is not empty
	IgnoreEmpty bool `protobuf:"varint,26,opt,name=ignore_empty,json=ignoreEmpty,proto3" json:"ignore_empty,omitempty"`
	IsRequired  bool `protobuf:"varint,27,opt,name=is_required,json=isRequired,proto3" json:"is_required,omitempty"`
	// contains filtered or unexported fields
}

func (*StringRules) Descriptor deprecated

func (*StringRules) Descriptor() ([]byte, []int)

Deprecated: Use StringRules.ProtoReflect.Descriptor instead.

func (*StringRules) GetContains

func (x *StringRules) GetContains() string

func (*StringRules) GetEq

func (x *StringRules) GetEq() string

func (*StringRules) GetIgnoreEmpty

func (x *StringRules) GetIgnoreEmpty() bool

func (*StringRules) GetIn

func (x *StringRules) GetIn() []string

func (*StringRules) GetIsRequired

func (x *StringRules) GetIsRequired() bool

func (*StringRules) GetLen

func (x *StringRules) GetLen() uint64

func (*StringRules) GetMaxLen

func (x *StringRules) GetMaxLen() uint64

func (*StringRules) GetMinLen

func (x *StringRules) GetMinLen() uint64

func (*StringRules) GetNotContains

func (x *StringRules) GetNotContains() string

func (*StringRules) GetNotIn

func (x *StringRules) GetNotIn() []string

func (*StringRules) GetPattern

func (x *StringRules) GetPattern() string

func (*StringRules) GetPrefix

func (x *StringRules) GetPrefix() string

func (*StringRules) GetSuffix

func (x *StringRules) GetSuffix() string

func (*StringRules) GetWellKnown

func (x *StringRules) GetWellKnown() WellKnownString

func (*StringRules) ProtoMessage

func (*StringRules) ProtoMessage()

func (*StringRules) ProtoReflect

func (x *StringRules) ProtoReflect() protoreflect.Message

func (*StringRules) Reset

func (x *StringRules) Reset()

func (*StringRules) String

func (x *StringRules) String() string

func (*StringRules) Validate

func (m *StringRules) Validate() error

Validate checks the field values on StringRules 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 (*StringRules) ValidateAll

func (m *StringRules) ValidateAll() error

ValidateAll checks the field values on StringRules 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 StringRulesMultiError, or nil if none found.

type StringRulesMultiError

type StringRulesMultiError []error

StringRulesMultiError is an error wrapping multiple validation errors returned by StringRules.ValidateAll() if the designated constraints aren't met.

func (StringRulesMultiError) AllErrors

func (m StringRulesMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringRulesMultiError) Error

func (m StringRulesMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StringRulesValidationError

type StringRulesValidationError struct {
	// contains filtered or unexported fields
}

StringRulesValidationError is the validation error returned by StringRules.Validate if the designated constraints aren't met.

func (StringRulesValidationError) Cause

Cause function returns cause value.

func (StringRulesValidationError) Error

Error satisfies the builtin error interface

func (StringRulesValidationError) ErrorName

func (e StringRulesValidationError) ErrorName() string

ErrorName returns error name.

func (StringRulesValidationError) Field

Field function returns field value.

func (StringRulesValidationError) Key

Key function returns key value.

func (StringRulesValidationError) Reason

Reason function returns reason value.

type StringSliceField

type StringSliceField struct {
	DefaultValue []string             `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Rules        *RepeatedStringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*StringSliceField) Descriptor deprecated

func (*StringSliceField) Descriptor() ([]byte, []int)

Deprecated: Use StringSliceField.ProtoReflect.Descriptor instead.

func (*StringSliceField) GetDefaultValue

func (x *StringSliceField) GetDefaultValue() []string

func (*StringSliceField) GetRules

func (x *StringSliceField) GetRules() *RepeatedStringRules

func (*StringSliceField) ProtoMessage

func (*StringSliceField) ProtoMessage()

func (*StringSliceField) ProtoReflect

func (x *StringSliceField) ProtoReflect() protoreflect.Message

func (*StringSliceField) Reset

func (x *StringSliceField) Reset()

func (*StringSliceField) String

func (x *StringSliceField) String() string

func (*StringSliceField) Validate

func (m *StringSliceField) Validate() error

Validate checks the field values on StringSliceField 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 (*StringSliceField) ValidateAll

func (m *StringSliceField) ValidateAll() error

ValidateAll checks the field values on StringSliceField 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 StringSliceFieldMultiError, or nil if none found.

type StringSliceFieldMultiError

type StringSliceFieldMultiError []error

StringSliceFieldMultiError is an error wrapping multiple validation errors returned by StringSliceField.ValidateAll() if the designated constraints aren't met.

func (StringSliceFieldMultiError) AllErrors

func (m StringSliceFieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StringSliceFieldMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StringSliceFieldValidationError

type StringSliceFieldValidationError struct {
	// contains filtered or unexported fields
}

StringSliceFieldValidationError is the validation error returned by StringSliceField.Validate if the designated constraints aren't met.

func (StringSliceFieldValidationError) Cause

Cause function returns cause value.

func (StringSliceFieldValidationError) Error

Error satisfies the builtin error interface

func (StringSliceFieldValidationError) ErrorName

ErrorName returns error name.

func (StringSliceFieldValidationError) Field

Field function returns field value.

func (StringSliceFieldValidationError) Key

Key function returns key value.

func (StringSliceFieldValidationError) Reason

Reason function returns reason value.

type WellKnownString

type WellKnownString int32
const (
	WellKnownString_WELL_KNOWN_STRING_UNKNOWN WellKnownString = 0
	// Email specifies that the field must be a valid email address as
	// defined by RFC 5322
	WellKnownString_WELL_KNOWN_STRING_EMAIL WellKnownString = 1
	// Hostname specifies that the field must be a valid hostname as
	// defined by RFC 1034. This constraint does not support
	// internationalized domain names (IDNs).
	WellKnownString_WELL_KNOWN_STRING_HOSTNAME WellKnownString = 2
	// Ip specifies that the field must be a valid IP (v4 or v6) address.
	// Valid IPv6 addresses should not include surrounding square brackets.
	WellKnownString_WELL_KNOWN_STRING_IP WellKnownString = 3
	// Ipv4 specifies that the field must be a valid IPv4 address.
	WellKnownString_WELL_KNOWN_STRING_IPV4 WellKnownString = 4
	// Ipv6 specifies that the field must be a valid IPv6 address. Valid
	// IPv6 addresses should not include surrounding square brackets.
	WellKnownString_WELL_KNOWN_STRING_IPV6 WellKnownString = 5
	WellKnownString_WELL_KNOWN_STRING_URI  WellKnownString = 6
	// Address specifies that the field must be either a valid hostname as
	// defined by RFC 1034 (which does not support internationalized domain
	// names or IDNs), or it can be a valid IP (v4 or v6).
	WellKnownString_WELL_KNOWN_STRING_ADDRESS WellKnownString = 7
	// Uuid specifies that the field must be a valid UUID as defined by
	// RFC 4122
	WellKnownString_WELL_KNOWN_STRING_UUID WellKnownString = 8
)

func (WellKnownString) Descriptor

func (WellKnownString) Enum

func (x WellKnownString) Enum() *WellKnownString

func (WellKnownString) EnumDescriptor deprecated

func (WellKnownString) EnumDescriptor() ([]byte, []int)

Deprecated: Use WellKnownString.Descriptor instead.

func (WellKnownString) Number

func (WellKnownString) String

func (x WellKnownString) String() string

func (WellKnownString) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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