Documentation
¶
Index ¶
- Variables
- type ApplicationConfig
- func (*ApplicationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationConfig) GetCustomize() *v1.CustomizeConfig
- func (*ApplicationConfig) ProtoMessage()
- func (x *ApplicationConfig) ProtoReflect() protoreflect.Message
- func (x *ApplicationConfig) Reset()
- func (x *ApplicationConfig) String() string
- func (m *ApplicationConfig) Validate() error
- func (m *ApplicationConfig) ValidateAll() error
- type ApplicationConfigMultiError
- type ApplicationConfigValidationError
- func (e ApplicationConfigValidationError) Cause() error
- func (e ApplicationConfigValidationError) Error() string
- func (e ApplicationConfigValidationError) ErrorName() string
- func (e ApplicationConfigValidationError) Field() string
- func (e ApplicationConfigValidationError) Key() bool
- func (e ApplicationConfigValidationError) Reason() string
- type CustomConfig
- func (*CustomConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CustomConfig) GetCustomField() string
- func (x *CustomConfig) GetCustomNumber() int32
- func (x *CustomConfig) GetItems() []string
- func (x *CustomConfig) GetNested() *CustomConfig_NestedConfig
- func (*CustomConfig) ProtoMessage()
- func (x *CustomConfig) ProtoReflect() protoreflect.Message
- func (x *CustomConfig) Reset()
- func (x *CustomConfig) String() string
- func (m *CustomConfig) Validate() error
- func (m *CustomConfig) ValidateAll() error
- type CustomConfigMultiError
- type CustomConfigValidationError
- func (e CustomConfigValidationError) Cause() error
- func (e CustomConfigValidationError) Error() string
- func (e CustomConfigValidationError) ErrorName() string
- func (e CustomConfigValidationError) Field() string
- func (e CustomConfigValidationError) Key() bool
- func (e CustomConfigValidationError) Reason() string
- type CustomConfig_NestedConfig
- func (*CustomConfig_NestedConfig) Descriptor() ([]byte, []int)deprecated
- func (x *CustomConfig_NestedConfig) GetEnabled() bool
- func (x *CustomConfig_NestedConfig) GetName() string
- func (*CustomConfig_NestedConfig) ProtoMessage()
- func (x *CustomConfig_NestedConfig) ProtoReflect() protoreflect.Message
- func (x *CustomConfig_NestedConfig) Reset()
- func (x *CustomConfig_NestedConfig) String() string
- func (m *CustomConfig_NestedConfig) Validate() error
- func (m *CustomConfig_NestedConfig) ValidateAll() error
- type CustomConfig_NestedConfigMultiError
- type CustomConfig_NestedConfigValidationError
- func (e CustomConfig_NestedConfigValidationError) Cause() error
- func (e CustomConfig_NestedConfigValidationError) Error() string
- func (e CustomConfig_NestedConfigValidationError) ErrorName() string
- func (e CustomConfig_NestedConfigValidationError) Field() string
- func (e CustomConfig_NestedConfigValidationError) Key() bool
- func (e CustomConfig_NestedConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_examples_protos_custom_extension_example_custom_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct {
// Use ExtensionMap to hold framework configurations
Customize *v1.CustomizeConfig `protobuf:"bytes,1,opt,name=customize,proto3" json:"customize,omitempty"`
// contains filtered or unexported fields
}
Application configuration
func (*ApplicationConfig) Descriptor
deprecated
func (*ApplicationConfig) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationConfig.ProtoReflect.Descriptor instead.
func (*ApplicationConfig) GetCustomize ¶
func (x *ApplicationConfig) GetCustomize() *v1.CustomizeConfig
func (*ApplicationConfig) ProtoMessage ¶
func (*ApplicationConfig) ProtoMessage()
func (*ApplicationConfig) ProtoReflect ¶
func (x *ApplicationConfig) ProtoReflect() protoreflect.Message
func (*ApplicationConfig) Reset ¶
func (x *ApplicationConfig) Reset()
func (*ApplicationConfig) String ¶
func (x *ApplicationConfig) String() string
func (*ApplicationConfig) Validate ¶
func (m *ApplicationConfig) Validate() error
Validate checks the field values on ApplicationConfig 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 (*ApplicationConfig) ValidateAll ¶
func (m *ApplicationConfig) ValidateAll() error
ValidateAll checks the field values on ApplicationConfig 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 ApplicationConfigMultiError, or nil if none found.
type ApplicationConfigMultiError ¶
type ApplicationConfigMultiError []error
ApplicationConfigMultiError is an error wrapping multiple validation errors returned by ApplicationConfig.ValidateAll() if the designated constraints aren't met.
func (ApplicationConfigMultiError) AllErrors ¶
func (m ApplicationConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplicationConfigMultiError) Error ¶
func (m ApplicationConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplicationConfigValidationError ¶
type ApplicationConfigValidationError struct {
// contains filtered or unexported fields
}
ApplicationConfigValidationError is the validation error returned by ApplicationConfig.Validate if the designated constraints aren't met.
func (ApplicationConfigValidationError) Cause ¶
func (e ApplicationConfigValidationError) Cause() error
Cause function returns cause value.
func (ApplicationConfigValidationError) Error ¶
func (e ApplicationConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationConfigValidationError) ErrorName ¶
func (e ApplicationConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationConfigValidationError) Field ¶
func (e ApplicationConfigValidationError) Field() string
Field function returns field value.
func (ApplicationConfigValidationError) Key ¶
func (e ApplicationConfigValidationError) Key() bool
Key function returns key value.
func (ApplicationConfigValidationError) Reason ¶
func (e ApplicationConfigValidationError) Reason() string
Reason function returns reason value.
type CustomConfig ¶
type CustomConfig struct {
CustomField string `protobuf:"bytes,1,opt,name=custom_field,json=customField,proto3" json:"custom_field,omitempty"`
CustomNumber int32 `protobuf:"varint,2,opt,name=custom_number,json=customNumber,proto3" json:"custom_number,omitempty"`
Items []string `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
Nested *CustomConfig_NestedConfig `protobuf:"bytes,4,opt,name=nested,proto3" json:"nested,omitempty"`
// contains filtered or unexported fields
}
Custom configuration message
func (*CustomConfig) Descriptor
deprecated
func (*CustomConfig) Descriptor() ([]byte, []int)
Deprecated: Use CustomConfig.ProtoReflect.Descriptor instead.
func (*CustomConfig) GetCustomField ¶
func (x *CustomConfig) GetCustomField() string
func (*CustomConfig) GetCustomNumber ¶
func (x *CustomConfig) GetCustomNumber() int32
func (*CustomConfig) GetItems ¶
func (x *CustomConfig) GetItems() []string
func (*CustomConfig) GetNested ¶
func (x *CustomConfig) GetNested() *CustomConfig_NestedConfig
func (*CustomConfig) ProtoMessage ¶
func (*CustomConfig) ProtoMessage()
func (*CustomConfig) ProtoReflect ¶
func (x *CustomConfig) ProtoReflect() protoreflect.Message
func (*CustomConfig) Reset ¶
func (x *CustomConfig) Reset()
func (*CustomConfig) String ¶
func (x *CustomConfig) String() string
func (*CustomConfig) Validate ¶
func (m *CustomConfig) Validate() error
Validate checks the field values on CustomConfig 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 (*CustomConfig) ValidateAll ¶
func (m *CustomConfig) ValidateAll() error
ValidateAll checks the field values on CustomConfig 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 CustomConfigMultiError, or nil if none found.
type CustomConfigMultiError ¶
type CustomConfigMultiError []error
CustomConfigMultiError is an error wrapping multiple validation errors returned by CustomConfig.ValidateAll() if the designated constraints aren't met.
func (CustomConfigMultiError) AllErrors ¶
func (m CustomConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomConfigMultiError) Error ¶
func (m CustomConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomConfigValidationError ¶
type CustomConfigValidationError struct {
// contains filtered or unexported fields
}
CustomConfigValidationError is the validation error returned by CustomConfig.Validate if the designated constraints aren't met.
func (CustomConfigValidationError) Cause ¶
func (e CustomConfigValidationError) Cause() error
Cause function returns cause value.
func (CustomConfigValidationError) Error ¶
func (e CustomConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CustomConfigValidationError) ErrorName ¶
func (e CustomConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CustomConfigValidationError) Field ¶
func (e CustomConfigValidationError) Field() string
Field function returns field value.
func (CustomConfigValidationError) Key ¶
func (e CustomConfigValidationError) Key() bool
Key function returns key value.
func (CustomConfigValidationError) Reason ¶
func (e CustomConfigValidationError) Reason() string
Reason function returns reason value.
type CustomConfig_NestedConfig ¶
type CustomConfig_NestedConfig struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*CustomConfig_NestedConfig) Descriptor
deprecated
func (*CustomConfig_NestedConfig) Descriptor() ([]byte, []int)
Deprecated: Use CustomConfig_NestedConfig.ProtoReflect.Descriptor instead.
func (*CustomConfig_NestedConfig) GetEnabled ¶
func (x *CustomConfig_NestedConfig) GetEnabled() bool
func (*CustomConfig_NestedConfig) GetName ¶
func (x *CustomConfig_NestedConfig) GetName() string
func (*CustomConfig_NestedConfig) ProtoMessage ¶
func (*CustomConfig_NestedConfig) ProtoMessage()
func (*CustomConfig_NestedConfig) ProtoReflect ¶
func (x *CustomConfig_NestedConfig) ProtoReflect() protoreflect.Message
func (*CustomConfig_NestedConfig) Reset ¶
func (x *CustomConfig_NestedConfig) Reset()
func (*CustomConfig_NestedConfig) String ¶
func (x *CustomConfig_NestedConfig) String() string
func (*CustomConfig_NestedConfig) Validate ¶
func (m *CustomConfig_NestedConfig) Validate() error
Validate checks the field values on CustomConfig_NestedConfig 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 (*CustomConfig_NestedConfig) ValidateAll ¶
func (m *CustomConfig_NestedConfig) ValidateAll() error
ValidateAll checks the field values on CustomConfig_NestedConfig 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 CustomConfig_NestedConfigMultiError, or nil if none found.
type CustomConfig_NestedConfigMultiError ¶
type CustomConfig_NestedConfigMultiError []error
CustomConfig_NestedConfigMultiError is an error wrapping multiple validation errors returned by CustomConfig_NestedConfig.ValidateAll() if the designated constraints aren't met.
func (CustomConfig_NestedConfigMultiError) AllErrors ¶
func (m CustomConfig_NestedConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CustomConfig_NestedConfigMultiError) Error ¶
func (m CustomConfig_NestedConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CustomConfig_NestedConfigValidationError ¶
type CustomConfig_NestedConfigValidationError struct {
// contains filtered or unexported fields
}
CustomConfig_NestedConfigValidationError is the validation error returned by CustomConfig_NestedConfig.Validate if the designated constraints aren't met.
func (CustomConfig_NestedConfigValidationError) Cause ¶
func (e CustomConfig_NestedConfigValidationError) Cause() error
Cause function returns cause value.
func (CustomConfig_NestedConfigValidationError) Error ¶
func (e CustomConfig_NestedConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CustomConfig_NestedConfigValidationError) ErrorName ¶
func (e CustomConfig_NestedConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CustomConfig_NestedConfigValidationError) Field ¶
func (e CustomConfig_NestedConfigValidationError) Field() string
Field function returns field value.
func (CustomConfig_NestedConfigValidationError) Key ¶
func (e CustomConfig_NestedConfigValidationError) Key() bool
Key function returns key value.
func (CustomConfig_NestedConfigValidationError) Reason ¶
func (e CustomConfig_NestedConfigValidationError) Reason() string
Reason function returns reason value.