foodv1

package
v0.0.0-...-64e57e2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FoodItem_CfType_name = map[int32]string{
		0: "CF_TYPE_UNSPECIFIED",
		1: "CF_TYPE_TYPOLOGY",
		2: "CF_TYPE_SUB_TYPOLOGY",
		3: "CF_TYPE_ITEM",
	}
	FoodItem_CfType_value = map[string]int32{
		"CF_TYPE_UNSPECIFIED":  0,
		"CF_TYPE_TYPOLOGY":     1,
		"CF_TYPE_SUB_TYPOLOGY": 2,
		"CF_TYPE_ITEM":         3,
	}
)

Enum value maps for FoodItem_CfType.

View Source
var (
	Region_name = map[int32]string{
		0: "REGION_UNSPECIFIED",
		1: "REGION_AFRICA",
		2: "REGION_AMERICA",
		3: "REGION_ASIA",
		4: "REGION_EUROPE",
		5: "REGION_MEDITERRANEAN",
		6: "REGION_OCEANIA",
		7: "REGION_WORLD",
	}
	Region_value = map[string]int32{
		"REGION_UNSPECIFIED":   0,
		"REGION_AFRICA":        1,
		"REGION_AMERICA":       2,
		"REGION_ASIA":          3,
		"REGION_EUROPE":        4,
		"REGION_MEDITERRANEAN": 5,
		"REGION_OCEANIA":       6,
		"REGION_WORLD":         7,
	}
)

Enum value maps for Region.

View Source
var File_neutral_diet_food_v1_api_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_food_item_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_life_cycle_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_region_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_source_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_sub_typology_proto protoreflect.FileDescriptor
View Source
var File_neutral_diet_food_v1_typology_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AggregateFoodItem

type AggregateFoodItem struct {
	Id                    int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	FoodName              string  `protobuf:"bytes,2,opt,name=food_name,json=foodName,proto3" json:"food_name,omitempty"`
	MedianCarbonFootprint float64 `` /* 128-byte string literal not displayed */
	Region                Region  `protobuf:"varint,4,opt,name=region,proto3,enum=neutral_diet.food.v1.Region" json:"region,omitempty"`
	TypologyName          string  `protobuf:"bytes,5,opt,name=typology_name,json=typologyName,proto3" json:"typology_name,omitempty"`
	SubTypologyName       string  `protobuf:"bytes,6,opt,name=sub_typology_name,json=subTypologyName,proto3" json:"sub_typology_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AggregateFoodItem) Descriptor deprecated

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

Deprecated: Use AggregateFoodItem.ProtoReflect.Descriptor instead.

func (*AggregateFoodItem) GetFoodName

func (x *AggregateFoodItem) GetFoodName() string

func (*AggregateFoodItem) GetId

func (x *AggregateFoodItem) GetId() int32

func (*AggregateFoodItem) GetMedianCarbonFootprint

func (x *AggregateFoodItem) GetMedianCarbonFootprint() float64

func (*AggregateFoodItem) GetRegion

func (x *AggregateFoodItem) GetRegion() Region

func (*AggregateFoodItem) GetSubTypologyName

func (x *AggregateFoodItem) GetSubTypologyName() string

func (*AggregateFoodItem) GetTypologyName

func (x *AggregateFoodItem) GetTypologyName() string

func (*AggregateFoodItem) ProtoMessage

func (*AggregateFoodItem) ProtoMessage()

func (*AggregateFoodItem) ProtoReflect

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

func (*AggregateFoodItem) Reset

func (x *AggregateFoodItem) Reset()

func (*AggregateFoodItem) String

func (x *AggregateFoodItem) String() string

func (*AggregateFoodItem) Validate

func (m *AggregateFoodItem) Validate() error

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

func (m *AggregateFoodItem) ValidateAll() error

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

type AggregateFoodItemMultiError

type AggregateFoodItemMultiError []error

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

func (AggregateFoodItemMultiError) AllErrors

func (m AggregateFoodItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AggregateFoodItemMultiError) Error

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

type AggregateFoodItemValidationError

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

AggregateFoodItemValidationError is the validation error returned by AggregateFoodItem.Validate if the designated constraints aren't met.

func (AggregateFoodItemValidationError) Cause

Cause function returns cause value.

func (AggregateFoodItemValidationError) Error

Error satisfies the builtin error interface

func (AggregateFoodItemValidationError) ErrorName

ErrorName returns error name.

func (AggregateFoodItemValidationError) Field

Field function returns field value.

func (AggregateFoodItemValidationError) Key

Key function returns key value.

func (AggregateFoodItemValidationError) Reason

Reason function returns reason value.

type CreateFoodItemRequest

type CreateFoodItemRequest struct {
	FoodItem *FoodItem `protobuf:"bytes,1,opt,name=food_item,json=foodItem,proto3" json:"food_item,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFoodItemRequest) Descriptor deprecated

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

Deprecated: Use CreateFoodItemRequest.ProtoReflect.Descriptor instead.

func (*CreateFoodItemRequest) GetFoodItem

func (x *CreateFoodItemRequest) GetFoodItem() *FoodItem

func (*CreateFoodItemRequest) ProtoMessage

func (*CreateFoodItemRequest) ProtoMessage()

func (*CreateFoodItemRequest) ProtoReflect

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

func (*CreateFoodItemRequest) Reset

func (x *CreateFoodItemRequest) Reset()

func (*CreateFoodItemRequest) String

func (x *CreateFoodItemRequest) String() string

func (*CreateFoodItemRequest) Validate

func (m *CreateFoodItemRequest) Validate() error

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

func (m *CreateFoodItemRequest) ValidateAll() error

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

type CreateFoodItemRequestMultiError

type CreateFoodItemRequestMultiError []error

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

func (CreateFoodItemRequestMultiError) AllErrors

func (m CreateFoodItemRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateFoodItemRequestMultiError) Error

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

type CreateFoodItemRequestValidationError

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

CreateFoodItemRequestValidationError is the validation error returned by CreateFoodItemRequest.Validate if the designated constraints aren't met.

func (CreateFoodItemRequestValidationError) Cause

Cause function returns cause value.

func (CreateFoodItemRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateFoodItemRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateFoodItemRequestValidationError) Field

Field function returns field value.

func (CreateFoodItemRequestValidationError) Key

Key function returns key value.

func (CreateFoodItemRequestValidationError) Reason

Reason function returns reason value.

type CreateFoodItemResponse

type CreateFoodItemResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFoodItemResponse) Descriptor deprecated

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

Deprecated: Use CreateFoodItemResponse.ProtoReflect.Descriptor instead.

func (*CreateFoodItemResponse) GetId

func (x *CreateFoodItemResponse) GetId() int32

func (*CreateFoodItemResponse) ProtoMessage

func (*CreateFoodItemResponse) ProtoMessage()

func (*CreateFoodItemResponse) ProtoReflect

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

func (*CreateFoodItemResponse) Reset

func (x *CreateFoodItemResponse) Reset()

func (*CreateFoodItemResponse) String

func (x *CreateFoodItemResponse) String() string

func (*CreateFoodItemResponse) Validate

func (m *CreateFoodItemResponse) Validate() error

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

func (m *CreateFoodItemResponse) ValidateAll() error

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

type CreateFoodItemResponseMultiError

type CreateFoodItemResponseMultiError []error

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

func (CreateFoodItemResponseMultiError) AllErrors

func (m CreateFoodItemResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateFoodItemResponseMultiError) Error

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

type CreateFoodItemResponseValidationError

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

CreateFoodItemResponseValidationError is the validation error returned by CreateFoodItemResponse.Validate if the designated constraints aren't met.

func (CreateFoodItemResponseValidationError) Cause

Cause function returns cause value.

func (CreateFoodItemResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateFoodItemResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateFoodItemResponseValidationError) Field

Field function returns field value.

func (CreateFoodItemResponseValidationError) Key

Key function returns key value.

func (CreateFoodItemResponseValidationError) Reason

Reason function returns reason value.

type CreateLifeCycleRequest

type CreateLifeCycleRequest struct {
	LifeCycle *LifeCycle `protobuf:"bytes,1,opt,name=life_cycle,json=lifeCycle,proto3" json:"life_cycle,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLifeCycleRequest) Descriptor deprecated

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

Deprecated: Use CreateLifeCycleRequest.ProtoReflect.Descriptor instead.

func (*CreateLifeCycleRequest) GetLifeCycle

func (x *CreateLifeCycleRequest) GetLifeCycle() *LifeCycle

func (*CreateLifeCycleRequest) ProtoMessage

func (*CreateLifeCycleRequest) ProtoMessage()

func (*CreateLifeCycleRequest) ProtoReflect

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

func (*CreateLifeCycleRequest) Reset

func (x *CreateLifeCycleRequest) Reset()

func (*CreateLifeCycleRequest) String

func (x *CreateLifeCycleRequest) String() string

func (*CreateLifeCycleRequest) Validate

func (m *CreateLifeCycleRequest) Validate() error

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

func (m *CreateLifeCycleRequest) ValidateAll() error

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

type CreateLifeCycleRequestMultiError

type CreateLifeCycleRequestMultiError []error

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

func (CreateLifeCycleRequestMultiError) AllErrors

func (m CreateLifeCycleRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateLifeCycleRequestMultiError) Error

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

type CreateLifeCycleRequestValidationError

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

CreateLifeCycleRequestValidationError is the validation error returned by CreateLifeCycleRequest.Validate if the designated constraints aren't met.

func (CreateLifeCycleRequestValidationError) Cause

Cause function returns cause value.

func (CreateLifeCycleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateLifeCycleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateLifeCycleRequestValidationError) Field

Field function returns field value.

func (CreateLifeCycleRequestValidationError) Key

Key function returns key value.

func (CreateLifeCycleRequestValidationError) Reason

Reason function returns reason value.

type CreateLifeCycleResponse

type CreateLifeCycleResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLifeCycleResponse) Descriptor deprecated

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

Deprecated: Use CreateLifeCycleResponse.ProtoReflect.Descriptor instead.

func (*CreateLifeCycleResponse) GetId

func (x *CreateLifeCycleResponse) GetId() int32

func (*CreateLifeCycleResponse) ProtoMessage

func (*CreateLifeCycleResponse) ProtoMessage()

func (*CreateLifeCycleResponse) ProtoReflect

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

func (*CreateLifeCycleResponse) Reset

func (x *CreateLifeCycleResponse) Reset()

func (*CreateLifeCycleResponse) String

func (x *CreateLifeCycleResponse) String() string

func (*CreateLifeCycleResponse) Validate

func (m *CreateLifeCycleResponse) Validate() error

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

func (m *CreateLifeCycleResponse) ValidateAll() error

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

type CreateLifeCycleResponseMultiError

type CreateLifeCycleResponseMultiError []error

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

func (CreateLifeCycleResponseMultiError) AllErrors

func (m CreateLifeCycleResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateLifeCycleResponseMultiError) Error

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

type CreateLifeCycleResponseValidationError

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

CreateLifeCycleResponseValidationError is the validation error returned by CreateLifeCycleResponse.Validate if the designated constraints aren't met.

func (CreateLifeCycleResponseValidationError) Cause

Cause function returns cause value.

func (CreateLifeCycleResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateLifeCycleResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateLifeCycleResponseValidationError) Field

Field function returns field value.

func (CreateLifeCycleResponseValidationError) Key

Key function returns key value.

func (CreateLifeCycleResponseValidationError) Reason

Reason function returns reason value.

type CreateSourceRequest

type CreateSourceRequest struct {
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSourceRequest) Descriptor deprecated

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

Deprecated: Use CreateSourceRequest.ProtoReflect.Descriptor instead.

func (*CreateSourceRequest) GetSource

func (x *CreateSourceRequest) GetSource() *Source

func (*CreateSourceRequest) ProtoMessage

func (*CreateSourceRequest) ProtoMessage()

func (*CreateSourceRequest) ProtoReflect

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

func (*CreateSourceRequest) Reset

func (x *CreateSourceRequest) Reset()

func (*CreateSourceRequest) String

func (x *CreateSourceRequest) String() string

func (*CreateSourceRequest) Validate

func (m *CreateSourceRequest) Validate() error

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

func (m *CreateSourceRequest) ValidateAll() error

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

type CreateSourceRequestMultiError

type CreateSourceRequestMultiError []error

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

func (CreateSourceRequestMultiError) AllErrors

func (m CreateSourceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateSourceRequestMultiError) Error

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

type CreateSourceRequestValidationError

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

CreateSourceRequestValidationError is the validation error returned by CreateSourceRequest.Validate if the designated constraints aren't met.

func (CreateSourceRequestValidationError) Cause

Cause function returns cause value.

func (CreateSourceRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSourceRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSourceRequestValidationError) Field

Field function returns field value.

func (CreateSourceRequestValidationError) Key

Key function returns key value.

func (CreateSourceRequestValidationError) Reason

Reason function returns reason value.

type CreateSourceResponse

type CreateSourceResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSourceResponse) Descriptor deprecated

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

Deprecated: Use CreateSourceResponse.ProtoReflect.Descriptor instead.

func (*CreateSourceResponse) GetId

func (x *CreateSourceResponse) GetId() int32

func (*CreateSourceResponse) ProtoMessage

func (*CreateSourceResponse) ProtoMessage()

func (*CreateSourceResponse) ProtoReflect

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

func (*CreateSourceResponse) Reset

func (x *CreateSourceResponse) Reset()

func (*CreateSourceResponse) String

func (x *CreateSourceResponse) String() string

func (*CreateSourceResponse) Validate

func (m *CreateSourceResponse) Validate() error

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

func (m *CreateSourceResponse) ValidateAll() error

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

type CreateSourceResponseMultiError

type CreateSourceResponseMultiError []error

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

func (CreateSourceResponseMultiError) AllErrors

func (m CreateSourceResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateSourceResponseMultiError) Error

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

type CreateSourceResponseValidationError

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

CreateSourceResponseValidationError is the validation error returned by CreateSourceResponse.Validate if the designated constraints aren't met.

func (CreateSourceResponseValidationError) Cause

Cause function returns cause value.

func (CreateSourceResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateSourceResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateSourceResponseValidationError) Field

Field function returns field value.

func (CreateSourceResponseValidationError) Key

Key function returns key value.

func (CreateSourceResponseValidationError) Reason

Reason function returns reason value.

type CreateSubTypologyRequest

type CreateSubTypologyRequest struct {
	SubTypology *SubTypology `protobuf:"bytes,1,opt,name=sub_typology,json=subTypology,proto3" json:"sub_typology,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubTypologyRequest) Descriptor deprecated

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

Deprecated: Use CreateSubTypologyRequest.ProtoReflect.Descriptor instead.

func (*CreateSubTypologyRequest) GetSubTypology

func (x *CreateSubTypologyRequest) GetSubTypology() *SubTypology

func (*CreateSubTypologyRequest) ProtoMessage

func (*CreateSubTypologyRequest) ProtoMessage()

func (*CreateSubTypologyRequest) ProtoReflect

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

func (*CreateSubTypologyRequest) Reset

func (x *CreateSubTypologyRequest) Reset()

func (*CreateSubTypologyRequest) String

func (x *CreateSubTypologyRequest) String() string

func (*CreateSubTypologyRequest) Validate

func (m *CreateSubTypologyRequest) Validate() error

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

func (m *CreateSubTypologyRequest) ValidateAll() error

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

type CreateSubTypologyRequestMultiError

type CreateSubTypologyRequestMultiError []error

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

func (CreateSubTypologyRequestMultiError) AllErrors

func (m CreateSubTypologyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateSubTypologyRequestMultiError) Error

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

type CreateSubTypologyRequestValidationError

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

CreateSubTypologyRequestValidationError is the validation error returned by CreateSubTypologyRequest.Validate if the designated constraints aren't met.

func (CreateSubTypologyRequestValidationError) Cause

Cause function returns cause value.

func (CreateSubTypologyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateSubTypologyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateSubTypologyRequestValidationError) Field

Field function returns field value.

func (CreateSubTypologyRequestValidationError) Key

Key function returns key value.

func (CreateSubTypologyRequestValidationError) Reason

Reason function returns reason value.

type CreateSubTypologyResponse

type CreateSubTypologyResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSubTypologyResponse) Descriptor deprecated

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

Deprecated: Use CreateSubTypologyResponse.ProtoReflect.Descriptor instead.

func (*CreateSubTypologyResponse) GetId

func (x *CreateSubTypologyResponse) GetId() int32

func (*CreateSubTypologyResponse) ProtoMessage

func (*CreateSubTypologyResponse) ProtoMessage()

func (*CreateSubTypologyResponse) ProtoReflect

func (*CreateSubTypologyResponse) Reset

func (x *CreateSubTypologyResponse) Reset()

func (*CreateSubTypologyResponse) String

func (x *CreateSubTypologyResponse) String() string

func (*CreateSubTypologyResponse) Validate

func (m *CreateSubTypologyResponse) Validate() error

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

func (m *CreateSubTypologyResponse) ValidateAll() error

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

type CreateSubTypologyResponseMultiError

type CreateSubTypologyResponseMultiError []error

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

func (CreateSubTypologyResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateSubTypologyResponseMultiError) Error

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

type CreateSubTypologyResponseValidationError

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

CreateSubTypologyResponseValidationError is the validation error returned by CreateSubTypologyResponse.Validate if the designated constraints aren't met.

func (CreateSubTypologyResponseValidationError) Cause

Cause function returns cause value.

func (CreateSubTypologyResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateSubTypologyResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateSubTypologyResponseValidationError) Field

Field function returns field value.

func (CreateSubTypologyResponseValidationError) Key

Key function returns key value.

func (CreateSubTypologyResponseValidationError) Reason

Reason function returns reason value.

type CreateTypologyRequest

type CreateTypologyRequest struct {
	Typology *Typology `protobuf:"bytes,1,opt,name=typology,proto3" json:"typology,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTypologyRequest) Descriptor deprecated

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

Deprecated: Use CreateTypologyRequest.ProtoReflect.Descriptor instead.

func (*CreateTypologyRequest) GetTypology

func (x *CreateTypologyRequest) GetTypology() *Typology

func (*CreateTypologyRequest) ProtoMessage

func (*CreateTypologyRequest) ProtoMessage()

func (*CreateTypologyRequest) ProtoReflect

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

func (*CreateTypologyRequest) Reset

func (x *CreateTypologyRequest) Reset()

func (*CreateTypologyRequest) String

func (x *CreateTypologyRequest) String() string

func (*CreateTypologyRequest) Validate

func (m *CreateTypologyRequest) Validate() error

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

func (m *CreateTypologyRequest) ValidateAll() error

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

type CreateTypologyRequestMultiError

type CreateTypologyRequestMultiError []error

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

func (CreateTypologyRequestMultiError) AllErrors

func (m CreateTypologyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTypologyRequestMultiError) Error

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

type CreateTypologyRequestValidationError

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

CreateTypologyRequestValidationError is the validation error returned by CreateTypologyRequest.Validate if the designated constraints aren't met.

func (CreateTypologyRequestValidationError) Cause

Cause function returns cause value.

func (CreateTypologyRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTypologyRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTypologyRequestValidationError) Field

Field function returns field value.

func (CreateTypologyRequestValidationError) Key

Key function returns key value.

func (CreateTypologyRequestValidationError) Reason

Reason function returns reason value.

type CreateTypologyResponse

type CreateTypologyResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTypologyResponse) Descriptor deprecated

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

Deprecated: Use CreateTypologyResponse.ProtoReflect.Descriptor instead.

func (*CreateTypologyResponse) GetId

func (x *CreateTypologyResponse) GetId() int32

func (*CreateTypologyResponse) ProtoMessage

func (*CreateTypologyResponse) ProtoMessage()

func (*CreateTypologyResponse) ProtoReflect

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

func (*CreateTypologyResponse) Reset

func (x *CreateTypologyResponse) Reset()

func (*CreateTypologyResponse) String

func (x *CreateTypologyResponse) String() string

func (*CreateTypologyResponse) Validate

func (m *CreateTypologyResponse) Validate() error

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

func (m *CreateTypologyResponse) ValidateAll() error

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

type CreateTypologyResponseMultiError

type CreateTypologyResponseMultiError []error

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

func (CreateTypologyResponseMultiError) AllErrors

func (m CreateTypologyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTypologyResponseMultiError) Error

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

type CreateTypologyResponseValidationError

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

CreateTypologyResponseValidationError is the validation error returned by CreateTypologyResponse.Validate if the designated constraints aren't met.

func (CreateTypologyResponseValidationError) Cause

Cause function returns cause value.

func (CreateTypologyResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTypologyResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTypologyResponseValidationError) Field

Field function returns field value.

func (CreateTypologyResponseValidationError) Key

Key function returns key value.

func (CreateTypologyResponseValidationError) Reason

Reason function returns reason value.

type FoodItem

type FoodItem struct {
	Id         int32           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	TypologyId int32           `protobuf:"varint,3,opt,name=typology_id,json=typologyId,proto3" json:"typology_id,omitempty"`
	CfType     FoodItem_CfType `protobuf:"varint,4,opt,name=cf_type,json=cfType,proto3,enum=neutral_diet.food.v1.FoodItem_CfType" json:"cf_type,omitempty"`
	// contains filtered or unexported fields
}

func (*FoodItem) Descriptor deprecated

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

Deprecated: Use FoodItem.ProtoReflect.Descriptor instead.

func (*FoodItem) GetCfType

func (x *FoodItem) GetCfType() FoodItem_CfType

func (*FoodItem) GetId

func (x *FoodItem) GetId() int32

func (*FoodItem) GetName

func (x *FoodItem) GetName() string

func (*FoodItem) GetTypologyId

func (x *FoodItem) GetTypologyId() int32

func (*FoodItem) ProtoMessage

func (*FoodItem) ProtoMessage()

func (*FoodItem) ProtoReflect

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

func (*FoodItem) Reset

func (x *FoodItem) Reset()

func (*FoodItem) String

func (x *FoodItem) String() string

func (*FoodItem) Validate

func (m *FoodItem) Validate() error

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

func (m *FoodItem) ValidateAll() error

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

type FoodItemInfo

type FoodItemInfo struct {
	TypologyName     string    `protobuf:"bytes,1,opt,name=typology_name,json=typologyName,proto3" json:"typology_name,omitempty"`
	SubTypologyName  string    `protobuf:"bytes,2,opt,name=sub_typology_name,json=subTypologyName,proto3" json:"sub_typology_name,omitempty"`
	NonUniqueSources int64     `protobuf:"varint,3,opt,name=non_unique_sources,json=nonUniqueSources,proto3" json:"non_unique_sources,omitempty"`
	Sources          []*Source `protobuf:"bytes,4,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

func (*FoodItemInfo) Descriptor deprecated

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

Deprecated: Use FoodItemInfo.ProtoReflect.Descriptor instead.

func (*FoodItemInfo) GetNonUniqueSources

func (x *FoodItemInfo) GetNonUniqueSources() int64

func (*FoodItemInfo) GetSources

func (x *FoodItemInfo) GetSources() []*Source

func (*FoodItemInfo) GetSubTypologyName

func (x *FoodItemInfo) GetSubTypologyName() string

func (*FoodItemInfo) GetTypologyName

func (x *FoodItemInfo) GetTypologyName() string

func (*FoodItemInfo) ProtoMessage

func (*FoodItemInfo) ProtoMessage()

func (*FoodItemInfo) ProtoReflect

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

func (*FoodItemInfo) Reset

func (x *FoodItemInfo) Reset()

func (*FoodItemInfo) String

func (x *FoodItemInfo) String() string

func (*FoodItemInfo) Validate

func (m *FoodItemInfo) Validate() error

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

func (m *FoodItemInfo) ValidateAll() error

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

type FoodItemInfoMultiError

type FoodItemInfoMultiError []error

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

func (FoodItemInfoMultiError) AllErrors

func (m FoodItemInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FoodItemInfoMultiError) Error

func (m FoodItemInfoMultiError) Error() string

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

type FoodItemInfoValidationError

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

FoodItemInfoValidationError is the validation error returned by FoodItemInfo.Validate if the designated constraints aren't met.

func (FoodItemInfoValidationError) Cause

Cause function returns cause value.

func (FoodItemInfoValidationError) Error

Error satisfies the builtin error interface

func (FoodItemInfoValidationError) ErrorName

func (e FoodItemInfoValidationError) ErrorName() string

ErrorName returns error name.

func (FoodItemInfoValidationError) Field

Field function returns field value.

func (FoodItemInfoValidationError) Key

Key function returns key value.

func (FoodItemInfoValidationError) Reason

Reason function returns reason value.

type FoodItemMultiError

type FoodItemMultiError []error

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

func (FoodItemMultiError) AllErrors

func (m FoodItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FoodItemMultiError) Error

func (m FoodItemMultiError) Error() string

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

type FoodItemValidationError

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

FoodItemValidationError is the validation error returned by FoodItem.Validate if the designated constraints aren't met.

func (FoodItemValidationError) Cause

func (e FoodItemValidationError) Cause() error

Cause function returns cause value.

func (FoodItemValidationError) Error

func (e FoodItemValidationError) Error() string

Error satisfies the builtin error interface

func (FoodItemValidationError) ErrorName

func (e FoodItemValidationError) ErrorName() string

ErrorName returns error name.

func (FoodItemValidationError) Field

func (e FoodItemValidationError) Field() string

Field function returns field value.

func (FoodItemValidationError) Key

func (e FoodItemValidationError) Key() bool

Key function returns key value.

func (FoodItemValidationError) Reason

func (e FoodItemValidationError) Reason() string

Reason function returns reason value.

type FoodItem_CfType

type FoodItem_CfType int32
const (
	FoodItem_CF_TYPE_UNSPECIFIED  FoodItem_CfType = 0
	FoodItem_CF_TYPE_TYPOLOGY     FoodItem_CfType = 1
	FoodItem_CF_TYPE_SUB_TYPOLOGY FoodItem_CfType = 2
	FoodItem_CF_TYPE_ITEM         FoodItem_CfType = 3
)

func (FoodItem_CfType) Descriptor

func (FoodItem_CfType) Enum

func (x FoodItem_CfType) Enum() *FoodItem_CfType

func (FoodItem_CfType) EnumDescriptor deprecated

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

Deprecated: Use FoodItem_CfType.Descriptor instead.

func (FoodItem_CfType) Number

func (FoodItem_CfType) String

func (x FoodItem_CfType) String() string

func (FoodItem_CfType) Type

type GetFoodItemInfoRequest

type GetFoodItemInfoRequest struct {
	Id     int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Region Region `protobuf:"varint,2,opt,name=region,proto3,enum=neutral_diet.food.v1.Region" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFoodItemInfoRequest) Descriptor deprecated

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

Deprecated: Use GetFoodItemInfoRequest.ProtoReflect.Descriptor instead.

func (*GetFoodItemInfoRequest) GetId

func (x *GetFoodItemInfoRequest) GetId() int32

func (*GetFoodItemInfoRequest) GetRegion

func (x *GetFoodItemInfoRequest) GetRegion() Region

func (*GetFoodItemInfoRequest) ProtoMessage

func (*GetFoodItemInfoRequest) ProtoMessage()

func (*GetFoodItemInfoRequest) ProtoReflect

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

func (*GetFoodItemInfoRequest) Reset

func (x *GetFoodItemInfoRequest) Reset()

func (*GetFoodItemInfoRequest) String

func (x *GetFoodItemInfoRequest) String() string

func (*GetFoodItemInfoRequest) Validate

func (m *GetFoodItemInfoRequest) Validate() error

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

func (m *GetFoodItemInfoRequest) ValidateAll() error

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

type GetFoodItemInfoRequestMultiError

type GetFoodItemInfoRequestMultiError []error

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

func (GetFoodItemInfoRequestMultiError) AllErrors

func (m GetFoodItemInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFoodItemInfoRequestMultiError) Error

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

type GetFoodItemInfoRequestValidationError

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

GetFoodItemInfoRequestValidationError is the validation error returned by GetFoodItemInfoRequest.Validate if the designated constraints aren't met.

func (GetFoodItemInfoRequestValidationError) Cause

Cause function returns cause value.

func (GetFoodItemInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetFoodItemInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetFoodItemInfoRequestValidationError) Field

Field function returns field value.

func (GetFoodItemInfoRequestValidationError) Key

Key function returns key value.

func (GetFoodItemInfoRequestValidationError) Reason

Reason function returns reason value.

type GetFoodItemInfoResponse

type GetFoodItemInfoResponse struct {
	FoodItemInfo *FoodItemInfo `protobuf:"bytes,1,opt,name=food_item_info,json=foodItemInfo,proto3" json:"food_item_info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFoodItemInfoResponse) Descriptor deprecated

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

Deprecated: Use GetFoodItemInfoResponse.ProtoReflect.Descriptor instead.

func (*GetFoodItemInfoResponse) GetFoodItemInfo

func (x *GetFoodItemInfoResponse) GetFoodItemInfo() *FoodItemInfo

func (*GetFoodItemInfoResponse) ProtoMessage

func (*GetFoodItemInfoResponse) ProtoMessage()

func (*GetFoodItemInfoResponse) ProtoReflect

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

func (*GetFoodItemInfoResponse) Reset

func (x *GetFoodItemInfoResponse) Reset()

func (*GetFoodItemInfoResponse) String

func (x *GetFoodItemInfoResponse) String() string

func (*GetFoodItemInfoResponse) Validate

func (m *GetFoodItemInfoResponse) Validate() error

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

func (m *GetFoodItemInfoResponse) ValidateAll() error

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

type GetFoodItemInfoResponseMultiError

type GetFoodItemInfoResponseMultiError []error

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

func (GetFoodItemInfoResponseMultiError) AllErrors

func (m GetFoodItemInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetFoodItemInfoResponseMultiError) Error

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

type GetFoodItemInfoResponseValidationError

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

GetFoodItemInfoResponseValidationError is the validation error returned by GetFoodItemInfoResponse.Validate if the designated constraints aren't met.

func (GetFoodItemInfoResponseValidationError) Cause

Cause function returns cause value.

func (GetFoodItemInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetFoodItemInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetFoodItemInfoResponseValidationError) Field

Field function returns field value.

func (GetFoodItemInfoResponseValidationError) Key

Key function returns key value.

func (GetFoodItemInfoResponseValidationError) Reason

Reason function returns reason value.

type LifeCycle

type LifeCycle struct {
	CarbonFootprint float64 `protobuf:"fixed64,1,opt,name=carbon_footprint,json=carbonFootprint,proto3" json:"carbon_footprint,omitempty"`
	FoodItemId      int32   `protobuf:"varint,2,opt,name=food_item_id,json=foodItemId,proto3" json:"food_item_id,omitempty"`
	SourceId        int32   `protobuf:"varint,3,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LifeCycle) Descriptor deprecated

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

Deprecated: Use LifeCycle.ProtoReflect.Descriptor instead.

func (*LifeCycle) GetCarbonFootprint

func (x *LifeCycle) GetCarbonFootprint() float64

func (*LifeCycle) GetFoodItemId

func (x *LifeCycle) GetFoodItemId() int32

func (*LifeCycle) GetSourceId

func (x *LifeCycle) GetSourceId() int32

func (*LifeCycle) ProtoMessage

func (*LifeCycle) ProtoMessage()

func (*LifeCycle) ProtoReflect

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

func (*LifeCycle) Reset

func (x *LifeCycle) Reset()

func (*LifeCycle) String

func (x *LifeCycle) String() string

func (*LifeCycle) Validate

func (m *LifeCycle) Validate() error

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

func (m *LifeCycle) ValidateAll() error

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

type LifeCycleMultiError

type LifeCycleMultiError []error

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

func (LifeCycleMultiError) AllErrors

func (m LifeCycleMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LifeCycleMultiError) Error

func (m LifeCycleMultiError) Error() string

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

type LifeCycleValidationError

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

LifeCycleValidationError is the validation error returned by LifeCycle.Validate if the designated constraints aren't met.

func (LifeCycleValidationError) Cause

func (e LifeCycleValidationError) Cause() error

Cause function returns cause value.

func (LifeCycleValidationError) Error

func (e LifeCycleValidationError) Error() string

Error satisfies the builtin error interface

func (LifeCycleValidationError) ErrorName

func (e LifeCycleValidationError) ErrorName() string

ErrorName returns error name.

func (LifeCycleValidationError) Field

func (e LifeCycleValidationError) Field() string

Field function returns field value.

func (LifeCycleValidationError) Key

Key function returns key value.

func (LifeCycleValidationError) Reason

func (e LifeCycleValidationError) Reason() string

Reason function returns reason value.

type ListAggregateFoodItemsRequest

type ListAggregateFoodItemsRequest struct {
	Region Region `protobuf:"varint,1,opt,name=region,proto3,enum=neutral_diet.food.v1.Region" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAggregateFoodItemsRequest) Descriptor deprecated

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

Deprecated: Use ListAggregateFoodItemsRequest.ProtoReflect.Descriptor instead.

func (*ListAggregateFoodItemsRequest) GetRegion

func (x *ListAggregateFoodItemsRequest) GetRegion() Region

func (*ListAggregateFoodItemsRequest) ProtoMessage

func (*ListAggregateFoodItemsRequest) ProtoMessage()

func (*ListAggregateFoodItemsRequest) ProtoReflect

func (*ListAggregateFoodItemsRequest) Reset

func (x *ListAggregateFoodItemsRequest) Reset()

func (*ListAggregateFoodItemsRequest) String

func (*ListAggregateFoodItemsRequest) Validate

func (m *ListAggregateFoodItemsRequest) Validate() error

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

func (m *ListAggregateFoodItemsRequest) ValidateAll() error

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

type ListAggregateFoodItemsRequestMultiError

type ListAggregateFoodItemsRequestMultiError []error

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

func (ListAggregateFoodItemsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListAggregateFoodItemsRequestMultiError) Error

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

type ListAggregateFoodItemsRequestValidationError

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

ListAggregateFoodItemsRequestValidationError is the validation error returned by ListAggregateFoodItemsRequest.Validate if the designated constraints aren't met.

func (ListAggregateFoodItemsRequestValidationError) Cause

Cause function returns cause value.

func (ListAggregateFoodItemsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListAggregateFoodItemsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListAggregateFoodItemsRequestValidationError) Field

Field function returns field value.

func (ListAggregateFoodItemsRequestValidationError) Key

Key function returns key value.

func (ListAggregateFoodItemsRequestValidationError) Reason

Reason function returns reason value.

type ListAggregateFoodItemsResponse

type ListAggregateFoodItemsResponse struct {
	FoodItems []*AggregateFoodItem `protobuf:"bytes,1,rep,name=food_items,json=foodItems,proto3" json:"food_items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAggregateFoodItemsResponse) Descriptor deprecated

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

Deprecated: Use ListAggregateFoodItemsResponse.ProtoReflect.Descriptor instead.

func (*ListAggregateFoodItemsResponse) GetFoodItems

func (*ListAggregateFoodItemsResponse) ProtoMessage

func (*ListAggregateFoodItemsResponse) ProtoMessage()

func (*ListAggregateFoodItemsResponse) ProtoReflect

func (*ListAggregateFoodItemsResponse) Reset

func (x *ListAggregateFoodItemsResponse) Reset()

func (*ListAggregateFoodItemsResponse) String

func (*ListAggregateFoodItemsResponse) Validate

func (m *ListAggregateFoodItemsResponse) Validate() error

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

func (m *ListAggregateFoodItemsResponse) ValidateAll() error

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

type ListAggregateFoodItemsResponseMultiError

type ListAggregateFoodItemsResponseMultiError []error

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

func (ListAggregateFoodItemsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListAggregateFoodItemsResponseMultiError) Error

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

type ListAggregateFoodItemsResponseValidationError

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

ListAggregateFoodItemsResponseValidationError is the validation error returned by ListAggregateFoodItemsResponse.Validate if the designated constraints aren't met.

func (ListAggregateFoodItemsResponseValidationError) Cause

Cause function returns cause value.

func (ListAggregateFoodItemsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListAggregateFoodItemsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListAggregateFoodItemsResponseValidationError) Field

Field function returns field value.

func (ListAggregateFoodItemsResponseValidationError) Key

Key function returns key value.

func (ListAggregateFoodItemsResponseValidationError) Reason

Reason function returns reason value.

type ListSubTypologyNamesRequest

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

func (*ListSubTypologyNamesRequest) Descriptor deprecated

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

Deprecated: Use ListSubTypologyNamesRequest.ProtoReflect.Descriptor instead.

func (*ListSubTypologyNamesRequest) ProtoMessage

func (*ListSubTypologyNamesRequest) ProtoMessage()

func (*ListSubTypologyNamesRequest) ProtoReflect

func (*ListSubTypologyNamesRequest) Reset

func (x *ListSubTypologyNamesRequest) Reset()

func (*ListSubTypologyNamesRequest) String

func (x *ListSubTypologyNamesRequest) String() string

func (*ListSubTypologyNamesRequest) Validate

func (m *ListSubTypologyNamesRequest) Validate() error

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

func (m *ListSubTypologyNamesRequest) ValidateAll() error

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

type ListSubTypologyNamesRequestMultiError

type ListSubTypologyNamesRequestMultiError []error

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

func (ListSubTypologyNamesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListSubTypologyNamesRequestMultiError) Error

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

type ListSubTypologyNamesRequestValidationError

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

ListSubTypologyNamesRequestValidationError is the validation error returned by ListSubTypologyNamesRequest.Validate if the designated constraints aren't met.

func (ListSubTypologyNamesRequestValidationError) Cause

Cause function returns cause value.

func (ListSubTypologyNamesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListSubTypologyNamesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListSubTypologyNamesRequestValidationError) Field

Field function returns field value.

func (ListSubTypologyNamesRequestValidationError) Key

Key function returns key value.

func (ListSubTypologyNamesRequestValidationError) Reason

Reason function returns reason value.

type ListSubTypologyNamesResponse

type ListSubTypologyNamesResponse struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubTypologyNamesResponse) Descriptor deprecated

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

Deprecated: Use ListSubTypologyNamesResponse.ProtoReflect.Descriptor instead.

func (*ListSubTypologyNamesResponse) GetNames

func (x *ListSubTypologyNamesResponse) GetNames() []string

func (*ListSubTypologyNamesResponse) ProtoMessage

func (*ListSubTypologyNamesResponse) ProtoMessage()

func (*ListSubTypologyNamesResponse) ProtoReflect

func (*ListSubTypologyNamesResponse) Reset

func (x *ListSubTypologyNamesResponse) Reset()

func (*ListSubTypologyNamesResponse) String

func (*ListSubTypologyNamesResponse) Validate

func (m *ListSubTypologyNamesResponse) Validate() error

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

func (m *ListSubTypologyNamesResponse) ValidateAll() error

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

type ListSubTypologyNamesResponseMultiError

type ListSubTypologyNamesResponseMultiError []error

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

func (ListSubTypologyNamesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListSubTypologyNamesResponseMultiError) Error

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

type ListSubTypologyNamesResponseValidationError

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

ListSubTypologyNamesResponseValidationError is the validation error returned by ListSubTypologyNamesResponse.Validate if the designated constraints aren't met.

func (ListSubTypologyNamesResponseValidationError) Cause

Cause function returns cause value.

func (ListSubTypologyNamesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListSubTypologyNamesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListSubTypologyNamesResponseValidationError) Field

Field function returns field value.

func (ListSubTypologyNamesResponseValidationError) Key

Key function returns key value.

func (ListSubTypologyNamesResponseValidationError) Reason

Reason function returns reason value.

type ListTypologyNamesRequest

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

func (*ListTypologyNamesRequest) Descriptor deprecated

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

Deprecated: Use ListTypologyNamesRequest.ProtoReflect.Descriptor instead.

func (*ListTypologyNamesRequest) ProtoMessage

func (*ListTypologyNamesRequest) ProtoMessage()

func (*ListTypologyNamesRequest) ProtoReflect

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

func (*ListTypologyNamesRequest) Reset

func (x *ListTypologyNamesRequest) Reset()

func (*ListTypologyNamesRequest) String

func (x *ListTypologyNamesRequest) String() string

func (*ListTypologyNamesRequest) Validate

func (m *ListTypologyNamesRequest) Validate() error

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

func (m *ListTypologyNamesRequest) ValidateAll() error

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

type ListTypologyNamesRequestMultiError

type ListTypologyNamesRequestMultiError []error

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

func (ListTypologyNamesRequestMultiError) AllErrors

func (m ListTypologyNamesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListTypologyNamesRequestMultiError) Error

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

type ListTypologyNamesRequestValidationError

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

ListTypologyNamesRequestValidationError is the validation error returned by ListTypologyNamesRequest.Validate if the designated constraints aren't met.

func (ListTypologyNamesRequestValidationError) Cause

Cause function returns cause value.

func (ListTypologyNamesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTypologyNamesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTypologyNamesRequestValidationError) Field

Field function returns field value.

func (ListTypologyNamesRequestValidationError) Key

Key function returns key value.

func (ListTypologyNamesRequestValidationError) Reason

Reason function returns reason value.

type ListTypologyNamesResponse

type ListTypologyNamesResponse struct {
	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTypologyNamesResponse) Descriptor deprecated

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

Deprecated: Use ListTypologyNamesResponse.ProtoReflect.Descriptor instead.

func (*ListTypologyNamesResponse) GetNames

func (x *ListTypologyNamesResponse) GetNames() []string

func (*ListTypologyNamesResponse) ProtoMessage

func (*ListTypologyNamesResponse) ProtoMessage()

func (*ListTypologyNamesResponse) ProtoReflect

func (*ListTypologyNamesResponse) Reset

func (x *ListTypologyNamesResponse) Reset()

func (*ListTypologyNamesResponse) String

func (x *ListTypologyNamesResponse) String() string

func (*ListTypologyNamesResponse) Validate

func (m *ListTypologyNamesResponse) Validate() error

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

func (m *ListTypologyNamesResponse) ValidateAll() error

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

type ListTypologyNamesResponseMultiError

type ListTypologyNamesResponseMultiError []error

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

func (ListTypologyNamesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListTypologyNamesResponseMultiError) Error

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

type ListTypologyNamesResponseValidationError

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

ListTypologyNamesResponseValidationError is the validation error returned by ListTypologyNamesResponse.Validate if the designated constraints aren't met.

func (ListTypologyNamesResponseValidationError) Cause

Cause function returns cause value.

func (ListTypologyNamesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTypologyNamesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTypologyNamesResponseValidationError) Field

Field function returns field value.

func (ListTypologyNamesResponseValidationError) Key

Key function returns key value.

func (ListTypologyNamesResponseValidationError) Reason

Reason function returns reason value.

type Region

type Region int32
const (
	Region_REGION_UNSPECIFIED   Region = 0
	Region_REGION_AFRICA        Region = 1
	Region_REGION_AMERICA       Region = 2
	Region_REGION_ASIA          Region = 3
	Region_REGION_EUROPE        Region = 4
	Region_REGION_MEDITERRANEAN Region = 5
	Region_REGION_OCEANIA       Region = 6
	Region_REGION_WORLD         Region = 7
)

func (Region) Descriptor

func (Region) Descriptor() protoreflect.EnumDescriptor

func (Region) Enum

func (x Region) Enum() *Region

func (Region) EnumDescriptor deprecated

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

Deprecated: Use Region.Descriptor instead.

func (Region) Number

func (x Region) Number() protoreflect.EnumNumber

func (Region) String

func (x Region) String() string

func (Region) Type

func (Region) Type() protoreflect.EnumType

type Source

type Source struct {
	Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
	Year      int32  `protobuf:"varint,2,opt,name=year,proto3" json:"year,omitempty"`
	Region    Region `protobuf:"varint,3,opt,name=region,proto3,enum=neutral_diet.food.v1.Region" json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetReference

func (x *Source) GetReference() string

func (*Source) GetRegion

func (x *Source) GetRegion() Region

func (*Source) GetYear

func (x *Source) GetYear() int32

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

func (*Source) Validate

func (m *Source) Validate() error

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

func (m *Source) ValidateAll() error

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

type SourceMultiError

type SourceMultiError []error

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

func (SourceMultiError) AllErrors

func (m SourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SourceMultiError) Error

func (m SourceMultiError) Error() string

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

type SourceValidationError

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

SourceValidationError is the validation error returned by Source.Validate if the designated constraints aren't met.

func (SourceValidationError) Cause

func (e SourceValidationError) Cause() error

Cause function returns cause value.

func (SourceValidationError) Error

func (e SourceValidationError) Error() string

Error satisfies the builtin error interface

func (SourceValidationError) ErrorName

func (e SourceValidationError) ErrorName() string

ErrorName returns error name.

func (SourceValidationError) Field

func (e SourceValidationError) Field() string

Field function returns field value.

func (SourceValidationError) Key

func (e SourceValidationError) Key() bool

Key function returns key value.

func (SourceValidationError) Reason

func (e SourceValidationError) Reason() string

Reason function returns reason value.

type SubTypology

type SubTypology struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*SubTypology) Descriptor deprecated

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

Deprecated: Use SubTypology.ProtoReflect.Descriptor instead.

func (*SubTypology) GetName

func (x *SubTypology) GetName() string

func (*SubTypology) ProtoMessage

func (*SubTypology) ProtoMessage()

func (*SubTypology) ProtoReflect

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

func (*SubTypology) Reset

func (x *SubTypology) Reset()

func (*SubTypology) String

func (x *SubTypology) String() string

func (*SubTypology) Validate

func (m *SubTypology) Validate() error

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

func (m *SubTypology) ValidateAll() error

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

type SubTypologyMultiError

type SubTypologyMultiError []error

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

func (SubTypologyMultiError) AllErrors

func (m SubTypologyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubTypologyMultiError) Error

func (m SubTypologyMultiError) Error() string

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

type SubTypologyValidationError

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

SubTypologyValidationError is the validation error returned by SubTypology.Validate if the designated constraints aren't met.

func (SubTypologyValidationError) Cause

Cause function returns cause value.

func (SubTypologyValidationError) Error

Error satisfies the builtin error interface

func (SubTypologyValidationError) ErrorName

func (e SubTypologyValidationError) ErrorName() string

ErrorName returns error name.

func (SubTypologyValidationError) Field

Field function returns field value.

func (SubTypologyValidationError) Key

Key function returns key value.

func (SubTypologyValidationError) Reason

Reason function returns reason value.

type Typology

type Typology struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SubTypologyId *int32 `protobuf:"varint,2,opt,name=sub_typology_id,json=subTypologyId,proto3,oneof" json:"sub_typology_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Typology) Descriptor deprecated

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

Deprecated: Use Typology.ProtoReflect.Descriptor instead.

func (*Typology) GetName

func (x *Typology) GetName() string

func (*Typology) GetSubTypologyId

func (x *Typology) GetSubTypologyId() int32

func (*Typology) ProtoMessage

func (*Typology) ProtoMessage()

func (*Typology) ProtoReflect

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

func (*Typology) Reset

func (x *Typology) Reset()

func (*Typology) String

func (x *Typology) String() string

func (*Typology) Validate

func (m *Typology) Validate() error

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

func (m *Typology) ValidateAll() error

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

type TypologyMultiError

type TypologyMultiError []error

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

func (TypologyMultiError) AllErrors

func (m TypologyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TypologyMultiError) Error

func (m TypologyMultiError) Error() string

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

type TypologyValidationError

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

TypologyValidationError is the validation error returned by Typology.Validate if the designated constraints aren't met.

func (TypologyValidationError) Cause

func (e TypologyValidationError) Cause() error

Cause function returns cause value.

func (TypologyValidationError) Error

func (e TypologyValidationError) Error() string

Error satisfies the builtin error interface

func (TypologyValidationError) ErrorName

func (e TypologyValidationError) ErrorName() string

ErrorName returns error name.

func (TypologyValidationError) Field

func (e TypologyValidationError) Field() string

Field function returns field value.

func (TypologyValidationError) Key

func (e TypologyValidationError) Key() bool

Key function returns key value.

func (TypologyValidationError) Reason

func (e TypologyValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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