Documentation ¶
Index ¶
- Variables
- type AggregateFoodItem
- func (*AggregateFoodItem) Descriptor() ([]byte, []int)deprecated
- func (x *AggregateFoodItem) GetFoodName() string
- func (x *AggregateFoodItem) GetId() int32
- func (x *AggregateFoodItem) GetMedianCarbonFootprint() float64
- func (x *AggregateFoodItem) GetRegion() Region
- func (x *AggregateFoodItem) GetSubTypologyName() string
- func (x *AggregateFoodItem) GetTypologyName() string
- func (*AggregateFoodItem) ProtoMessage()
- func (x *AggregateFoodItem) ProtoReflect() protoreflect.Message
- func (x *AggregateFoodItem) Reset()
- func (x *AggregateFoodItem) String() string
- func (m *AggregateFoodItem) Validate() error
- func (m *AggregateFoodItem) ValidateAll() error
- type AggregateFoodItemMultiError
- type AggregateFoodItemValidationError
- func (e AggregateFoodItemValidationError) Cause() error
- func (e AggregateFoodItemValidationError) Error() string
- func (e AggregateFoodItemValidationError) ErrorName() string
- func (e AggregateFoodItemValidationError) Field() string
- func (e AggregateFoodItemValidationError) Key() bool
- func (e AggregateFoodItemValidationError) Reason() string
- type CreateFoodItemRequest
- func (*CreateFoodItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFoodItemRequest) GetFoodItem() *FoodItem
- func (*CreateFoodItemRequest) ProtoMessage()
- func (x *CreateFoodItemRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFoodItemRequest) Reset()
- func (x *CreateFoodItemRequest) String() string
- func (m *CreateFoodItemRequest) Validate() error
- func (m *CreateFoodItemRequest) ValidateAll() error
- type CreateFoodItemRequestMultiError
- type CreateFoodItemRequestValidationError
- func (e CreateFoodItemRequestValidationError) Cause() error
- func (e CreateFoodItemRequestValidationError) Error() string
- func (e CreateFoodItemRequestValidationError) ErrorName() string
- func (e CreateFoodItemRequestValidationError) Field() string
- func (e CreateFoodItemRequestValidationError) Key() bool
- func (e CreateFoodItemRequestValidationError) Reason() string
- type CreateFoodItemResponse
- func (*CreateFoodItemResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFoodItemResponse) GetId() int32
- func (*CreateFoodItemResponse) ProtoMessage()
- func (x *CreateFoodItemResponse) ProtoReflect() protoreflect.Message
- func (x *CreateFoodItemResponse) Reset()
- func (x *CreateFoodItemResponse) String() string
- func (m *CreateFoodItemResponse) Validate() error
- func (m *CreateFoodItemResponse) ValidateAll() error
- type CreateFoodItemResponseMultiError
- type CreateFoodItemResponseValidationError
- func (e CreateFoodItemResponseValidationError) Cause() error
- func (e CreateFoodItemResponseValidationError) Error() string
- func (e CreateFoodItemResponseValidationError) ErrorName() string
- func (e CreateFoodItemResponseValidationError) Field() string
- func (e CreateFoodItemResponseValidationError) Key() bool
- func (e CreateFoodItemResponseValidationError) Reason() string
- type CreateLifeCycleRequest
- func (*CreateLifeCycleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLifeCycleRequest) GetLifeCycle() *LifeCycle
- func (*CreateLifeCycleRequest) ProtoMessage()
- func (x *CreateLifeCycleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLifeCycleRequest) Reset()
- func (x *CreateLifeCycleRequest) String() string
- func (m *CreateLifeCycleRequest) Validate() error
- func (m *CreateLifeCycleRequest) ValidateAll() error
- type CreateLifeCycleRequestMultiError
- type CreateLifeCycleRequestValidationError
- func (e CreateLifeCycleRequestValidationError) Cause() error
- func (e CreateLifeCycleRequestValidationError) Error() string
- func (e CreateLifeCycleRequestValidationError) ErrorName() string
- func (e CreateLifeCycleRequestValidationError) Field() string
- func (e CreateLifeCycleRequestValidationError) Key() bool
- func (e CreateLifeCycleRequestValidationError) Reason() string
- type CreateLifeCycleResponse
- func (*CreateLifeCycleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLifeCycleResponse) GetId() int32
- func (*CreateLifeCycleResponse) ProtoMessage()
- func (x *CreateLifeCycleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLifeCycleResponse) Reset()
- func (x *CreateLifeCycleResponse) String() string
- func (m *CreateLifeCycleResponse) Validate() error
- func (m *CreateLifeCycleResponse) ValidateAll() error
- type CreateLifeCycleResponseMultiError
- type CreateLifeCycleResponseValidationError
- func (e CreateLifeCycleResponseValidationError) Cause() error
- func (e CreateLifeCycleResponseValidationError) Error() string
- func (e CreateLifeCycleResponseValidationError) ErrorName() string
- func (e CreateLifeCycleResponseValidationError) Field() string
- func (e CreateLifeCycleResponseValidationError) Key() bool
- func (e CreateLifeCycleResponseValidationError) Reason() string
- type CreateSourceRequest
- func (*CreateSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSourceRequest) GetSource() *Source
- func (*CreateSourceRequest) ProtoMessage()
- func (x *CreateSourceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSourceRequest) Reset()
- func (x *CreateSourceRequest) String() string
- func (m *CreateSourceRequest) Validate() error
- func (m *CreateSourceRequest) ValidateAll() error
- type CreateSourceRequestMultiError
- type CreateSourceRequestValidationError
- func (e CreateSourceRequestValidationError) Cause() error
- func (e CreateSourceRequestValidationError) Error() string
- func (e CreateSourceRequestValidationError) ErrorName() string
- func (e CreateSourceRequestValidationError) Field() string
- func (e CreateSourceRequestValidationError) Key() bool
- func (e CreateSourceRequestValidationError) Reason() string
- type CreateSourceResponse
- func (*CreateSourceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSourceResponse) GetId() int32
- func (*CreateSourceResponse) ProtoMessage()
- func (x *CreateSourceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSourceResponse) Reset()
- func (x *CreateSourceResponse) String() string
- func (m *CreateSourceResponse) Validate() error
- func (m *CreateSourceResponse) ValidateAll() error
- type CreateSourceResponseMultiError
- type CreateSourceResponseValidationError
- func (e CreateSourceResponseValidationError) Cause() error
- func (e CreateSourceResponseValidationError) Error() string
- func (e CreateSourceResponseValidationError) ErrorName() string
- func (e CreateSourceResponseValidationError) Field() string
- func (e CreateSourceResponseValidationError) Key() bool
- func (e CreateSourceResponseValidationError) Reason() string
- type CreateSubTypologyRequest
- func (*CreateSubTypologyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSubTypologyRequest) GetSubTypology() *SubTypology
- func (*CreateSubTypologyRequest) ProtoMessage()
- func (x *CreateSubTypologyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSubTypologyRequest) Reset()
- func (x *CreateSubTypologyRequest) String() string
- func (m *CreateSubTypologyRequest) Validate() error
- func (m *CreateSubTypologyRequest) ValidateAll() error
- type CreateSubTypologyRequestMultiError
- type CreateSubTypologyRequestValidationError
- func (e CreateSubTypologyRequestValidationError) Cause() error
- func (e CreateSubTypologyRequestValidationError) Error() string
- func (e CreateSubTypologyRequestValidationError) ErrorName() string
- func (e CreateSubTypologyRequestValidationError) Field() string
- func (e CreateSubTypologyRequestValidationError) Key() bool
- func (e CreateSubTypologyRequestValidationError) Reason() string
- type CreateSubTypologyResponse
- func (*CreateSubTypologyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSubTypologyResponse) GetId() int32
- func (*CreateSubTypologyResponse) ProtoMessage()
- func (x *CreateSubTypologyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSubTypologyResponse) Reset()
- func (x *CreateSubTypologyResponse) String() string
- func (m *CreateSubTypologyResponse) Validate() error
- func (m *CreateSubTypologyResponse) ValidateAll() error
- type CreateSubTypologyResponseMultiError
- type CreateSubTypologyResponseValidationError
- func (e CreateSubTypologyResponseValidationError) Cause() error
- func (e CreateSubTypologyResponseValidationError) Error() string
- func (e CreateSubTypologyResponseValidationError) ErrorName() string
- func (e CreateSubTypologyResponseValidationError) Field() string
- func (e CreateSubTypologyResponseValidationError) Key() bool
- func (e CreateSubTypologyResponseValidationError) Reason() string
- type CreateTypologyRequest
- func (*CreateTypologyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTypologyRequest) GetTypology() *Typology
- func (*CreateTypologyRequest) ProtoMessage()
- func (x *CreateTypologyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTypologyRequest) Reset()
- func (x *CreateTypologyRequest) String() string
- func (m *CreateTypologyRequest) Validate() error
- func (m *CreateTypologyRequest) ValidateAll() error
- type CreateTypologyRequestMultiError
- type CreateTypologyRequestValidationError
- func (e CreateTypologyRequestValidationError) Cause() error
- func (e CreateTypologyRequestValidationError) Error() string
- func (e CreateTypologyRequestValidationError) ErrorName() string
- func (e CreateTypologyRequestValidationError) Field() string
- func (e CreateTypologyRequestValidationError) Key() bool
- func (e CreateTypologyRequestValidationError) Reason() string
- type CreateTypologyResponse
- func (*CreateTypologyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTypologyResponse) GetId() int32
- func (*CreateTypologyResponse) ProtoMessage()
- func (x *CreateTypologyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTypologyResponse) Reset()
- func (x *CreateTypologyResponse) String() string
- func (m *CreateTypologyResponse) Validate() error
- func (m *CreateTypologyResponse) ValidateAll() error
- type CreateTypologyResponseMultiError
- type CreateTypologyResponseValidationError
- func (e CreateTypologyResponseValidationError) Cause() error
- func (e CreateTypologyResponseValidationError) Error() string
- func (e CreateTypologyResponseValidationError) ErrorName() string
- func (e CreateTypologyResponseValidationError) Field() string
- func (e CreateTypologyResponseValidationError) Key() bool
- func (e CreateTypologyResponseValidationError) Reason() string
- type FoodItem
- func (*FoodItem) Descriptor() ([]byte, []int)deprecated
- func (x *FoodItem) GetCfType() FoodItem_CfType
- func (x *FoodItem) GetId() int32
- func (x *FoodItem) GetName() string
- func (x *FoodItem) GetTypologyId() int32
- func (*FoodItem) ProtoMessage()
- func (x *FoodItem) ProtoReflect() protoreflect.Message
- func (x *FoodItem) Reset()
- func (x *FoodItem) String() string
- func (m *FoodItem) Validate() error
- func (m *FoodItem) ValidateAll() error
- type FoodItemInfo
- func (*FoodItemInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FoodItemInfo) GetNonUniqueSources() int64
- func (x *FoodItemInfo) GetSources() []*Source
- func (x *FoodItemInfo) GetSubTypologyName() string
- func (x *FoodItemInfo) GetTypologyName() string
- func (*FoodItemInfo) ProtoMessage()
- func (x *FoodItemInfo) ProtoReflect() protoreflect.Message
- func (x *FoodItemInfo) Reset()
- func (x *FoodItemInfo) String() string
- func (m *FoodItemInfo) Validate() error
- func (m *FoodItemInfo) ValidateAll() error
- type FoodItemInfoMultiError
- type FoodItemInfoValidationError
- func (e FoodItemInfoValidationError) Cause() error
- func (e FoodItemInfoValidationError) Error() string
- func (e FoodItemInfoValidationError) ErrorName() string
- func (e FoodItemInfoValidationError) Field() string
- func (e FoodItemInfoValidationError) Key() bool
- func (e FoodItemInfoValidationError) Reason() string
- type FoodItemMultiError
- type FoodItemValidationError
- type FoodItem_CfType
- func (FoodItem_CfType) Descriptor() protoreflect.EnumDescriptor
- func (x FoodItem_CfType) Enum() *FoodItem_CfType
- func (FoodItem_CfType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FoodItem_CfType) Number() protoreflect.EnumNumber
- func (x FoodItem_CfType) String() string
- func (FoodItem_CfType) Type() protoreflect.EnumType
- type GetFoodItemInfoRequest
- func (*GetFoodItemInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFoodItemInfoRequest) GetId() int32
- func (x *GetFoodItemInfoRequest) GetRegion() Region
- func (*GetFoodItemInfoRequest) ProtoMessage()
- func (x *GetFoodItemInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetFoodItemInfoRequest) Reset()
- func (x *GetFoodItemInfoRequest) String() string
- func (m *GetFoodItemInfoRequest) Validate() error
- func (m *GetFoodItemInfoRequest) ValidateAll() error
- type GetFoodItemInfoRequestMultiError
- type GetFoodItemInfoRequestValidationError
- func (e GetFoodItemInfoRequestValidationError) Cause() error
- func (e GetFoodItemInfoRequestValidationError) Error() string
- func (e GetFoodItemInfoRequestValidationError) ErrorName() string
- func (e GetFoodItemInfoRequestValidationError) Field() string
- func (e GetFoodItemInfoRequestValidationError) Key() bool
- func (e GetFoodItemInfoRequestValidationError) Reason() string
- type GetFoodItemInfoResponse
- func (*GetFoodItemInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFoodItemInfoResponse) GetFoodItemInfo() *FoodItemInfo
- func (*GetFoodItemInfoResponse) ProtoMessage()
- func (x *GetFoodItemInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetFoodItemInfoResponse) Reset()
- func (x *GetFoodItemInfoResponse) String() string
- func (m *GetFoodItemInfoResponse) Validate() error
- func (m *GetFoodItemInfoResponse) ValidateAll() error
- type GetFoodItemInfoResponseMultiError
- type GetFoodItemInfoResponseValidationError
- func (e GetFoodItemInfoResponseValidationError) Cause() error
- func (e GetFoodItemInfoResponseValidationError) Error() string
- func (e GetFoodItemInfoResponseValidationError) ErrorName() string
- func (e GetFoodItemInfoResponseValidationError) Field() string
- func (e GetFoodItemInfoResponseValidationError) Key() bool
- func (e GetFoodItemInfoResponseValidationError) Reason() string
- type LifeCycle
- func (*LifeCycle) Descriptor() ([]byte, []int)deprecated
- func (x *LifeCycle) GetCarbonFootprint() float64
- func (x *LifeCycle) GetFoodItemId() int32
- func (x *LifeCycle) GetSourceId() int32
- func (*LifeCycle) ProtoMessage()
- func (x *LifeCycle) ProtoReflect() protoreflect.Message
- func (x *LifeCycle) Reset()
- func (x *LifeCycle) String() string
- func (m *LifeCycle) Validate() error
- func (m *LifeCycle) ValidateAll() error
- type LifeCycleMultiError
- type LifeCycleValidationError
- type ListAggregateFoodItemsRequest
- func (*ListAggregateFoodItemsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListAggregateFoodItemsRequest) GetRegion() Region
- func (*ListAggregateFoodItemsRequest) ProtoMessage()
- func (x *ListAggregateFoodItemsRequest) ProtoReflect() protoreflect.Message
- func (x *ListAggregateFoodItemsRequest) Reset()
- func (x *ListAggregateFoodItemsRequest) String() string
- func (m *ListAggregateFoodItemsRequest) Validate() error
- func (m *ListAggregateFoodItemsRequest) ValidateAll() error
- type ListAggregateFoodItemsRequestMultiError
- type ListAggregateFoodItemsRequestValidationError
- func (e ListAggregateFoodItemsRequestValidationError) Cause() error
- func (e ListAggregateFoodItemsRequestValidationError) Error() string
- func (e ListAggregateFoodItemsRequestValidationError) ErrorName() string
- func (e ListAggregateFoodItemsRequestValidationError) Field() string
- func (e ListAggregateFoodItemsRequestValidationError) Key() bool
- func (e ListAggregateFoodItemsRequestValidationError) Reason() string
- type ListAggregateFoodItemsResponse
- func (*ListAggregateFoodItemsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAggregateFoodItemsResponse) GetFoodItems() []*AggregateFoodItem
- func (*ListAggregateFoodItemsResponse) ProtoMessage()
- func (x *ListAggregateFoodItemsResponse) ProtoReflect() protoreflect.Message
- func (x *ListAggregateFoodItemsResponse) Reset()
- func (x *ListAggregateFoodItemsResponse) String() string
- func (m *ListAggregateFoodItemsResponse) Validate() error
- func (m *ListAggregateFoodItemsResponse) ValidateAll() error
- type ListAggregateFoodItemsResponseMultiError
- type ListAggregateFoodItemsResponseValidationError
- func (e ListAggregateFoodItemsResponseValidationError) Cause() error
- func (e ListAggregateFoodItemsResponseValidationError) Error() string
- func (e ListAggregateFoodItemsResponseValidationError) ErrorName() string
- func (e ListAggregateFoodItemsResponseValidationError) Field() string
- func (e ListAggregateFoodItemsResponseValidationError) Key() bool
- func (e ListAggregateFoodItemsResponseValidationError) Reason() string
- type ListSubTypologyNamesRequest
- func (*ListSubTypologyNamesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListSubTypologyNamesRequest) ProtoMessage()
- func (x *ListSubTypologyNamesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSubTypologyNamesRequest) Reset()
- func (x *ListSubTypologyNamesRequest) String() string
- func (m *ListSubTypologyNamesRequest) Validate() error
- func (m *ListSubTypologyNamesRequest) ValidateAll() error
- type ListSubTypologyNamesRequestMultiError
- type ListSubTypologyNamesRequestValidationError
- func (e ListSubTypologyNamesRequestValidationError) Cause() error
- func (e ListSubTypologyNamesRequestValidationError) Error() string
- func (e ListSubTypologyNamesRequestValidationError) ErrorName() string
- func (e ListSubTypologyNamesRequestValidationError) Field() string
- func (e ListSubTypologyNamesRequestValidationError) Key() bool
- func (e ListSubTypologyNamesRequestValidationError) Reason() string
- type ListSubTypologyNamesResponse
- func (*ListSubTypologyNamesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSubTypologyNamesResponse) GetNames() []string
- func (*ListSubTypologyNamesResponse) ProtoMessage()
- func (x *ListSubTypologyNamesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSubTypologyNamesResponse) Reset()
- func (x *ListSubTypologyNamesResponse) String() string
- func (m *ListSubTypologyNamesResponse) Validate() error
- func (m *ListSubTypologyNamesResponse) ValidateAll() error
- type ListSubTypologyNamesResponseMultiError
- type ListSubTypologyNamesResponseValidationError
- func (e ListSubTypologyNamesResponseValidationError) Cause() error
- func (e ListSubTypologyNamesResponseValidationError) Error() string
- func (e ListSubTypologyNamesResponseValidationError) ErrorName() string
- func (e ListSubTypologyNamesResponseValidationError) Field() string
- func (e ListSubTypologyNamesResponseValidationError) Key() bool
- func (e ListSubTypologyNamesResponseValidationError) Reason() string
- type ListTypologyNamesRequest
- func (*ListTypologyNamesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListTypologyNamesRequest) ProtoMessage()
- func (x *ListTypologyNamesRequest) ProtoReflect() protoreflect.Message
- func (x *ListTypologyNamesRequest) Reset()
- func (x *ListTypologyNamesRequest) String() string
- func (m *ListTypologyNamesRequest) Validate() error
- func (m *ListTypologyNamesRequest) ValidateAll() error
- type ListTypologyNamesRequestMultiError
- type ListTypologyNamesRequestValidationError
- func (e ListTypologyNamesRequestValidationError) Cause() error
- func (e ListTypologyNamesRequestValidationError) Error() string
- func (e ListTypologyNamesRequestValidationError) ErrorName() string
- func (e ListTypologyNamesRequestValidationError) Field() string
- func (e ListTypologyNamesRequestValidationError) Key() bool
- func (e ListTypologyNamesRequestValidationError) Reason() string
- type ListTypologyNamesResponse
- func (*ListTypologyNamesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTypologyNamesResponse) GetNames() []string
- func (*ListTypologyNamesResponse) ProtoMessage()
- func (x *ListTypologyNamesResponse) ProtoReflect() protoreflect.Message
- func (x *ListTypologyNamesResponse) Reset()
- func (x *ListTypologyNamesResponse) String() string
- func (m *ListTypologyNamesResponse) Validate() error
- func (m *ListTypologyNamesResponse) ValidateAll() error
- type ListTypologyNamesResponseMultiError
- type ListTypologyNamesResponseValidationError
- func (e ListTypologyNamesResponseValidationError) Cause() error
- func (e ListTypologyNamesResponseValidationError) Error() string
- func (e ListTypologyNamesResponseValidationError) ErrorName() string
- func (e ListTypologyNamesResponseValidationError) Field() string
- func (e ListTypologyNamesResponseValidationError) Key() bool
- func (e ListTypologyNamesResponseValidationError) Reason() string
- type Region
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetReference() string
- func (x *Source) GetRegion() Region
- func (x *Source) GetYear() int32
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- func (m *Source) Validate() error
- func (m *Source) ValidateAll() error
- type SourceMultiError
- type SourceValidationError
- type SubTypology
- func (*SubTypology) Descriptor() ([]byte, []int)deprecated
- func (x *SubTypology) GetName() string
- func (*SubTypology) ProtoMessage()
- func (x *SubTypology) ProtoReflect() protoreflect.Message
- func (x *SubTypology) Reset()
- func (x *SubTypology) String() string
- func (m *SubTypology) Validate() error
- func (m *SubTypology) ValidateAll() error
- type SubTypologyMultiError
- type SubTypologyValidationError
- func (e SubTypologyValidationError) Cause() error
- func (e SubTypologyValidationError) Error() string
- func (e SubTypologyValidationError) ErrorName() string
- func (e SubTypologyValidationError) Field() string
- func (e SubTypologyValidationError) Key() bool
- func (e SubTypologyValidationError) Reason() string
- type Typology
- func (*Typology) Descriptor() ([]byte, []int)deprecated
- func (x *Typology) GetName() string
- func (x *Typology) GetSubTypologyId() int32
- func (*Typology) ProtoMessage()
- func (x *Typology) ProtoReflect() protoreflect.Message
- func (x *Typology) Reset()
- func (x *Typology) String() string
- func (m *Typology) Validate() error
- func (m *Typology) ValidateAll() error
- type TypologyMultiError
- type TypologyValidationError
Constants ¶
This section is empty.
Variables ¶
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.
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.
var File_neutral_diet_food_v1_api_proto protoreflect.FileDescriptor
var File_neutral_diet_food_v1_food_item_proto protoreflect.FileDescriptor
var File_neutral_diet_food_v1_life_cycle_proto protoreflect.FileDescriptor
var File_neutral_diet_food_v1_region_proto protoreflect.FileDescriptor
var File_neutral_diet_food_v1_source_proto protoreflect.FileDescriptor
var File_neutral_diet_food_v1_sub_typology_proto protoreflect.FileDescriptor
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 ¶
func (m AggregateFoodItemMultiError) Error() string
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 ¶
func (e AggregateFoodItemValidationError) Cause() error
Cause function returns cause value.
func (AggregateFoodItemValidationError) Error ¶
func (e AggregateFoodItemValidationError) Error() string
Error satisfies the builtin error interface
func (AggregateFoodItemValidationError) ErrorName ¶
func (e AggregateFoodItemValidationError) ErrorName() string
ErrorName returns error name.
func (AggregateFoodItemValidationError) Field ¶
func (e AggregateFoodItemValidationError) Field() string
Field function returns field value.
func (AggregateFoodItemValidationError) Key ¶
func (e AggregateFoodItemValidationError) Key() bool
Key function returns key value.
func (AggregateFoodItemValidationError) Reason ¶
func (e AggregateFoodItemValidationError) Reason() string
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 ¶
func (m CreateFoodItemRequestMultiError) Error() string
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 ¶
func (e CreateFoodItemRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateFoodItemRequestValidationError) Error ¶
func (e CreateFoodItemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateFoodItemRequestValidationError) ErrorName ¶
func (e CreateFoodItemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateFoodItemRequestValidationError) Field ¶
func (e CreateFoodItemRequestValidationError) Field() string
Field function returns field value.
func (CreateFoodItemRequestValidationError) Key ¶
func (e CreateFoodItemRequestValidationError) Key() bool
Key function returns key value.
func (CreateFoodItemRequestValidationError) Reason ¶
func (e CreateFoodItemRequestValidationError) Reason() string
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 ¶
func (m CreateFoodItemResponseMultiError) Error() string
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 ¶
func (e CreateFoodItemResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateFoodItemResponseValidationError) Error ¶
func (e CreateFoodItemResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateFoodItemResponseValidationError) ErrorName ¶
func (e CreateFoodItemResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateFoodItemResponseValidationError) Field ¶
func (e CreateFoodItemResponseValidationError) Field() string
Field function returns field value.
func (CreateFoodItemResponseValidationError) Key ¶
func (e CreateFoodItemResponseValidationError) Key() bool
Key function returns key value.
func (CreateFoodItemResponseValidationError) Reason ¶
func (e CreateFoodItemResponseValidationError) Reason() string
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 ¶
func (m CreateLifeCycleRequestMultiError) Error() string
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 ¶
func (e CreateLifeCycleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateLifeCycleRequestValidationError) Error ¶
func (e CreateLifeCycleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateLifeCycleRequestValidationError) ErrorName ¶
func (e CreateLifeCycleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateLifeCycleRequestValidationError) Field ¶
func (e CreateLifeCycleRequestValidationError) Field() string
Field function returns field value.
func (CreateLifeCycleRequestValidationError) Key ¶
func (e CreateLifeCycleRequestValidationError) Key() bool
Key function returns key value.
func (CreateLifeCycleRequestValidationError) Reason ¶
func (e CreateLifeCycleRequestValidationError) Reason() string
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 ¶
func (m CreateLifeCycleResponseMultiError) Error() string
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 ¶
func (e CreateLifeCycleResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateLifeCycleResponseValidationError) Error ¶
func (e CreateLifeCycleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateLifeCycleResponseValidationError) ErrorName ¶
func (e CreateLifeCycleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateLifeCycleResponseValidationError) Field ¶
func (e CreateLifeCycleResponseValidationError) Field() string
Field function returns field value.
func (CreateLifeCycleResponseValidationError) Key ¶
func (e CreateLifeCycleResponseValidationError) Key() bool
Key function returns key value.
func (CreateLifeCycleResponseValidationError) Reason ¶
func (e CreateLifeCycleResponseValidationError) Reason() string
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 ¶
func (m CreateSourceRequestMultiError) Error() string
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 ¶
func (e CreateSourceRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSourceRequestValidationError) Error ¶
func (e CreateSourceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSourceRequestValidationError) ErrorName ¶
func (e CreateSourceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSourceRequestValidationError) Field ¶
func (e CreateSourceRequestValidationError) Field() string
Field function returns field value.
func (CreateSourceRequestValidationError) Key ¶
func (e CreateSourceRequestValidationError) Key() bool
Key function returns key value.
func (CreateSourceRequestValidationError) Reason ¶
func (e CreateSourceRequestValidationError) Reason() string
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 ¶
func (m CreateSourceResponseMultiError) Error() string
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 ¶
func (e CreateSourceResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateSourceResponseValidationError) Error ¶
func (e CreateSourceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSourceResponseValidationError) ErrorName ¶
func (e CreateSourceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSourceResponseValidationError) Field ¶
func (e CreateSourceResponseValidationError) Field() string
Field function returns field value.
func (CreateSourceResponseValidationError) Key ¶
func (e CreateSourceResponseValidationError) Key() bool
Key function returns key value.
func (CreateSourceResponseValidationError) Reason ¶
func (e CreateSourceResponseValidationError) Reason() string
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 ¶
func (m CreateSubTypologyRequestMultiError) Error() string
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 ¶
func (e CreateSubTypologyRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateSubTypologyRequestValidationError) Error ¶
func (e CreateSubTypologyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSubTypologyRequestValidationError) ErrorName ¶
func (e CreateSubTypologyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSubTypologyRequestValidationError) Field ¶
func (e CreateSubTypologyRequestValidationError) Field() string
Field function returns field value.
func (CreateSubTypologyRequestValidationError) Key ¶
func (e CreateSubTypologyRequestValidationError) Key() bool
Key function returns key value.
func (CreateSubTypologyRequestValidationError) Reason ¶
func (e CreateSubTypologyRequestValidationError) Reason() string
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 (x *CreateSubTypologyResponse) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateSubTypologyResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateSubTypologyResponseMultiError) Error ¶
func (m CreateSubTypologyResponseMultiError) Error() string
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 ¶
func (e CreateSubTypologyResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateSubTypologyResponseValidationError) Error ¶
func (e CreateSubTypologyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateSubTypologyResponseValidationError) ErrorName ¶
func (e CreateSubTypologyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateSubTypologyResponseValidationError) Field ¶
func (e CreateSubTypologyResponseValidationError) Field() string
Field function returns field value.
func (CreateSubTypologyResponseValidationError) Key ¶
func (e CreateSubTypologyResponseValidationError) Key() bool
Key function returns key value.
func (CreateSubTypologyResponseValidationError) Reason ¶
func (e CreateSubTypologyResponseValidationError) Reason() string
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 ¶
func (m CreateTypologyRequestMultiError) Error() string
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 ¶
func (e CreateTypologyRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTypologyRequestValidationError) Error ¶
func (e CreateTypologyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTypologyRequestValidationError) ErrorName ¶
func (e CreateTypologyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTypologyRequestValidationError) Field ¶
func (e CreateTypologyRequestValidationError) Field() string
Field function returns field value.
func (CreateTypologyRequestValidationError) Key ¶
func (e CreateTypologyRequestValidationError) Key() bool
Key function returns key value.
func (CreateTypologyRequestValidationError) Reason ¶
func (e CreateTypologyRequestValidationError) Reason() string
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 ¶
func (m CreateTypologyResponseMultiError) Error() string
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 ¶
func (e CreateTypologyResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTypologyResponseValidationError) Error ¶
func (e CreateTypologyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTypologyResponseValidationError) ErrorName ¶
func (e CreateTypologyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTypologyResponseValidationError) Field ¶
func (e CreateTypologyResponseValidationError) Field() string
Field function returns field value.
func (CreateTypologyResponseValidationError) Key ¶
func (e CreateTypologyResponseValidationError) Key() bool
Key function returns key value.
func (CreateTypologyResponseValidationError) Reason ¶
func (e CreateTypologyResponseValidationError) Reason() string
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) GetCfType ¶
func (x *FoodItem) GetCfType() FoodItem_CfType
func (*FoodItem) GetTypologyId ¶
func (*FoodItem) ProtoMessage ¶
func (*FoodItem) ProtoMessage()
func (*FoodItem) ProtoReflect ¶
func (x *FoodItem) ProtoReflect() protoreflect.Message
func (*FoodItem) Validate ¶
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 ¶
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 ¶
func (e FoodItemInfoValidationError) Cause() error
Cause function returns cause value.
func (FoodItemInfoValidationError) Error ¶
func (e FoodItemInfoValidationError) Error() string
Error satisfies the builtin error interface
func (FoodItemInfoValidationError) ErrorName ¶
func (e FoodItemInfoValidationError) ErrorName() string
ErrorName returns error name.
func (FoodItemInfoValidationError) Field ¶
func (e FoodItemInfoValidationError) Field() string
Field function returns field value.
func (FoodItemInfoValidationError) Key ¶
func (e FoodItemInfoValidationError) Key() bool
Key function returns key value.
func (FoodItemInfoValidationError) Reason ¶
func (e FoodItemInfoValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
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 (x FoodItem_CfType) Number() protoreflect.EnumNumber
func (FoodItem_CfType) String ¶
func (x FoodItem_CfType) String() string
func (FoodItem_CfType) Type ¶
func (FoodItem_CfType) Type() protoreflect.EnumType
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 ¶
func (m GetFoodItemInfoRequestMultiError) Error() string
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 ¶
func (e GetFoodItemInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFoodItemInfoRequestValidationError) Error ¶
func (e GetFoodItemInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFoodItemInfoRequestValidationError) ErrorName ¶
func (e GetFoodItemInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFoodItemInfoRequestValidationError) Field ¶
func (e GetFoodItemInfoRequestValidationError) Field() string
Field function returns field value.
func (GetFoodItemInfoRequestValidationError) Key ¶
func (e GetFoodItemInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetFoodItemInfoRequestValidationError) Reason ¶
func (e GetFoodItemInfoRequestValidationError) Reason() string
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 ¶
func (m GetFoodItemInfoResponseMultiError) Error() string
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 ¶
func (e GetFoodItemInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetFoodItemInfoResponseValidationError) Error ¶
func (e GetFoodItemInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetFoodItemInfoResponseValidationError) ErrorName ¶
func (e GetFoodItemInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetFoodItemInfoResponseValidationError) Field ¶
func (e GetFoodItemInfoResponseValidationError) Field() string
Field function returns field value.
func (GetFoodItemInfoResponseValidationError) Key ¶
func (e GetFoodItemInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetFoodItemInfoResponseValidationError) Reason ¶
func (e GetFoodItemInfoResponseValidationError) Reason() string
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) GetCarbonFootprint ¶
func (*LifeCycle) GetFoodItemId ¶
func (*LifeCycle) GetSourceId ¶
func (*LifeCycle) ProtoMessage ¶
func (*LifeCycle) ProtoMessage()
func (*LifeCycle) ProtoReflect ¶
func (x *LifeCycle) ProtoReflect() protoreflect.Message
func (*LifeCycle) Validate ¶
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 ¶
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 ¶
func (e LifeCycleValidationError) Key() bool
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 (x *ListAggregateFoodItemsRequest) ProtoReflect() protoreflect.Message
func (*ListAggregateFoodItemsRequest) Reset ¶
func (x *ListAggregateFoodItemsRequest) Reset()
func (*ListAggregateFoodItemsRequest) String ¶
func (x *ListAggregateFoodItemsRequest) String() 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 ¶
func (m ListAggregateFoodItemsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAggregateFoodItemsRequestMultiError) Error ¶
func (m ListAggregateFoodItemsRequestMultiError) Error() string
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 ¶
func (e ListAggregateFoodItemsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListAggregateFoodItemsRequestValidationError) Error ¶
func (e ListAggregateFoodItemsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListAggregateFoodItemsRequestValidationError) ErrorName ¶
func (e ListAggregateFoodItemsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListAggregateFoodItemsRequestValidationError) Field ¶
func (e ListAggregateFoodItemsRequestValidationError) Field() string
Field function returns field value.
func (ListAggregateFoodItemsRequestValidationError) Key ¶
func (e ListAggregateFoodItemsRequestValidationError) Key() bool
Key function returns key value.
func (ListAggregateFoodItemsRequestValidationError) Reason ¶
func (e ListAggregateFoodItemsRequestValidationError) Reason() string
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 (x *ListAggregateFoodItemsResponse) GetFoodItems() []*AggregateFoodItem
func (*ListAggregateFoodItemsResponse) ProtoMessage ¶
func (*ListAggregateFoodItemsResponse) ProtoMessage()
func (*ListAggregateFoodItemsResponse) ProtoReflect ¶
func (x *ListAggregateFoodItemsResponse) ProtoReflect() protoreflect.Message
func (*ListAggregateFoodItemsResponse) Reset ¶
func (x *ListAggregateFoodItemsResponse) Reset()
func (*ListAggregateFoodItemsResponse) String ¶
func (x *ListAggregateFoodItemsResponse) String() 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 ¶
func (m ListAggregateFoodItemsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAggregateFoodItemsResponseMultiError) Error ¶
func (m ListAggregateFoodItemsResponseMultiError) Error() string
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 ¶
func (e ListAggregateFoodItemsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListAggregateFoodItemsResponseValidationError) Error ¶
func (e ListAggregateFoodItemsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListAggregateFoodItemsResponseValidationError) ErrorName ¶
func (e ListAggregateFoodItemsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListAggregateFoodItemsResponseValidationError) Field ¶
func (e ListAggregateFoodItemsResponseValidationError) Field() string
Field function returns field value.
func (ListAggregateFoodItemsResponseValidationError) Key ¶
func (e ListAggregateFoodItemsResponseValidationError) Key() bool
Key function returns key value.
func (ListAggregateFoodItemsResponseValidationError) Reason ¶
func (e ListAggregateFoodItemsResponseValidationError) Reason() string
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 (x *ListSubTypologyNamesRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m ListSubTypologyNamesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSubTypologyNamesRequestMultiError) Error ¶
func (m ListSubTypologyNamesRequestMultiError) Error() string
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 ¶
func (e ListSubTypologyNamesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListSubTypologyNamesRequestValidationError) Error ¶
func (e ListSubTypologyNamesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListSubTypologyNamesRequestValidationError) ErrorName ¶
func (e ListSubTypologyNamesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListSubTypologyNamesRequestValidationError) Field ¶
func (e ListSubTypologyNamesRequestValidationError) Field() string
Field function returns field value.
func (ListSubTypologyNamesRequestValidationError) Key ¶
func (e ListSubTypologyNamesRequestValidationError) Key() bool
Key function returns key value.
func (ListSubTypologyNamesRequestValidationError) Reason ¶
func (e ListSubTypologyNamesRequestValidationError) Reason() string
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 (x *ListSubTypologyNamesResponse) ProtoReflect() protoreflect.Message
func (*ListSubTypologyNamesResponse) Reset ¶
func (x *ListSubTypologyNamesResponse) Reset()
func (*ListSubTypologyNamesResponse) String ¶
func (x *ListSubTypologyNamesResponse) String() 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 ¶
func (m ListSubTypologyNamesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListSubTypologyNamesResponseMultiError) Error ¶
func (m ListSubTypologyNamesResponseMultiError) Error() string
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 ¶
func (e ListSubTypologyNamesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListSubTypologyNamesResponseValidationError) Error ¶
func (e ListSubTypologyNamesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListSubTypologyNamesResponseValidationError) ErrorName ¶
func (e ListSubTypologyNamesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListSubTypologyNamesResponseValidationError) Field ¶
func (e ListSubTypologyNamesResponseValidationError) Field() string
Field function returns field value.
func (ListSubTypologyNamesResponseValidationError) Key ¶
func (e ListSubTypologyNamesResponseValidationError) Key() bool
Key function returns key value.
func (ListSubTypologyNamesResponseValidationError) Reason ¶
func (e ListSubTypologyNamesResponseValidationError) Reason() string
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 ¶
func (m ListTypologyNamesRequestMultiError) Error() string
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 ¶
func (e ListTypologyNamesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTypologyNamesRequestValidationError) Error ¶
func (e ListTypologyNamesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTypologyNamesRequestValidationError) ErrorName ¶
func (e ListTypologyNamesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTypologyNamesRequestValidationError) Field ¶
func (e ListTypologyNamesRequestValidationError) Field() string
Field function returns field value.
func (ListTypologyNamesRequestValidationError) Key ¶
func (e ListTypologyNamesRequestValidationError) Key() bool
Key function returns key value.
func (ListTypologyNamesRequestValidationError) Reason ¶
func (e ListTypologyNamesRequestValidationError) Reason() string
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 (x *ListTypologyNamesResponse) ProtoReflect() protoreflect.Message
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 ¶
func (m ListTypologyNamesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListTypologyNamesResponseMultiError) Error ¶
func (m ListTypologyNamesResponseMultiError) Error() string
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 ¶
func (e ListTypologyNamesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTypologyNamesResponseValidationError) Error ¶
func (e ListTypologyNamesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTypologyNamesResponseValidationError) ErrorName ¶
func (e ListTypologyNamesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTypologyNamesResponseValidationError) Field ¶
func (e ListTypologyNamesResponseValidationError) Field() string
Field function returns field value.
func (ListTypologyNamesResponseValidationError) Key ¶
func (e ListTypologyNamesResponseValidationError) Key() bool
Key function returns key value.
func (ListTypologyNamesResponseValidationError) Reason ¶
func (e ListTypologyNamesResponseValidationError) Reason() string
Reason function returns reason value.
type Region ¶
type Region int32
func (Region) Descriptor ¶
func (Region) Descriptor() protoreflect.EnumDescriptor
func (Region) EnumDescriptor
deprecated
func (Region) Number ¶
func (x Region) Number() protoreflect.EnumNumber
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) GetReference ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
func (*Source) Validate ¶
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 ¶
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 ¶
func (e SubTypologyValidationError) Cause() error
Cause function returns cause value.
func (SubTypologyValidationError) Error ¶
func (e SubTypologyValidationError) Error() string
Error satisfies the builtin error interface
func (SubTypologyValidationError) ErrorName ¶
func (e SubTypologyValidationError) ErrorName() string
ErrorName returns error name.
func (SubTypologyValidationError) Field ¶
func (e SubTypologyValidationError) Field() string
Field function returns field value.
func (SubTypologyValidationError) Key ¶
func (e SubTypologyValidationError) Key() bool
Key function returns key value.
func (SubTypologyValidationError) Reason ¶
func (e SubTypologyValidationError) Reason() string
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) GetSubTypologyId ¶
func (*Typology) ProtoMessage ¶
func (*Typology) ProtoMessage()
func (*Typology) ProtoReflect ¶
func (x *Typology) ProtoReflect() protoreflect.Message
func (*Typology) Validate ¶
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 ¶
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.