message_definitionv1

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthErrorCode_name = map[int32]string{
		0:    "no_auth_error",
		1001: "auth_failed_invalid_subject",
		1002: "auth_failed_invalid_audience",
		1003: "auth_failed_invalid_issuer",
		1004: "invalid_claims",
		1005: "auth_failed_invalid_bearer_token",
		1010: "bearer_token_missing",
		1500: "unauthenticated",
	}
	AuthErrorCode_value = map[string]int32{
		"no_auth_error":                    0,
		"auth_failed_invalid_subject":      1001,
		"auth_failed_invalid_audience":     1002,
		"auth_failed_invalid_issuer":       1003,
		"invalid_claims":                   1004,
		"auth_failed_invalid_bearer_token": 1005,
		"bearer_token_missing":             1010,
		"unauthenticated":                  1500,
	}
)

Enum value maps for AuthErrorCode.

View Source
var (
	ErrorCode_name = map[int32]string{
		0:    "no_error",
		2000: "validation_error",
		2001: "authorization_model_not_found",
		2002: "authorization_model_resolution_too_complex",
		2003: "invalid_write_input",
		2004: "cannot_allow_duplicate_tuples_in_one_request",
		2005: "cannot_allow_duplicate_types_in_one_request",
		2006: "cannot_allow_multiple_references_to_one_relation",
		2007: "invalid_continuation_token",
		2008: "invalid_tuple_set",
		2009: "invalid_check_input",
		2010: "invalid_expand_input",
		2011: "unsupported_user_set",
		2012: "invalid_object_format",
		2017: "write_failed_due_to_invalid_input",
		2018: "authorization_model_assertions_not_found",
		2020: "latest_authorization_model_not_found",
		2021: "type_not_found",
		2022: "relation_not_found",
		2023: "empty_relation_definition",
		2025: "invalid_user",
		2027: "invalid_tuple",
		2028: "unknown_relation",
		2030: "store_id_invalid_length",
		2033: "assertions_too_many_items",
		2034: "id_too_long",
		2036: "authorization_model_id_too_long",
		2037: "tuple_key_value_not_specified",
		2038: "tuple_keys_too_many_or_too_few_items",
		2039: "page_size_invalid",
		2040: "param_missing_value",
		2041: "difference_base_missing_value",
		2042: "subtract_base_missing_value",
		2043: "object_too_long",
		2044: "relation_too_long",
		2045: "type_definitions_too_few_items",
		2046: "type_invalid_length",
		2047: "type_invalid_pattern",
		2048: "relations_too_few_items",
		2049: "relations_too_long",
		2050: "relations_invalid_pattern",
		2051: "object_invalid_pattern",
		2052: "query_string_type_continuation_token_mismatch",
		2053: "exceeded_entity_limit",
		2054: "invalid_contextual_tuple",
		2055: "duplicate_contextual_tuple",
		2056: "invalid_authorization_model",
		2057: "unsupported_schema_version",
	}
	ErrorCode_value = map[string]int32{
		"no_error":                                         0,
		"validation_error":                                 2000,
		"authorization_model_not_found":                    2001,
		"authorization_model_resolution_too_complex":       2002,
		"invalid_write_input":                              2003,
		"cannot_allow_duplicate_tuples_in_one_request":     2004,
		"cannot_allow_duplicate_types_in_one_request":      2005,
		"cannot_allow_multiple_references_to_one_relation": 2006,
		"invalid_continuation_token":                       2007,
		"invalid_tuple_set":                                2008,
		"invalid_check_input":                              2009,
		"invalid_expand_input":                             2010,
		"unsupported_user_set":                             2011,
		"invalid_object_format":                            2012,
		"write_failed_due_to_invalid_input":                2017,
		"authorization_model_assertions_not_found":         2018,
		"latest_authorization_model_not_found":             2020,
		"type_not_found":                                   2021,
		"relation_not_found":                               2022,
		"empty_relation_definition":                        2023,
		"invalid_user":                                     2025,
		"invalid_tuple":                                    2027,
		"unknown_relation":                                 2028,
		"store_id_invalid_length":                          2030,
		"assertions_too_many_items":                        2033,
		"id_too_long":                                      2034,
		"authorization_model_id_too_long":                  2036,
		"tuple_key_value_not_specified":                    2037,
		"tuple_keys_too_many_or_too_few_items":             2038,
		"page_size_invalid":                                2039,
		"param_missing_value":                              2040,
		"difference_base_missing_value":                    2041,
		"subtract_base_missing_value":                      2042,
		"object_too_long":                                  2043,
		"relation_too_long":                                2044,
		"type_definitions_too_few_items":                   2045,
		"type_invalid_length":                              2046,
		"type_invalid_pattern":                             2047,
		"relations_too_few_items":                          2048,
		"relations_too_long":                               2049,
		"relations_invalid_pattern":                        2050,
		"object_invalid_pattern":                           2051,
		"query_string_type_continuation_token_mismatch":    2052,
		"exceeded_entity_limit":                            2053,
		"invalid_contextual_tuple":                         2054,
		"duplicate_contextual_tuple":                       2055,
		"invalid_authorization_model":                      2056,
		"unsupported_schema_version":                       2057,
	}
)

Enum value maps for ErrorCode.

View Source
var (
	InternalErrorCode_name = map[int32]string{
		0:    "no_internal_error",
		4000: "internal_error",
		4003: "cancelled",
		4004: "deadline_exceeded",
		4005: "already_exists",
		4006: "resource_exhausted",
		4007: "failed_precondition",
		4008: "aborted",
		4009: "out_of_range",
		4010: "unavailable",
		4011: "data_loss",
	}
	InternalErrorCode_value = map[string]int32{
		"no_internal_error":   0,
		"internal_error":      4000,
		"cancelled":           4003,
		"deadline_exceeded":   4004,
		"already_exists":      4005,
		"resource_exhausted":  4006,
		"failed_precondition": 4007,
		"aborted":             4008,
		"out_of_range":        4009,
		"unavailable":         4010,
		"data_loss":           4011,
	}
)

Enum value maps for InternalErrorCode.

View Source
var (
	NotFoundErrorCode_name = map[int32]string{
		0:    "no_not_found_error",
		5000: "undefined_endpoint",
		5002: "store_id_not_found",
		5004: "unimplemented",
	}
	NotFoundErrorCode_value = map[string]int32{
		"no_not_found_error": 0,
		"undefined_endpoint": 5000,
		"store_id_not_found": 5002,
		"unimplemented":      5004,
	}
)

Enum value maps for NotFoundErrorCode.

View Source
var (
	DeleteAccountMessageFormat_ProfileType_name = map[int32]string{
		0: "PROFILE_TYPE_UNSPECIFIED",
		1: "PROFILE_TYPE_USER",
		2: "PROFILE_TYPE_BUSINESS",
	}
	DeleteAccountMessageFormat_ProfileType_value = map[string]int32{
		"PROFILE_TYPE_UNSPECIFIED": 0,
		"PROFILE_TYPE_USER":        1,
		"PROFILE_TYPE_BUSINESS":    2,
	}
)

Enum value maps for DeleteAccountMessageFormat_ProfileType.

View Source
var File_message_definition_v1_errors_ignore_proto protoreflect.FileDescriptor
View Source
var File_message_definition_v1_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AlgoliaSearchRecordFormat added in v1.27.0

type AlgoliaSearchRecordFormat struct {
	Name            string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	UserId          string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProfileId       uint64   `protobuf:"varint,3,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"`
	CommunityId     uint64   `protobuf:"varint,4,opt,name=community_id,json=communityId,proto3" json:"community_id,omitempty"`
	Tags            []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	CreatedAt       string   `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ProfileImageUrl string   `protobuf:"bytes,7,opt,name=profile_image_url,json=profileImageUrl,proto3" json:"profile_image_url,omitempty"`
	// contains filtered or unexported fields
}

func (*AlgoliaSearchRecordFormat) Descriptor deprecated added in v1.27.0

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

Deprecated: Use AlgoliaSearchRecordFormat.ProtoReflect.Descriptor instead.

func (*AlgoliaSearchRecordFormat) GetCommunityId added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetCommunityId() uint64

func (*AlgoliaSearchRecordFormat) GetCreatedAt added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetCreatedAt() string

func (*AlgoliaSearchRecordFormat) GetName added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetName() string

func (*AlgoliaSearchRecordFormat) GetProfileId added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetProfileId() uint64

func (*AlgoliaSearchRecordFormat) GetProfileImageUrl added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetProfileImageUrl() string

func (*AlgoliaSearchRecordFormat) GetTags added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetTags() []string

func (*AlgoliaSearchRecordFormat) GetUserId added in v1.27.0

func (x *AlgoliaSearchRecordFormat) GetUserId() string

func (*AlgoliaSearchRecordFormat) ProtoMessage added in v1.27.0

func (*AlgoliaSearchRecordFormat) ProtoMessage()

func (*AlgoliaSearchRecordFormat) ProtoReflect added in v1.27.0

func (*AlgoliaSearchRecordFormat) Reset added in v1.27.0

func (x *AlgoliaSearchRecordFormat) Reset()

func (*AlgoliaSearchRecordFormat) String added in v1.27.0

func (x *AlgoliaSearchRecordFormat) String() string

func (*AlgoliaSearchRecordFormat) Validate added in v1.27.0

func (m *AlgoliaSearchRecordFormat) Validate() error

Validate checks the field values on AlgoliaSearchRecordFormat 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 (*AlgoliaSearchRecordFormat) ValidateAll added in v1.27.0

func (m *AlgoliaSearchRecordFormat) ValidateAll() error

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

type AlgoliaSearchRecordFormatMultiError added in v1.27.0

type AlgoliaSearchRecordFormatMultiError []error

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

func (AlgoliaSearchRecordFormatMultiError) AllErrors added in v1.27.0

AllErrors returns a list of validation violation errors.

func (AlgoliaSearchRecordFormatMultiError) Error added in v1.27.0

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

type AlgoliaSearchRecordFormatValidationError added in v1.27.0

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

AlgoliaSearchRecordFormatValidationError is the validation error returned by AlgoliaSearchRecordFormat.Validate if the designated constraints aren't met.

func (AlgoliaSearchRecordFormatValidationError) Cause added in v1.27.0

Cause function returns cause value.

func (AlgoliaSearchRecordFormatValidationError) Error added in v1.27.0

Error satisfies the builtin error interface

func (AlgoliaSearchRecordFormatValidationError) ErrorName added in v1.27.0

ErrorName returns error name.

func (AlgoliaSearchRecordFormatValidationError) Field added in v1.27.0

Field function returns field value.

func (AlgoliaSearchRecordFormatValidationError) Key added in v1.27.0

Key function returns key value.

func (AlgoliaSearchRecordFormatValidationError) Reason added in v1.27.0

Reason function returns reason value.

type AuthErrorCode

type AuthErrorCode int32
const (
	AuthErrorCode_no_auth_error                    AuthErrorCode = 0
	AuthErrorCode_auth_failed_invalid_subject      AuthErrorCode = 1001
	AuthErrorCode_auth_failed_invalid_audience     AuthErrorCode = 1002
	AuthErrorCode_auth_failed_invalid_issuer       AuthErrorCode = 1003
	AuthErrorCode_invalid_claims                   AuthErrorCode = 1004
	AuthErrorCode_auth_failed_invalid_bearer_token AuthErrorCode = 1005
	AuthErrorCode_bearer_token_missing             AuthErrorCode = 1010
	AuthErrorCode_unauthenticated                  AuthErrorCode = 1500
)

func (AuthErrorCode) Descriptor

func (AuthErrorCode) Enum

func (x AuthErrorCode) Enum() *AuthErrorCode

func (AuthErrorCode) EnumDescriptor deprecated

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

Deprecated: Use AuthErrorCode.Descriptor instead.

func (AuthErrorCode) Number

func (AuthErrorCode) String

func (x AuthErrorCode) String() string

func (AuthErrorCode) Type

type DeleteAccountMessageFormat

type DeleteAccountMessageFormat struct {

	// auth_zero_id which is the id indicating the user and is the source of truth across all backend services
	AuthZeroId string `protobuf:"bytes,1,opt,name=auth_zero_id,json=authZeroId,proto3" json:"auth_zero_id,omitempty"`
	// account email
	// Validations:
	// - must be an email and required
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// user_id id from the vantage point of the user service
	UserId uint64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// the profile type of the given account
	ProfileType DeleteAccountMessageFormat_ProfileType `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeleteAccountMessageFormat: represents an sqs message format for deleting an accoun

func DefaultApplyFieldMaskDeleteAccountMessageFormat

func DefaultApplyFieldMaskDeleteAccountMessageFormat(ctx context.Context, patchee *DeleteAccountMessageFormat, patcher *DeleteAccountMessageFormat, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*DeleteAccountMessageFormat, error)

DefaultApplyFieldMaskDeleteAccountMessageFormat patches an pbObject with patcher according to a field mask.

func DefaultCreateDeleteAccountMessageFormat

func DefaultCreateDeleteAccountMessageFormat(ctx context.Context, in *DeleteAccountMessageFormat, db *gorm.DB) (*DeleteAccountMessageFormat, error)

DefaultCreateDeleteAccountMessageFormat executes a basic gorm create call

func DefaultListDeleteAccountMessageFormat

func DefaultListDeleteAccountMessageFormat(ctx context.Context, db *gorm.DB) ([]*DeleteAccountMessageFormat, error)

DefaultListDeleteAccountMessageFormat executes a gorm list call

func (*DeleteAccountMessageFormat) Descriptor deprecated

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

Deprecated: Use DeleteAccountMessageFormat.ProtoReflect.Descriptor instead.

func (*DeleteAccountMessageFormat) GetAuthZeroId added in v1.26.0

func (x *DeleteAccountMessageFormat) GetAuthZeroId() string

func (*DeleteAccountMessageFormat) GetEmail

func (x *DeleteAccountMessageFormat) GetEmail() string

func (*DeleteAccountMessageFormat) GetProfileType added in v1.10.0

func (*DeleteAccountMessageFormat) GetUserId

func (x *DeleteAccountMessageFormat) GetUserId() uint64

func (*DeleteAccountMessageFormat) ProtoMessage

func (*DeleteAccountMessageFormat) ProtoMessage()

func (*DeleteAccountMessageFormat) ProtoReflect

func (*DeleteAccountMessageFormat) Reset

func (x *DeleteAccountMessageFormat) Reset()

func (*DeleteAccountMessageFormat) String

func (x *DeleteAccountMessageFormat) String() string

func (*DeleteAccountMessageFormat) ToORM

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*DeleteAccountMessageFormat) Validate

func (m *DeleteAccountMessageFormat) Validate() error

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

func (m *DeleteAccountMessageFormat) ValidateAll() error

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

type DeleteAccountMessageFormatMultiError

type DeleteAccountMessageFormatMultiError []error

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

func (DeleteAccountMessageFormatMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteAccountMessageFormatMultiError) Error

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

type DeleteAccountMessageFormatORM

type DeleteAccountMessageFormatORM struct {
	AuthZeroId  string
	Email       string
	ProfileType string
	UserId      uint64
}

func (DeleteAccountMessageFormatORM) TableName

TableName overrides the default tablename generated by GORM

func (*DeleteAccountMessageFormatORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type DeleteAccountMessageFormatORMWithAfterCreate_

type DeleteAccountMessageFormatORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type DeleteAccountMessageFormatORMWithAfterListFind

type DeleteAccountMessageFormatORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]DeleteAccountMessageFormatORM) error
}

type DeleteAccountMessageFormatORMWithBeforeCreate_

type DeleteAccountMessageFormatORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DeleteAccountMessageFormatORMWithBeforeListApplyQuery

type DeleteAccountMessageFormatORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DeleteAccountMessageFormatORMWithBeforeListFind

type DeleteAccountMessageFormatORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DeleteAccountMessageFormatValidationError

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

DeleteAccountMessageFormatValidationError is the validation error returned by DeleteAccountMessageFormat.Validate if the designated constraints aren't met.

func (DeleteAccountMessageFormatValidationError) Cause

Cause function returns cause value.

func (DeleteAccountMessageFormatValidationError) Error

Error satisfies the builtin error interface

func (DeleteAccountMessageFormatValidationError) ErrorName

ErrorName returns error name.

func (DeleteAccountMessageFormatValidationError) Field

Field function returns field value.

func (DeleteAccountMessageFormatValidationError) Key

Key function returns key value.

func (DeleteAccountMessageFormatValidationError) Reason

Reason function returns reason value.

type DeleteAccountMessageFormatWithAfterToORM

type DeleteAccountMessageFormatWithAfterToORM interface {
	AfterToORM(context.Context, *DeleteAccountMessageFormatORM) error
}

DeleteAccountMessageFormatAfterToORM called after default ToORM code

type DeleteAccountMessageFormatWithAfterToPB

type DeleteAccountMessageFormatWithAfterToPB interface {
	AfterToPB(context.Context, *DeleteAccountMessageFormat) error
}

DeleteAccountMessageFormatAfterToPB called after default ToPB code

type DeleteAccountMessageFormatWithBeforeToORM

type DeleteAccountMessageFormatWithBeforeToORM interface {
	BeforeToORM(context.Context, *DeleteAccountMessageFormatORM) error
}

DeleteAccountMessageFormatBeforeToORM called before default ToORM code

type DeleteAccountMessageFormatWithBeforeToPB

type DeleteAccountMessageFormatWithBeforeToPB interface {
	BeforeToPB(context.Context, *DeleteAccountMessageFormat) error
}

DeleteAccountMessageFormatBeforeToPB called before default ToPB code

type DeleteAccountMessageFormat_ProfileType added in v1.10.0

type DeleteAccountMessageFormat_ProfileType int32
const (
	DeleteAccountMessageFormat_PROFILE_TYPE_UNSPECIFIED DeleteAccountMessageFormat_ProfileType = 0
	DeleteAccountMessageFormat_PROFILE_TYPE_USER        DeleteAccountMessageFormat_ProfileType = 1
	DeleteAccountMessageFormat_PROFILE_TYPE_BUSINESS    DeleteAccountMessageFormat_ProfileType = 2
)

func (DeleteAccountMessageFormat_ProfileType) Descriptor added in v1.10.0

func (DeleteAccountMessageFormat_ProfileType) Enum added in v1.10.0

func (DeleteAccountMessageFormat_ProfileType) EnumDescriptor deprecated added in v1.10.0

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

Deprecated: Use DeleteAccountMessageFormat_ProfileType.Descriptor instead.

func (DeleteAccountMessageFormat_ProfileType) Number added in v1.10.0

func (DeleteAccountMessageFormat_ProfileType) String added in v1.10.0

func (DeleteAccountMessageFormat_ProfileType) Type added in v1.10.0

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_no_error                                         ErrorCode = 0
	ErrorCode_validation_error                                 ErrorCode = 2000
	ErrorCode_authorization_model_not_found                    ErrorCode = 2001
	ErrorCode_authorization_model_resolution_too_complex       ErrorCode = 2002
	ErrorCode_invalid_write_input                              ErrorCode = 2003
	ErrorCode_cannot_allow_duplicate_tuples_in_one_request     ErrorCode = 2004
	ErrorCode_cannot_allow_duplicate_types_in_one_request      ErrorCode = 2005
	ErrorCode_cannot_allow_multiple_references_to_one_relation ErrorCode = 2006
	ErrorCode_invalid_continuation_token                       ErrorCode = 2007
	ErrorCode_invalid_tuple_set                                ErrorCode = 2008
	ErrorCode_invalid_check_input                              ErrorCode = 2009
	ErrorCode_invalid_expand_input                             ErrorCode = 2010
	ErrorCode_unsupported_user_set                             ErrorCode = 2011
	ErrorCode_invalid_object_format                            ErrorCode = 2012
	ErrorCode_write_failed_due_to_invalid_input                ErrorCode = 2017
	ErrorCode_authorization_model_assertions_not_found         ErrorCode = 2018
	ErrorCode_latest_authorization_model_not_found             ErrorCode = 2020
	ErrorCode_type_not_found                                   ErrorCode = 2021
	ErrorCode_relation_not_found                               ErrorCode = 2022
	ErrorCode_empty_relation_definition                        ErrorCode = 2023
	ErrorCode_invalid_user                                     ErrorCode = 2025
	ErrorCode_invalid_tuple                                    ErrorCode = 2027
	ErrorCode_unknown_relation                                 ErrorCode = 2028
	ErrorCode_store_id_invalid_length                          ErrorCode = 2030
	ErrorCode_assertions_too_many_items                        ErrorCode = 2033
	ErrorCode_id_too_long                                      ErrorCode = 2034
	ErrorCode_authorization_model_id_too_long                  ErrorCode = 2036
	ErrorCode_tuple_key_value_not_specified                    ErrorCode = 2037
	ErrorCode_tuple_keys_too_many_or_too_few_items             ErrorCode = 2038
	ErrorCode_page_size_invalid                                ErrorCode = 2039
	ErrorCode_param_missing_value                              ErrorCode = 2040
	ErrorCode_difference_base_missing_value                    ErrorCode = 2041
	ErrorCode_subtract_base_missing_value                      ErrorCode = 2042
	ErrorCode_object_too_long                                  ErrorCode = 2043
	ErrorCode_relation_too_long                                ErrorCode = 2044
	ErrorCode_type_definitions_too_few_items                   ErrorCode = 2045
	ErrorCode_type_invalid_length                              ErrorCode = 2046
	ErrorCode_type_invalid_pattern                             ErrorCode = 2047
	ErrorCode_relations_too_few_items                          ErrorCode = 2048
	ErrorCode_relations_too_long                               ErrorCode = 2049
	ErrorCode_relations_invalid_pattern                        ErrorCode = 2050
	ErrorCode_object_invalid_pattern                           ErrorCode = 2051
	ErrorCode_query_string_type_continuation_token_mismatch    ErrorCode = 2052
	ErrorCode_exceeded_entity_limit                            ErrorCode = 2053
	ErrorCode_invalid_contextual_tuple                         ErrorCode = 2054
	ErrorCode_duplicate_contextual_tuple                       ErrorCode = 2055
	ErrorCode_invalid_authorization_model                      ErrorCode = 2056
	ErrorCode_unsupported_schema_version                       ErrorCode = 2057
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type ErrorMessageRequest

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

func (*ErrorMessageRequest) Descriptor deprecated

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

Deprecated: Use ErrorMessageRequest.ProtoReflect.Descriptor instead.

func (*ErrorMessageRequest) ProtoMessage

func (*ErrorMessageRequest) ProtoMessage()

func (*ErrorMessageRequest) ProtoReflect

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

func (*ErrorMessageRequest) Reset

func (x *ErrorMessageRequest) Reset()

func (*ErrorMessageRequest) String

func (x *ErrorMessageRequest) String() string

func (*ErrorMessageRequest) Validate

func (m *ErrorMessageRequest) Validate() error

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

func (m *ErrorMessageRequest) ValidateAll() error

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

type ErrorMessageRequestMultiError

type ErrorMessageRequestMultiError []error

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

func (ErrorMessageRequestMultiError) AllErrors

func (m ErrorMessageRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ErrorMessageRequestMultiError) Error

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

type ErrorMessageRequestValidationError

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

ErrorMessageRequestValidationError is the validation error returned by ErrorMessageRequest.Validate if the designated constraints aren't met.

func (ErrorMessageRequestValidationError) Cause

Cause function returns cause value.

func (ErrorMessageRequestValidationError) Error

Error satisfies the builtin error interface

func (ErrorMessageRequestValidationError) ErrorName

ErrorName returns error name.

func (ErrorMessageRequestValidationError) Field

Field function returns field value.

func (ErrorMessageRequestValidationError) Key

Key function returns key value.

func (ErrorMessageRequestValidationError) Reason

Reason function returns reason value.

type InternalErrorCode

type InternalErrorCode int32
const (
	InternalErrorCode_no_internal_error   InternalErrorCode = 0
	InternalErrorCode_internal_error      InternalErrorCode = 4000
	InternalErrorCode_cancelled           InternalErrorCode = 4003
	InternalErrorCode_deadline_exceeded   InternalErrorCode = 4004
	InternalErrorCode_already_exists      InternalErrorCode = 4005
	InternalErrorCode_resource_exhausted  InternalErrorCode = 4006
	InternalErrorCode_failed_precondition InternalErrorCode = 4007
	InternalErrorCode_aborted             InternalErrorCode = 4008
	InternalErrorCode_out_of_range        InternalErrorCode = 4009
	InternalErrorCode_unavailable         InternalErrorCode = 4010
	InternalErrorCode_data_loss           InternalErrorCode = 4011
)

func (InternalErrorCode) Descriptor

func (InternalErrorCode) Enum

func (InternalErrorCode) EnumDescriptor deprecated

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

Deprecated: Use InternalErrorCode.Descriptor instead.

func (InternalErrorCode) Number

func (InternalErrorCode) String

func (x InternalErrorCode) String() string

func (InternalErrorCode) Type

type InternalErrorMessageResponse

type InternalErrorMessageResponse struct {
	Code    InternalErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=message_definition.v1.InternalErrorCode" json:"code,omitempty"`
	Message string            `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*InternalErrorMessageResponse) Descriptor deprecated

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

Deprecated: Use InternalErrorMessageResponse.ProtoReflect.Descriptor instead.

func (*InternalErrorMessageResponse) GetCode

func (*InternalErrorMessageResponse) GetMessage

func (x *InternalErrorMessageResponse) GetMessage() string

func (*InternalErrorMessageResponse) ProtoMessage

func (*InternalErrorMessageResponse) ProtoMessage()

func (*InternalErrorMessageResponse) ProtoReflect

func (*InternalErrorMessageResponse) Reset

func (x *InternalErrorMessageResponse) Reset()

func (*InternalErrorMessageResponse) String

func (*InternalErrorMessageResponse) Validate

func (m *InternalErrorMessageResponse) Validate() error

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

func (m *InternalErrorMessageResponse) ValidateAll() error

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

type InternalErrorMessageResponseMultiError

type InternalErrorMessageResponseMultiError []error

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

func (InternalErrorMessageResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (InternalErrorMessageResponseMultiError) Error

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

type InternalErrorMessageResponseValidationError

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

InternalErrorMessageResponseValidationError is the validation error returned by InternalErrorMessageResponse.Validate if the designated constraints aren't met.

func (InternalErrorMessageResponseValidationError) Cause

Cause function returns cause value.

func (InternalErrorMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (InternalErrorMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (InternalErrorMessageResponseValidationError) Field

Field function returns field value.

func (InternalErrorMessageResponseValidationError) Key

Key function returns key value.

func (InternalErrorMessageResponseValidationError) Reason

Reason function returns reason value.

type NotFoundErrorCode

type NotFoundErrorCode int32
const (
	NotFoundErrorCode_no_not_found_error NotFoundErrorCode = 0
	NotFoundErrorCode_undefined_endpoint NotFoundErrorCode = 5000
	NotFoundErrorCode_store_id_not_found NotFoundErrorCode = 5002
	NotFoundErrorCode_unimplemented      NotFoundErrorCode = 5004
)

func (NotFoundErrorCode) Descriptor

func (NotFoundErrorCode) Enum

func (NotFoundErrorCode) EnumDescriptor deprecated

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

Deprecated: Use NotFoundErrorCode.Descriptor instead.

func (NotFoundErrorCode) Number

func (NotFoundErrorCode) String

func (x NotFoundErrorCode) String() string

func (NotFoundErrorCode) Type

type PathUnknownErrorMessageResponse

type PathUnknownErrorMessageResponse struct {
	Code    NotFoundErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=message_definition.v1.NotFoundErrorCode" json:"code,omitempty"`
	Message string            `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PathUnknownErrorMessageResponse) Descriptor deprecated

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

Deprecated: Use PathUnknownErrorMessageResponse.ProtoReflect.Descriptor instead.

func (*PathUnknownErrorMessageResponse) GetCode

func (*PathUnknownErrorMessageResponse) GetMessage

func (x *PathUnknownErrorMessageResponse) GetMessage() string

func (*PathUnknownErrorMessageResponse) ProtoMessage

func (*PathUnknownErrorMessageResponse) ProtoMessage()

func (*PathUnknownErrorMessageResponse) ProtoReflect

func (*PathUnknownErrorMessageResponse) Reset

func (*PathUnknownErrorMessageResponse) String

func (*PathUnknownErrorMessageResponse) Validate

func (m *PathUnknownErrorMessageResponse) Validate() error

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

func (m *PathUnknownErrorMessageResponse) ValidateAll() error

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

type PathUnknownErrorMessageResponseMultiError

type PathUnknownErrorMessageResponseMultiError []error

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

func (PathUnknownErrorMessageResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (PathUnknownErrorMessageResponseMultiError) Error

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

type PathUnknownErrorMessageResponseValidationError

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

PathUnknownErrorMessageResponseValidationError is the validation error returned by PathUnknownErrorMessageResponse.Validate if the designated constraints aren't met.

func (PathUnknownErrorMessageResponseValidationError) Cause

Cause function returns cause value.

func (PathUnknownErrorMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (PathUnknownErrorMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (PathUnknownErrorMessageResponseValidationError) Field

Field function returns field value.

func (PathUnknownErrorMessageResponseValidationError) Key

Key function returns key value.

func (PathUnknownErrorMessageResponseValidationError) Reason

Reason function returns reason value.

type ValidationErrorMessageResponse

type ValidationErrorMessageResponse struct {
	Code    ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=message_definition.v1.ErrorCode" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationErrorMessageResponse) Descriptor deprecated

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

Deprecated: Use ValidationErrorMessageResponse.ProtoReflect.Descriptor instead.

func (*ValidationErrorMessageResponse) GetCode

func (*ValidationErrorMessageResponse) GetMessage

func (x *ValidationErrorMessageResponse) GetMessage() string

func (*ValidationErrorMessageResponse) ProtoMessage

func (*ValidationErrorMessageResponse) ProtoMessage()

func (*ValidationErrorMessageResponse) ProtoReflect

func (*ValidationErrorMessageResponse) Reset

func (x *ValidationErrorMessageResponse) Reset()

func (*ValidationErrorMessageResponse) String

func (*ValidationErrorMessageResponse) Validate

func (m *ValidationErrorMessageResponse) Validate() error

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

func (m *ValidationErrorMessageResponse) ValidateAll() error

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

type ValidationErrorMessageResponseMultiError

type ValidationErrorMessageResponseMultiError []error

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

func (ValidationErrorMessageResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ValidationErrorMessageResponseMultiError) Error

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

type ValidationErrorMessageResponseValidationError

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

ValidationErrorMessageResponseValidationError is the validation error returned by ValidationErrorMessageResponse.Validate if the designated constraints aren't met.

func (ValidationErrorMessageResponseValidationError) Cause

Cause function returns cause value.

func (ValidationErrorMessageResponseValidationError) Error

Error satisfies the builtin error interface

func (ValidationErrorMessageResponseValidationError) ErrorName

ErrorName returns error name.

func (ValidationErrorMessageResponseValidationError) Field

Field function returns field value.

func (ValidationErrorMessageResponseValidationError) Key

Key function returns key value.

func (ValidationErrorMessageResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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