Documentation
¶
Index ¶
- Variables
- type AssociationType
- func (AssociationType) Descriptor() protoreflect.EnumDescriptor
- func (x AssociationType) Enum() *AssociationType
- func (AssociationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AssociationType) Number() protoreflect.EnumNumber
- func (x AssociationType) String() string
- func (AssociationType) Type() protoreflect.EnumType
- type BelongsToOptions
- func (*BelongsToOptions) Descriptor() ([]byte, []int)deprecated
- func (x *BelongsToOptions) GetAssociationForeignkey() string
- func (x *BelongsToOptions) GetAssociationSaveReference() bool
- func (x *BelongsToOptions) GetDisableAssociationAutocreate() bool
- func (x *BelongsToOptions) GetDisableAssociationAutoupdate() bool
- func (x *BelongsToOptions) GetForeignkey() string
- func (x *BelongsToOptions) GetForeignkeyTag() *GormTag
- func (x *BelongsToOptions) GetPreload() bool
- func (msg *BelongsToOptions) MarshalJSON() ([]byte, error)
- func (*BelongsToOptions) ProtoMessage()
- func (x *BelongsToOptions) ProtoReflect() protoreflect.Message
- func (x *BelongsToOptions) Reset()
- func (x *BelongsToOptions) String() string
- func (msg *BelongsToOptions) UnmarshalJSON(b []byte) error
- func (m *BelongsToOptions) Validate() error
- func (m *BelongsToOptions) ValidateAll() error
- type BelongsToOptionsMultiError
- type BelongsToOptionsValidationError
- func (e BelongsToOptionsValidationError) Cause() error
- func (e BelongsToOptionsValidationError) Error() string
- func (e BelongsToOptionsValidationError) ErrorName() string
- func (e BelongsToOptionsValidationError) Field() string
- func (e BelongsToOptionsValidationError) Key() bool
- func (e BelongsToOptionsValidationError) Reason() string
- type GormFieldOptions
- func (*GormFieldOptions) Descriptor() ([]byte, []int)deprecated
- func (m *GormFieldOptions) GetAssociation() isGormFieldOptions_Association
- func (x *GormFieldOptions) GetBelongsTo() *BelongsToOptions
- func (x *GormFieldOptions) GetEnumAsString() bool
- func (x *GormFieldOptions) GetGormTag() string
- func (x *GormFieldOptions) GetHasMany() *HasManyOptions
- func (x *GormFieldOptions) GetHasOne() *HasOneOptions
- func (x *GormFieldOptions) GetIgnore() bool
- func (x *GormFieldOptions) GetManyToMany() *ManyToManyOptions
- func (msg *GormFieldOptions) MarshalJSON() ([]byte, error)
- func (*GormFieldOptions) ProtoMessage()
- func (x *GormFieldOptions) ProtoReflect() protoreflect.Message
- func (x *GormFieldOptions) Reset()
- func (x *GormFieldOptions) String() string
- func (msg *GormFieldOptions) UnmarshalJSON(b []byte) error
- func (m *GormFieldOptions) Validate() error
- func (m *GormFieldOptions) ValidateAll() error
- type GormFieldOptionsMultiError
- type GormFieldOptionsValidationError
- func (e GormFieldOptionsValidationError) Cause() error
- func (e GormFieldOptionsValidationError) Error() string
- func (e GormFieldOptionsValidationError) ErrorName() string
- func (e GormFieldOptionsValidationError) Field() string
- func (e GormFieldOptionsValidationError) Key() bool
- func (e GormFieldOptionsValidationError) Reason() string
- type GormFieldOptions_BelongsTo
- type GormFieldOptions_HasMany
- type GormFieldOptions_HasOne
- type GormFieldOptions_ManyToMany
- type GormFileOptions
- func (*GormFileOptions) Descriptor() ([]byte, []int)deprecated
- func (msg *GormFileOptions) MarshalJSON() ([]byte, error)
- func (*GormFileOptions) ProtoMessage()
- func (x *GormFileOptions) ProtoReflect() protoreflect.Message
- func (x *GormFileOptions) Reset()
- func (x *GormFileOptions) String() string
- func (msg *GormFileOptions) UnmarshalJSON(b []byte) error
- func (m *GormFileOptions) Validate() error
- func (m *GormFileOptions) ValidateAll() error
- type GormFileOptionsMultiError
- type GormFileOptionsValidationError
- func (e GormFileOptionsValidationError) Cause() error
- func (e GormFileOptionsValidationError) Error() string
- func (e GormFileOptionsValidationError) ErrorName() string
- func (e GormFileOptionsValidationError) Field() string
- func (e GormFileOptionsValidationError) Key() bool
- func (e GormFileOptionsValidationError) Reason() string
- type GormMessageOptions
- func (*GormMessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GormMessageOptions) GetOrmable() bool
- func (x *GormMessageOptions) GetTable() string
- func (msg *GormMessageOptions) MarshalJSON() ([]byte, error)
- func (*GormMessageOptions) ProtoMessage()
- func (x *GormMessageOptions) ProtoReflect() protoreflect.Message
- func (x *GormMessageOptions) Reset()
- func (x *GormMessageOptions) String() string
- func (msg *GormMessageOptions) UnmarshalJSON(b []byte) error
- func (m *GormMessageOptions) Validate() error
- func (m *GormMessageOptions) ValidateAll() error
- type GormMessageOptionsMultiError
- type GormMessageOptionsValidationError
- func (e GormMessageOptionsValidationError) Cause() error
- func (e GormMessageOptionsValidationError) Error() string
- func (e GormMessageOptionsValidationError) ErrorName() string
- func (e GormMessageOptionsValidationError) Field() string
- func (e GormMessageOptionsValidationError) Key() bool
- func (e GormMessageOptionsValidationError) Reason() string
- type GormTag
- func (*GormTag) Descriptor() ([]byte, []int)deprecated
- func (x *GormTag) GetAssociationForeignkey() string
- func (x *GormTag) GetAssociationJointableForeignkey() string
- func (x *GormTag) GetAssociationSaveReference() bool
- func (x *GormTag) GetAutoIncrement() bool
- func (x *GormTag) GetColumn() string
- func (x *GormTag) GetDefault() string
- func (x *GormTag) GetDisableAssociationAutocreate() bool
- func (x *GormTag) GetDisableAssociationAutoupdate() bool
- func (x *GormTag) GetEmbedded() bool
- func (x *GormTag) GetEmbeddedPrefix() string
- func (x *GormTag) GetForeignkey() string
- func (x *GormTag) GetIgnore() bool
- func (x *GormTag) GetIndex() string
- func (x *GormTag) GetJointableForeignkey() string
- func (x *GormTag) GetManyToMany() string
- func (x *GormTag) GetNotNull() bool
- func (x *GormTag) GetPrecision() int32
- func (x *GormTag) GetPreload() bool
- func (x *GormTag) GetPrimaryKey() bool
- func (x *GormTag) GetSerializer() string
- func (x *GormTag) GetSize() int32
- func (x *GormTag) GetType() string
- func (x *GormTag) GetUnique() bool
- func (x *GormTag) GetUniqueIndex() string
- func (msg *GormTag) MarshalJSON() ([]byte, error)
- func (*GormTag) ProtoMessage()
- func (x *GormTag) ProtoReflect() protoreflect.Message
- func (x *GormTag) Reset()
- func (x *GormTag) String() string
- func (msg *GormTag) UnmarshalJSON(b []byte) error
- func (m *GormTag) Validate() error
- func (m *GormTag) ValidateAll() error
- type GormTagMultiError
- type GormTagValidationError
- type HasManyOptions
- func (*HasManyOptions) Descriptor() ([]byte, []int)deprecated
- func (x *HasManyOptions) GetAppend() bool
- func (x *HasManyOptions) GetAssociationForeignkey() string
- func (x *HasManyOptions) GetAssociationSaveReference() bool
- func (x *HasManyOptions) GetClear() bool
- func (x *HasManyOptions) GetDisableAssociationAutocreate() bool
- func (x *HasManyOptions) GetDisableAssociationAutoupdate() bool
- func (x *HasManyOptions) GetForeignkey() string
- func (x *HasManyOptions) GetForeignkeyTag() *GormTag
- func (x *HasManyOptions) GetPositionField() string
- func (x *HasManyOptions) GetPositionFieldTag() *GormTag
- func (x *HasManyOptions) GetPreload() bool
- func (x *HasManyOptions) GetReplace() bool
- func (msg *HasManyOptions) MarshalJSON() ([]byte, error)
- func (*HasManyOptions) ProtoMessage()
- func (x *HasManyOptions) ProtoReflect() protoreflect.Message
- func (x *HasManyOptions) Reset()
- func (x *HasManyOptions) String() string
- func (msg *HasManyOptions) UnmarshalJSON(b []byte) error
- func (m *HasManyOptions) Validate() error
- func (m *HasManyOptions) ValidateAll() error
- type HasManyOptionsMultiError
- type HasManyOptionsValidationError
- func (e HasManyOptionsValidationError) Cause() error
- func (e HasManyOptionsValidationError) Error() string
- func (e HasManyOptionsValidationError) ErrorName() string
- func (e HasManyOptionsValidationError) Field() string
- func (e HasManyOptionsValidationError) Key() bool
- func (e HasManyOptionsValidationError) Reason() string
- type HasOneOptions
- func (*HasOneOptions) Descriptor() ([]byte, []int)deprecated
- func (x *HasOneOptions) GetAppend() bool
- func (x *HasOneOptions) GetAssociationForeignkey() string
- func (x *HasOneOptions) GetAssociationSaveReference() bool
- func (x *HasOneOptions) GetClear() bool
- func (x *HasOneOptions) GetDisableAssociationAutocreate() bool
- func (x *HasOneOptions) GetDisableAssociationAutoupdate() bool
- func (x *HasOneOptions) GetForeignkey() string
- func (x *HasOneOptions) GetForeignkeyTag() *GormTag
- func (x *HasOneOptions) GetPreload() bool
- func (x *HasOneOptions) GetReplace() bool
- func (msg *HasOneOptions) MarshalJSON() ([]byte, error)
- func (*HasOneOptions) ProtoMessage()
- func (x *HasOneOptions) ProtoReflect() protoreflect.Message
- func (x *HasOneOptions) Reset()
- func (x *HasOneOptions) String() string
- func (msg *HasOneOptions) UnmarshalJSON(b []byte) error
- func (m *HasOneOptions) Validate() error
- func (m *HasOneOptions) ValidateAll() error
- type HasOneOptionsMultiError
- type HasOneOptionsValidationError
- func (e HasOneOptionsValidationError) Cause() error
- func (e HasOneOptionsValidationError) Error() string
- func (e HasOneOptionsValidationError) ErrorName() string
- func (e HasOneOptionsValidationError) Field() string
- func (e HasOneOptionsValidationError) Key() bool
- func (e HasOneOptionsValidationError) Reason() string
- type ManyToManyOptions
- func (*ManyToManyOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ManyToManyOptions) GetAppend() bool
- func (x *ManyToManyOptions) GetAssociationForeignkey() string
- func (x *ManyToManyOptions) GetAssociationJointableForeignkey() string
- func (x *ManyToManyOptions) GetAssociationSaveReference() bool
- func (x *ManyToManyOptions) GetClear() bool
- func (x *ManyToManyOptions) GetDisableAssociationAutocreate() bool
- func (x *ManyToManyOptions) GetDisableAssociationAutoupdate() bool
- func (x *ManyToManyOptions) GetForeignkey() string
- func (x *ManyToManyOptions) GetJointable() string
- func (x *ManyToManyOptions) GetJointableForeignkey() string
- func (x *ManyToManyOptions) GetPreload() bool
- func (x *ManyToManyOptions) GetReplace() bool
- func (msg *ManyToManyOptions) MarshalJSON() ([]byte, error)
- func (*ManyToManyOptions) ProtoMessage()
- func (x *ManyToManyOptions) ProtoReflect() protoreflect.Message
- func (x *ManyToManyOptions) Reset()
- func (x *ManyToManyOptions) String() string
- func (msg *ManyToManyOptions) UnmarshalJSON(b []byte) error
- func (m *ManyToManyOptions) Validate() error
- func (m *ManyToManyOptions) ValidateAll() error
- type ManyToManyOptionsMultiError
- type ManyToManyOptionsValidationError
- func (e ManyToManyOptionsValidationError) Cause() error
- func (e ManyToManyOptionsValidationError) Error() string
- func (e ManyToManyOptionsValidationError) ErrorName() string
- func (e ManyToManyOptionsValidationError) Field() string
- func (e ManyToManyOptionsValidationError) Key() bool
- func (e ManyToManyOptionsValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( AssociationType_name = map[int32]string{ 0: "ASSOCIATION_UNDEFINED", 1: "BELONGS_TO", 2: "HAS_ONE", 3: "HAS_MANY", 4: "MANY_TO_MANY", } AssociationType_value = map[string]int32{ "ASSOCIATION_UNDEFINED": 0, "BELONGS_TO": 1, "HAS_ONE": 2, "HAS_MANY": 3, "MANY_TO_MANY": 4, } )
Enum value maps for AssociationType.
var (
// optional gorm.GormFieldOptions field = 52119;
E_Field = &file_options_gorm_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
var (
// optional gorm.GormFileOptions file_opts = 52119;
E_FileOpts = &file_options_gorm_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var ( // ormable will cause orm code to be generated for this message/object // // optional gorm.GormMessageOptions opts = 52119; E_Opts = &file_options_gorm_proto_extTypes[1] )
Extension fields to descriptorpb.MessageOptions.
var File_options_gorm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AssociationType ¶
type AssociationType int32
const ( AssociationType_ASSOCIATION_UNDEFINED AssociationType = 0 AssociationType_BELONGS_TO AssociationType = 1 AssociationType_HAS_ONE AssociationType = 2 AssociationType_HAS_MANY AssociationType = 3 AssociationType_MANY_TO_MANY AssociationType = 4 )
func (AssociationType) Descriptor ¶
func (AssociationType) Descriptor() protoreflect.EnumDescriptor
func (AssociationType) Enum ¶
func (x AssociationType) Enum() *AssociationType
func (AssociationType) EnumDescriptor
deprecated
func (AssociationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AssociationType.Descriptor instead.
func (AssociationType) Number ¶
func (x AssociationType) Number() protoreflect.EnumNumber
func (AssociationType) String ¶
func (x AssociationType) String() string
func (AssociationType) Type ¶
func (AssociationType) Type() protoreflect.EnumType
type BelongsToOptions ¶
type BelongsToOptions struct { Foreignkey string `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"` AssociationForeignkey string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"` DisableAssociationAutoupdate bool `` /* 148-byte string literal not displayed */ DisableAssociationAutocreate bool `` /* 148-byte string literal not displayed */ AssociationSaveReference bool `` /* 136-byte string literal not displayed */ Preload bool `protobuf:"varint,7,opt,name=preload,proto3" json:"preload,omitempty"` // contains filtered or unexported fields }
func (*BelongsToOptions) Descriptor
deprecated
func (*BelongsToOptions) Descriptor() ([]byte, []int)
Deprecated: Use BelongsToOptions.ProtoReflect.Descriptor instead.
func (*BelongsToOptions) GetAssociationForeignkey ¶
func (x *BelongsToOptions) GetAssociationForeignkey() string
func (*BelongsToOptions) GetAssociationSaveReference ¶
func (x *BelongsToOptions) GetAssociationSaveReference() bool
func (*BelongsToOptions) GetDisableAssociationAutocreate ¶
func (x *BelongsToOptions) GetDisableAssociationAutocreate() bool
func (*BelongsToOptions) GetDisableAssociationAutoupdate ¶
func (x *BelongsToOptions) GetDisableAssociationAutoupdate() bool
func (*BelongsToOptions) GetForeignkey ¶
func (x *BelongsToOptions) GetForeignkey() string
func (*BelongsToOptions) GetForeignkeyTag ¶
func (x *BelongsToOptions) GetForeignkeyTag() *GormTag
func (*BelongsToOptions) GetPreload ¶
func (x *BelongsToOptions) GetPreload() bool
func (*BelongsToOptions) MarshalJSON ¶
func (msg *BelongsToOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*BelongsToOptions) ProtoMessage ¶
func (*BelongsToOptions) ProtoMessage()
func (*BelongsToOptions) ProtoReflect ¶
func (x *BelongsToOptions) ProtoReflect() protoreflect.Message
func (*BelongsToOptions) Reset ¶
func (x *BelongsToOptions) Reset()
func (*BelongsToOptions) String ¶
func (x *BelongsToOptions) String() string
func (*BelongsToOptions) UnmarshalJSON ¶
func (msg *BelongsToOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*BelongsToOptions) Validate ¶
func (m *BelongsToOptions) Validate() error
Validate checks the field values on BelongsToOptions 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 (*BelongsToOptions) ValidateAll ¶
func (m *BelongsToOptions) ValidateAll() error
ValidateAll checks the field values on BelongsToOptions 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 BelongsToOptionsMultiError, or nil if none found.
type BelongsToOptionsMultiError ¶
type BelongsToOptionsMultiError []error
BelongsToOptionsMultiError is an error wrapping multiple validation errors returned by BelongsToOptions.ValidateAll() if the designated constraints aren't met.
func (BelongsToOptionsMultiError) AllErrors ¶
func (m BelongsToOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BelongsToOptionsMultiError) Error ¶
func (m BelongsToOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BelongsToOptionsValidationError ¶
type BelongsToOptionsValidationError struct {
// contains filtered or unexported fields
}
BelongsToOptionsValidationError is the validation error returned by BelongsToOptions.Validate if the designated constraints aren't met.
func (BelongsToOptionsValidationError) Cause ¶
func (e BelongsToOptionsValidationError) Cause() error
Cause function returns cause value.
func (BelongsToOptionsValidationError) Error ¶
func (e BelongsToOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (BelongsToOptionsValidationError) ErrorName ¶
func (e BelongsToOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (BelongsToOptionsValidationError) Field ¶
func (e BelongsToOptionsValidationError) Field() string
Field function returns field value.
func (BelongsToOptionsValidationError) Key ¶
func (e BelongsToOptionsValidationError) Key() bool
Key function returns key value.
func (BelongsToOptionsValidationError) Reason ¶
func (e BelongsToOptionsValidationError) Reason() string
Reason function returns reason value.
type GormFieldOptions ¶
type GormFieldOptions struct { GormTag string `protobuf:"bytes,1,opt,name=gorm_tag,json=gormTag,proto3" json:"gorm_tag,omitempty"` // Types that are assignable to Association: // // *GormFieldOptions_HasOne // *GormFieldOptions_BelongsTo // *GormFieldOptions_HasMany // *GormFieldOptions_ManyToMany Association isGormFieldOptions_Association `protobuf_oneof:"association"` Ignore bool `protobuf:"varint,7,opt,name=ignore,proto3" json:"ignore,omitempty"` EnumAsString bool `protobuf:"varint,8,opt,name=enum_as_string,json=enumAsString,proto3" json:"enum_as_string,omitempty"` // contains filtered or unexported fields }
func (*GormFieldOptions) Descriptor
deprecated
func (*GormFieldOptions) Descriptor() ([]byte, []int)
Deprecated: Use GormFieldOptions.ProtoReflect.Descriptor instead.
func (*GormFieldOptions) GetAssociation ¶
func (m *GormFieldOptions) GetAssociation() isGormFieldOptions_Association
func (*GormFieldOptions) GetBelongsTo ¶
func (x *GormFieldOptions) GetBelongsTo() *BelongsToOptions
func (*GormFieldOptions) GetEnumAsString ¶
func (x *GormFieldOptions) GetEnumAsString() bool
func (*GormFieldOptions) GetGormTag ¶
func (x *GormFieldOptions) GetGormTag() string
func (*GormFieldOptions) GetHasMany ¶
func (x *GormFieldOptions) GetHasMany() *HasManyOptions
func (*GormFieldOptions) GetHasOne ¶
func (x *GormFieldOptions) GetHasOne() *HasOneOptions
func (*GormFieldOptions) GetIgnore ¶
func (x *GormFieldOptions) GetIgnore() bool
func (*GormFieldOptions) GetManyToMany ¶
func (x *GormFieldOptions) GetManyToMany() *ManyToManyOptions
func (*GormFieldOptions) MarshalJSON ¶
func (msg *GormFieldOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GormFieldOptions) ProtoMessage ¶
func (*GormFieldOptions) ProtoMessage()
func (*GormFieldOptions) ProtoReflect ¶
func (x *GormFieldOptions) ProtoReflect() protoreflect.Message
func (*GormFieldOptions) Reset ¶
func (x *GormFieldOptions) Reset()
func (*GormFieldOptions) String ¶
func (x *GormFieldOptions) String() string
func (*GormFieldOptions) UnmarshalJSON ¶
func (msg *GormFieldOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GormFieldOptions) Validate ¶
func (m *GormFieldOptions) Validate() error
Validate checks the field values on GormFieldOptions 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 (*GormFieldOptions) ValidateAll ¶
func (m *GormFieldOptions) ValidateAll() error
ValidateAll checks the field values on GormFieldOptions 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 GormFieldOptionsMultiError, or nil if none found.
type GormFieldOptionsMultiError ¶
type GormFieldOptionsMultiError []error
GormFieldOptionsMultiError is an error wrapping multiple validation errors returned by GormFieldOptions.ValidateAll() if the designated constraints aren't met.
func (GormFieldOptionsMultiError) AllErrors ¶
func (m GormFieldOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GormFieldOptionsMultiError) Error ¶
func (m GormFieldOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GormFieldOptionsValidationError ¶
type GormFieldOptionsValidationError struct {
// contains filtered or unexported fields
}
GormFieldOptionsValidationError is the validation error returned by GormFieldOptions.Validate if the designated constraints aren't met.
func (GormFieldOptionsValidationError) Cause ¶
func (e GormFieldOptionsValidationError) Cause() error
Cause function returns cause value.
func (GormFieldOptionsValidationError) Error ¶
func (e GormFieldOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (GormFieldOptionsValidationError) ErrorName ¶
func (e GormFieldOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (GormFieldOptionsValidationError) Field ¶
func (e GormFieldOptionsValidationError) Field() string
Field function returns field value.
func (GormFieldOptionsValidationError) Key ¶
func (e GormFieldOptionsValidationError) Key() bool
Key function returns key value.
func (GormFieldOptionsValidationError) Reason ¶
func (e GormFieldOptionsValidationError) Reason() string
Reason function returns reason value.
type GormFieldOptions_BelongsTo ¶
type GormFieldOptions_BelongsTo struct {
BelongsTo *BelongsToOptions `protobuf:"bytes,4,opt,name=belongs_to,json=belongsTo,proto3,oneof"`
}
type GormFieldOptions_HasMany ¶
type GormFieldOptions_HasMany struct {
HasMany *HasManyOptions `protobuf:"bytes,5,opt,name=has_many,json=hasMany,proto3,oneof"`
}
type GormFieldOptions_HasOne ¶
type GormFieldOptions_HasOne struct {
HasOne *HasOneOptions `protobuf:"bytes,3,opt,name=has_one,json=hasOne,proto3,oneof"`
}
type GormFieldOptions_ManyToMany ¶
type GormFieldOptions_ManyToMany struct {
ManyToMany *ManyToManyOptions `protobuf:"bytes,6,opt,name=many_to_many,json=manyToMany,proto3,oneof"`
}
type GormFileOptions ¶
type GormFileOptions struct {
// contains filtered or unexported fields
}
func (*GormFileOptions) Descriptor
deprecated
func (*GormFileOptions) Descriptor() ([]byte, []int)
Deprecated: Use GormFileOptions.ProtoReflect.Descriptor instead.
func (*GormFileOptions) MarshalJSON ¶
func (msg *GormFileOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GormFileOptions) ProtoMessage ¶
func (*GormFileOptions) ProtoMessage()
func (*GormFileOptions) ProtoReflect ¶
func (x *GormFileOptions) ProtoReflect() protoreflect.Message
func (*GormFileOptions) Reset ¶
func (x *GormFileOptions) Reset()
func (*GormFileOptions) String ¶
func (x *GormFileOptions) String() string
func (*GormFileOptions) UnmarshalJSON ¶
func (msg *GormFileOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GormFileOptions) Validate ¶
func (m *GormFileOptions) Validate() error
Validate checks the field values on GormFileOptions 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 (*GormFileOptions) ValidateAll ¶
func (m *GormFileOptions) ValidateAll() error
ValidateAll checks the field values on GormFileOptions 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 GormFileOptionsMultiError, or nil if none found.
type GormFileOptionsMultiError ¶
type GormFileOptionsMultiError []error
GormFileOptionsMultiError is an error wrapping multiple validation errors returned by GormFileOptions.ValidateAll() if the designated constraints aren't met.
func (GormFileOptionsMultiError) AllErrors ¶
func (m GormFileOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GormFileOptionsMultiError) Error ¶
func (m GormFileOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GormFileOptionsValidationError ¶
type GormFileOptionsValidationError struct {
// contains filtered or unexported fields
}
GormFileOptionsValidationError is the validation error returned by GormFileOptions.Validate if the designated constraints aren't met.
func (GormFileOptionsValidationError) Cause ¶
func (e GormFileOptionsValidationError) Cause() error
Cause function returns cause value.
func (GormFileOptionsValidationError) Error ¶
func (e GormFileOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (GormFileOptionsValidationError) ErrorName ¶
func (e GormFileOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (GormFileOptionsValidationError) Field ¶
func (e GormFileOptionsValidationError) Field() string
Field function returns field value.
func (GormFileOptionsValidationError) Key ¶
func (e GormFileOptionsValidationError) Key() bool
Key function returns key value.
func (GormFileOptionsValidationError) Reason ¶
func (e GormFileOptionsValidationError) Reason() string
Reason function returns reason value.
type GormMessageOptions ¶
type GormMessageOptions struct { Ormable bool `protobuf:"varint,1,opt,name=ormable,proto3" json:"ormable,omitempty"` Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"` // contains filtered or unexported fields }
func (*GormMessageOptions) Descriptor
deprecated
func (*GormMessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use GormMessageOptions.ProtoReflect.Descriptor instead.
func (*GormMessageOptions) GetOrmable ¶
func (x *GormMessageOptions) GetOrmable() bool
func (*GormMessageOptions) GetTable ¶
func (x *GormMessageOptions) GetTable() string
func (*GormMessageOptions) MarshalJSON ¶
func (msg *GormMessageOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GormMessageOptions) ProtoMessage ¶
func (*GormMessageOptions) ProtoMessage()
func (*GormMessageOptions) ProtoReflect ¶
func (x *GormMessageOptions) ProtoReflect() protoreflect.Message
func (*GormMessageOptions) Reset ¶
func (x *GormMessageOptions) Reset()
func (*GormMessageOptions) String ¶
func (x *GormMessageOptions) String() string
func (*GormMessageOptions) UnmarshalJSON ¶
func (msg *GormMessageOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GormMessageOptions) Validate ¶
func (m *GormMessageOptions) Validate() error
Validate checks the field values on GormMessageOptions 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 (*GormMessageOptions) ValidateAll ¶
func (m *GormMessageOptions) ValidateAll() error
ValidateAll checks the field values on GormMessageOptions 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 GormMessageOptionsMultiError, or nil if none found.
type GormMessageOptionsMultiError ¶
type GormMessageOptionsMultiError []error
GormMessageOptionsMultiError is an error wrapping multiple validation errors returned by GormMessageOptions.ValidateAll() if the designated constraints aren't met.
func (GormMessageOptionsMultiError) AllErrors ¶
func (m GormMessageOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GormMessageOptionsMultiError) Error ¶
func (m GormMessageOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GormMessageOptionsValidationError ¶
type GormMessageOptionsValidationError struct {
// contains filtered or unexported fields
}
GormMessageOptionsValidationError is the validation error returned by GormMessageOptions.Validate if the designated constraints aren't met.
func (GormMessageOptionsValidationError) Cause ¶
func (e GormMessageOptionsValidationError) Cause() error
Cause function returns cause value.
func (GormMessageOptionsValidationError) Error ¶
func (e GormMessageOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (GormMessageOptionsValidationError) ErrorName ¶
func (e GormMessageOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (GormMessageOptionsValidationError) Field ¶
func (e GormMessageOptionsValidationError) Field() string
Field function returns field value.
func (GormMessageOptionsValidationError) Key ¶
func (e GormMessageOptionsValidationError) Key() bool
Key function returns key value.
func (GormMessageOptionsValidationError) Reason ¶
func (e GormMessageOptionsValidationError) Reason() string
Reason function returns reason value.
type GormTag ¶
type GormTag struct { Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Precision int32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"` PrimaryKey bool `protobuf:"varint,5,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"` Unique bool `protobuf:"varint,6,opt,name=unique,proto3" json:"unique,omitempty"` Default string `protobuf:"bytes,7,opt,name=default,proto3" json:"default,omitempty"` NotNull bool `protobuf:"varint,8,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"` AutoIncrement bool `protobuf:"varint,9,opt,name=auto_increment,json=autoIncrement,proto3" json:"auto_increment,omitempty"` Index string `protobuf:"bytes,10,opt,name=index,proto3" json:"index,omitempty"` UniqueIndex string `protobuf:"bytes,11,opt,name=unique_index,json=uniqueIndex,proto3" json:"unique_index,omitempty"` Embedded bool `protobuf:"varint,12,opt,name=embedded,proto3" json:"embedded,omitempty"` EmbeddedPrefix string `protobuf:"bytes,13,opt,name=embedded_prefix,json=embeddedPrefix,proto3" json:"embedded_prefix,omitempty"` Ignore bool `protobuf:"varint,14,opt,name=ignore,proto3" json:"ignore,omitempty"` Foreignkey string `protobuf:"bytes,15,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"` AssociationForeignkey string `protobuf:"bytes,16,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"` ManyToMany string `protobuf:"bytes,17,opt,name=many_to_many,json=manyToMany,proto3" json:"many_to_many,omitempty"` JointableForeignkey string `protobuf:"bytes,18,opt,name=jointable_foreignkey,json=jointableForeignkey,proto3" json:"jointable_foreignkey,omitempty"` AssociationJointableForeignkey string `` /* 154-byte string literal not displayed */ DisableAssociationAutoupdate bool `` /* 149-byte string literal not displayed */ DisableAssociationAutocreate bool `` /* 149-byte string literal not displayed */ AssociationSaveReference bool `` /* 137-byte string literal not displayed */ Preload bool `protobuf:"varint,23,opt,name=preload,proto3" json:"preload,omitempty"` Serializer string `protobuf:"bytes,24,opt,name=serializer,proto3" json:"serializer,omitempty"` // contains filtered or unexported fields }
func (*GormTag) Descriptor
deprecated
func (*GormTag) GetAssociationForeignkey ¶
func (*GormTag) GetAssociationJointableForeignkey ¶
func (*GormTag) GetAssociationSaveReference ¶
func (*GormTag) GetAutoIncrement ¶
func (*GormTag) GetDefault ¶
func (*GormTag) GetDisableAssociationAutocreate ¶
func (*GormTag) GetDisableAssociationAutoupdate ¶
func (*GormTag) GetEmbedded ¶
func (*GormTag) GetEmbeddedPrefix ¶
func (*GormTag) GetForeignkey ¶
func (*GormTag) GetJointableForeignkey ¶
func (*GormTag) GetManyToMany ¶
func (*GormTag) GetNotNull ¶
func (*GormTag) GetPrecision ¶
func (*GormTag) GetPreload ¶
func (*GormTag) GetPrimaryKey ¶
func (*GormTag) GetSerializer ¶
func (*GormTag) GetUniqueIndex ¶
func (*GormTag) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*GormTag) ProtoMessage ¶
func (*GormTag) ProtoMessage()
func (*GormTag) ProtoReflect ¶
func (x *GormTag) ProtoReflect() protoreflect.Message
func (*GormTag) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*GormTag) Validate ¶
Validate checks the field values on GormTag 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 (*GormTag) ValidateAll ¶
ValidateAll checks the field values on GormTag 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 GormTagMultiError, or nil if none found.
type GormTagMultiError ¶
type GormTagMultiError []error
GormTagMultiError is an error wrapping multiple validation errors returned by GormTag.ValidateAll() if the designated constraints aren't met.
func (GormTagMultiError) AllErrors ¶
func (m GormTagMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GormTagMultiError) Error ¶
func (m GormTagMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GormTagValidationError ¶
type GormTagValidationError struct {
// contains filtered or unexported fields
}
GormTagValidationError is the validation error returned by GormTag.Validate if the designated constraints aren't met.
func (GormTagValidationError) Cause ¶
func (e GormTagValidationError) Cause() error
Cause function returns cause value.
func (GormTagValidationError) Error ¶
func (e GormTagValidationError) Error() string
Error satisfies the builtin error interface
func (GormTagValidationError) ErrorName ¶
func (e GormTagValidationError) ErrorName() string
ErrorName returns error name.
func (GormTagValidationError) Field ¶
func (e GormTagValidationError) Field() string
Field function returns field value.
func (GormTagValidationError) Key ¶
func (e GormTagValidationError) Key() bool
Key function returns key value.
func (GormTagValidationError) Reason ¶
func (e GormTagValidationError) Reason() string
Reason function returns reason value.
type HasManyOptions ¶
type HasManyOptions struct { Foreignkey string `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"` AssociationForeignkey string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"` PositionField string `protobuf:"bytes,4,opt,name=position_field,json=positionField,proto3" json:"position_field,omitempty"` PositionFieldTag *GormTag `protobuf:"bytes,5,opt,name=position_field_tag,json=positionFieldTag,proto3" json:"position_field_tag,omitempty"` DisableAssociationAutoupdate bool `` /* 148-byte string literal not displayed */ DisableAssociationAutocreate bool `` /* 148-byte string literal not displayed */ AssociationSaveReference bool `` /* 136-byte string literal not displayed */ Preload bool `protobuf:"varint,9,opt,name=preload,proto3" json:"preload,omitempty"` Replace bool `protobuf:"varint,10,opt,name=replace,proto3" json:"replace,omitempty"` Append bool `protobuf:"varint,11,opt,name=append,proto3" json:"append,omitempty"` Clear bool `protobuf:"varint,12,opt,name=clear,proto3" json:"clear,omitempty"` // contains filtered or unexported fields }
func (*HasManyOptions) Descriptor
deprecated
func (*HasManyOptions) Descriptor() ([]byte, []int)
Deprecated: Use HasManyOptions.ProtoReflect.Descriptor instead.
func (*HasManyOptions) GetAppend ¶
func (x *HasManyOptions) GetAppend() bool
func (*HasManyOptions) GetAssociationForeignkey ¶
func (x *HasManyOptions) GetAssociationForeignkey() string
func (*HasManyOptions) GetAssociationSaveReference ¶
func (x *HasManyOptions) GetAssociationSaveReference() bool
func (*HasManyOptions) GetClear ¶
func (x *HasManyOptions) GetClear() bool
func (*HasManyOptions) GetDisableAssociationAutocreate ¶
func (x *HasManyOptions) GetDisableAssociationAutocreate() bool
func (*HasManyOptions) GetDisableAssociationAutoupdate ¶
func (x *HasManyOptions) GetDisableAssociationAutoupdate() bool
func (*HasManyOptions) GetForeignkey ¶
func (x *HasManyOptions) GetForeignkey() string
func (*HasManyOptions) GetForeignkeyTag ¶
func (x *HasManyOptions) GetForeignkeyTag() *GormTag
func (*HasManyOptions) GetPositionField ¶
func (x *HasManyOptions) GetPositionField() string
func (*HasManyOptions) GetPositionFieldTag ¶
func (x *HasManyOptions) GetPositionFieldTag() *GormTag
func (*HasManyOptions) GetPreload ¶
func (x *HasManyOptions) GetPreload() bool
func (*HasManyOptions) GetReplace ¶
func (x *HasManyOptions) GetReplace() bool
func (*HasManyOptions) MarshalJSON ¶
func (msg *HasManyOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*HasManyOptions) ProtoMessage ¶
func (*HasManyOptions) ProtoMessage()
func (*HasManyOptions) ProtoReflect ¶
func (x *HasManyOptions) ProtoReflect() protoreflect.Message
func (*HasManyOptions) Reset ¶
func (x *HasManyOptions) Reset()
func (*HasManyOptions) String ¶
func (x *HasManyOptions) String() string
func (*HasManyOptions) UnmarshalJSON ¶
func (msg *HasManyOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*HasManyOptions) Validate ¶
func (m *HasManyOptions) Validate() error
Validate checks the field values on HasManyOptions 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 (*HasManyOptions) ValidateAll ¶
func (m *HasManyOptions) ValidateAll() error
ValidateAll checks the field values on HasManyOptions 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 HasManyOptionsMultiError, or nil if none found.
type HasManyOptionsMultiError ¶
type HasManyOptionsMultiError []error
HasManyOptionsMultiError is an error wrapping multiple validation errors returned by HasManyOptions.ValidateAll() if the designated constraints aren't met.
func (HasManyOptionsMultiError) AllErrors ¶
func (m HasManyOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HasManyOptionsMultiError) Error ¶
func (m HasManyOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HasManyOptionsValidationError ¶
type HasManyOptionsValidationError struct {
// contains filtered or unexported fields
}
HasManyOptionsValidationError is the validation error returned by HasManyOptions.Validate if the designated constraints aren't met.
func (HasManyOptionsValidationError) Cause ¶
func (e HasManyOptionsValidationError) Cause() error
Cause function returns cause value.
func (HasManyOptionsValidationError) Error ¶
func (e HasManyOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (HasManyOptionsValidationError) ErrorName ¶
func (e HasManyOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (HasManyOptionsValidationError) Field ¶
func (e HasManyOptionsValidationError) Field() string
Field function returns field value.
func (HasManyOptionsValidationError) Key ¶
func (e HasManyOptionsValidationError) Key() bool
Key function returns key value.
func (HasManyOptionsValidationError) Reason ¶
func (e HasManyOptionsValidationError) Reason() string
Reason function returns reason value.
type HasOneOptions ¶
type HasOneOptions struct { Foreignkey string `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"` AssociationForeignkey string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"` DisableAssociationAutoupdate bool `` /* 148-byte string literal not displayed */ DisableAssociationAutocreate bool `` /* 148-byte string literal not displayed */ AssociationSaveReference bool `` /* 136-byte string literal not displayed */ Preload bool `protobuf:"varint,7,opt,name=preload,proto3" json:"preload,omitempty"` Replace bool `protobuf:"varint,8,opt,name=replace,proto3" json:"replace,omitempty"` Append bool `protobuf:"varint,9,opt,name=append,proto3" json:"append,omitempty"` Clear bool `protobuf:"varint,10,opt,name=clear,proto3" json:"clear,omitempty"` // contains filtered or unexported fields }
func (*HasOneOptions) Descriptor
deprecated
func (*HasOneOptions) Descriptor() ([]byte, []int)
Deprecated: Use HasOneOptions.ProtoReflect.Descriptor instead.
func (*HasOneOptions) GetAppend ¶
func (x *HasOneOptions) GetAppend() bool
func (*HasOneOptions) GetAssociationForeignkey ¶
func (x *HasOneOptions) GetAssociationForeignkey() string
func (*HasOneOptions) GetAssociationSaveReference ¶
func (x *HasOneOptions) GetAssociationSaveReference() bool
func (*HasOneOptions) GetClear ¶
func (x *HasOneOptions) GetClear() bool
func (*HasOneOptions) GetDisableAssociationAutocreate ¶
func (x *HasOneOptions) GetDisableAssociationAutocreate() bool
func (*HasOneOptions) GetDisableAssociationAutoupdate ¶
func (x *HasOneOptions) GetDisableAssociationAutoupdate() bool
func (*HasOneOptions) GetForeignkey ¶
func (x *HasOneOptions) GetForeignkey() string
func (*HasOneOptions) GetForeignkeyTag ¶
func (x *HasOneOptions) GetForeignkeyTag() *GormTag
func (*HasOneOptions) GetPreload ¶
func (x *HasOneOptions) GetPreload() bool
func (*HasOneOptions) GetReplace ¶
func (x *HasOneOptions) GetReplace() bool
func (*HasOneOptions) MarshalJSON ¶
func (msg *HasOneOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*HasOneOptions) ProtoMessage ¶
func (*HasOneOptions) ProtoMessage()
func (*HasOneOptions) ProtoReflect ¶
func (x *HasOneOptions) ProtoReflect() protoreflect.Message
func (*HasOneOptions) Reset ¶
func (x *HasOneOptions) Reset()
func (*HasOneOptions) String ¶
func (x *HasOneOptions) String() string
func (*HasOneOptions) UnmarshalJSON ¶
func (msg *HasOneOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*HasOneOptions) Validate ¶
func (m *HasOneOptions) Validate() error
Validate checks the field values on HasOneOptions 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 (*HasOneOptions) ValidateAll ¶
func (m *HasOneOptions) ValidateAll() error
ValidateAll checks the field values on HasOneOptions 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 HasOneOptionsMultiError, or nil if none found.
type HasOneOptionsMultiError ¶
type HasOneOptionsMultiError []error
HasOneOptionsMultiError is an error wrapping multiple validation errors returned by HasOneOptions.ValidateAll() if the designated constraints aren't met.
func (HasOneOptionsMultiError) AllErrors ¶
func (m HasOneOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HasOneOptionsMultiError) Error ¶
func (m HasOneOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HasOneOptionsValidationError ¶
type HasOneOptionsValidationError struct {
// contains filtered or unexported fields
}
HasOneOptionsValidationError is the validation error returned by HasOneOptions.Validate if the designated constraints aren't met.
func (HasOneOptionsValidationError) Cause ¶
func (e HasOneOptionsValidationError) Cause() error
Cause function returns cause value.
func (HasOneOptionsValidationError) Error ¶
func (e HasOneOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (HasOneOptionsValidationError) ErrorName ¶
func (e HasOneOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (HasOneOptionsValidationError) Field ¶
func (e HasOneOptionsValidationError) Field() string
Field function returns field value.
func (HasOneOptionsValidationError) Key ¶
func (e HasOneOptionsValidationError) Key() bool
Key function returns key value.
func (HasOneOptionsValidationError) Reason ¶
func (e HasOneOptionsValidationError) Reason() string
Reason function returns reason value.
type ManyToManyOptions ¶
type ManyToManyOptions struct { Jointable string `protobuf:"bytes,1,opt,name=jointable,proto3" json:"jointable,omitempty"` Foreignkey string `protobuf:"bytes,2,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"` JointableForeignkey string `protobuf:"bytes,3,opt,name=jointable_foreignkey,json=jointableForeignkey,proto3" json:"jointable_foreignkey,omitempty"` AssociationForeignkey string `protobuf:"bytes,4,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"` AssociationJointableForeignkey string `` /* 153-byte string literal not displayed */ DisableAssociationAutoupdate bool `` /* 148-byte string literal not displayed */ DisableAssociationAutocreate bool `` /* 148-byte string literal not displayed */ AssociationSaveReference bool `` /* 136-byte string literal not displayed */ Preload bool `protobuf:"varint,9,opt,name=preload,proto3" json:"preload,omitempty"` Replace bool `protobuf:"varint,10,opt,name=replace,proto3" json:"replace,omitempty"` Append bool `protobuf:"varint,11,opt,name=append,proto3" json:"append,omitempty"` Clear bool `protobuf:"varint,13,opt,name=clear,proto3" json:"clear,omitempty"` // contains filtered or unexported fields }
func (*ManyToManyOptions) Descriptor
deprecated
func (*ManyToManyOptions) Descriptor() ([]byte, []int)
Deprecated: Use ManyToManyOptions.ProtoReflect.Descriptor instead.
func (*ManyToManyOptions) GetAppend ¶
func (x *ManyToManyOptions) GetAppend() bool
func (*ManyToManyOptions) GetAssociationForeignkey ¶
func (x *ManyToManyOptions) GetAssociationForeignkey() string
func (*ManyToManyOptions) GetAssociationJointableForeignkey ¶
func (x *ManyToManyOptions) GetAssociationJointableForeignkey() string
func (*ManyToManyOptions) GetAssociationSaveReference ¶
func (x *ManyToManyOptions) GetAssociationSaveReference() bool
func (*ManyToManyOptions) GetClear ¶
func (x *ManyToManyOptions) GetClear() bool
func (*ManyToManyOptions) GetDisableAssociationAutocreate ¶
func (x *ManyToManyOptions) GetDisableAssociationAutocreate() bool
func (*ManyToManyOptions) GetDisableAssociationAutoupdate ¶
func (x *ManyToManyOptions) GetDisableAssociationAutoupdate() bool
func (*ManyToManyOptions) GetForeignkey ¶
func (x *ManyToManyOptions) GetForeignkey() string
func (*ManyToManyOptions) GetJointable ¶
func (x *ManyToManyOptions) GetJointable() string
func (*ManyToManyOptions) GetJointableForeignkey ¶
func (x *ManyToManyOptions) GetJointableForeignkey() string
func (*ManyToManyOptions) GetPreload ¶
func (x *ManyToManyOptions) GetPreload() bool
func (*ManyToManyOptions) GetReplace ¶
func (x *ManyToManyOptions) GetReplace() bool
func (*ManyToManyOptions) MarshalJSON ¶
func (msg *ManyToManyOptions) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ManyToManyOptions) ProtoMessage ¶
func (*ManyToManyOptions) ProtoMessage()
func (*ManyToManyOptions) ProtoReflect ¶
func (x *ManyToManyOptions) ProtoReflect() protoreflect.Message
func (*ManyToManyOptions) Reset ¶
func (x *ManyToManyOptions) Reset()
func (*ManyToManyOptions) String ¶
func (x *ManyToManyOptions) String() string
func (*ManyToManyOptions) UnmarshalJSON ¶
func (msg *ManyToManyOptions) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ManyToManyOptions) Validate ¶
func (m *ManyToManyOptions) Validate() error
Validate checks the field values on ManyToManyOptions 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 (*ManyToManyOptions) ValidateAll ¶
func (m *ManyToManyOptions) ValidateAll() error
ValidateAll checks the field values on ManyToManyOptions 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 ManyToManyOptionsMultiError, or nil if none found.
type ManyToManyOptionsMultiError ¶
type ManyToManyOptionsMultiError []error
ManyToManyOptionsMultiError is an error wrapping multiple validation errors returned by ManyToManyOptions.ValidateAll() if the designated constraints aren't met.
func (ManyToManyOptionsMultiError) AllErrors ¶
func (m ManyToManyOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ManyToManyOptionsMultiError) Error ¶
func (m ManyToManyOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ManyToManyOptionsValidationError ¶
type ManyToManyOptionsValidationError struct {
// contains filtered or unexported fields
}
ManyToManyOptionsValidationError is the validation error returned by ManyToManyOptions.Validate if the designated constraints aren't met.
func (ManyToManyOptionsValidationError) Cause ¶
func (e ManyToManyOptionsValidationError) Cause() error
Cause function returns cause value.
func (ManyToManyOptionsValidationError) Error ¶
func (e ManyToManyOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (ManyToManyOptionsValidationError) ErrorName ¶
func (e ManyToManyOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (ManyToManyOptionsValidationError) Field ¶
func (e ManyToManyOptionsValidationError) Field() string
Field function returns field value.
func (ManyToManyOptionsValidationError) Key ¶
func (e ManyToManyOptionsValidationError) Key() bool
Key function returns key value.
func (ManyToManyOptionsValidationError) Reason ¶
func (e ManyToManyOptionsValidationError) Reason() string
Reason function returns reason value.