Documentation ¶
Index ¶
- Variables
- func RegisterAboutServiceServer(s grpc.ServiceRegistrar, srv AboutServiceServer)
- func RegisterDataFetchServiceServer(s grpc.ServiceRegistrar, srv DataFetchServiceServer)
- func RegisterDataUpdateServiceServer(s grpc.ServiceRegistrar, srv DataUpdateServiceServer)
- func RegisterFlowMapServiceServer(s grpc.ServiceRegistrar, srv FlowMapServiceServer)
- func RegisterResultServiceServer(s grpc.ServiceRegistrar, srv ResultServiceServer)
- type AboutResponse
- func (*AboutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AboutResponse) GetDatabase() string
- func (x *AboutResponse) GetMinSupportedVersion() int32
- func (x *AboutResponse) GetVersion() int32
- func (*AboutResponse) ProtoMessage()
- func (x *AboutResponse) ProtoReflect() protoreflect.Message
- func (x *AboutResponse) Reset()
- func (x *AboutResponse) String() string
- type AboutServiceClient
- type AboutServiceServer
- type Actor
- func (*Actor) Descriptor() ([]byte, []int)deprecated
- func (x *Actor) GetAddress() string
- func (x *Actor) GetCategory() *Ref
- func (x *Actor) GetCity() string
- func (x *Actor) GetCountry() string
- func (x *Actor) GetDescription() string
- func (x *Actor) GetEmail() string
- func (x *Actor) GetEntityType() EntityType
- func (x *Actor) GetId() string
- func (x *Actor) GetLastChange() string
- func (x *Actor) GetLibrary() string
- func (x *Actor) GetName() string
- func (x *Actor) GetTags() []string
- func (x *Actor) GetTelefax() string
- func (x *Actor) GetTelephone() string
- func (x *Actor) GetVersion() string
- func (x *Actor) GetWebsite() string
- func (x *Actor) GetZipCode() string
- func (*Actor) ProtoMessage()
- func (x *Actor) ProtoReflect() protoreflect.Message
- func (x *Actor) Reset()
- func (x *Actor) String() string
- type AllocationFactor
- func (*AllocationFactor) Descriptor() ([]byte, []int)deprecated
- func (x *AllocationFactor) GetAllocationType() AllocationType
- func (x *AllocationFactor) GetExchange() *ExchangeRef
- func (x *AllocationFactor) GetFormula() string
- func (x *AllocationFactor) GetProduct() *Ref
- func (x *AllocationFactor) GetValue() float64
- func (*AllocationFactor) ProtoMessage()
- func (x *AllocationFactor) ProtoReflect() protoreflect.Message
- func (x *AllocationFactor) Reset()
- func (x *AllocationFactor) String() string
- type AllocationType
- func (AllocationType) Descriptor() protoreflect.EnumDescriptor
- func (x AllocationType) Enum() *AllocationType
- func (AllocationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AllocationType) Number() protoreflect.EnumNumber
- func (x AllocationType) String() string
- func (AllocationType) Type() protoreflect.EnumType
- type CalculationSetup
- func (*CalculationSetup) Descriptor() ([]byte, []int)deprecated
- func (x *CalculationSetup) GetAllocation() AllocationType
- func (x *CalculationSetup) GetAmount() float64
- func (x *CalculationSetup) GetCalculationType() CalculationType
- func (x *CalculationSetup) GetFlowProperty() *Ref
- func (x *CalculationSetup) GetImpactMethod() *Ref
- func (x *CalculationSetup) GetNumberOfRuns() int32
- func (x *CalculationSetup) GetNwSet() *Ref
- func (x *CalculationSetup) GetParameters() []*ParameterRedef
- func (x *CalculationSetup) GetProcess() *Ref
- func (x *CalculationSetup) GetProductSystem() *Ref
- func (x *CalculationSetup) GetUnit() *Ref
- func (x *CalculationSetup) GetWithCosts() bool
- func (x *CalculationSetup) GetWithRegionalization() bool
- func (*CalculationSetup) ProtoMessage()
- func (x *CalculationSetup) ProtoReflect() protoreflect.Message
- func (x *CalculationSetup) Reset()
- func (x *CalculationSetup) String() string
- type CalculationType
- func (CalculationType) Descriptor() protoreflect.EnumDescriptor
- func (x CalculationType) Enum() *CalculationType
- func (CalculationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CalculationType) Number() protoreflect.EnumNumber
- func (x CalculationType) String() string
- func (CalculationType) Type() protoreflect.EnumType
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCategory() *Ref
- func (x *Category) GetDescription() string
- func (x *Category) GetEntityType() EntityType
- func (x *Category) GetId() string
- func (x *Category) GetLastChange() string
- func (x *Category) GetLibrary() string
- func (x *Category) GetModelType() ModelType
- func (x *Category) GetName() string
- func (x *Category) GetTags() []string
- func (x *Category) GetVersion() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CategoryTree
- func (*CategoryTree) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryTree) GetId() string
- func (x *CategoryTree) GetModelType() ModelType
- func (x *CategoryTree) GetName() string
- func (x *CategoryTree) GetSubTree() []*CategoryTree
- func (*CategoryTree) ProtoMessage()
- func (x *CategoryTree) ProtoReflect() protoreflect.Message
- func (x *CategoryTree) Reset()
- func (x *CategoryTree) String() string
- type Client
- type CreateSystemRequest
- func (*CreateSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSystemRequest) GetDefaultProviders() CreateSystemRequest_DefaultProviders
- func (x *CreateSystemRequest) GetPreferredType() ProcessType
- func (x *CreateSystemRequest) GetProcess() *Ref
- func (*CreateSystemRequest) ProtoMessage()
- func (x *CreateSystemRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSystemRequest) Reset()
- func (x *CreateSystemRequest) String() string
- type CreateSystemRequest_DefaultProviders
- func (CreateSystemRequest_DefaultProviders) Descriptor() protoreflect.EnumDescriptor
- func (x CreateSystemRequest_DefaultProviders) Enum() *CreateSystemRequest_DefaultProviders
- func (CreateSystemRequest_DefaultProviders) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateSystemRequest_DefaultProviders) Number() protoreflect.EnumNumber
- func (x CreateSystemRequest_DefaultProviders) String() string
- func (CreateSystemRequest_DefaultProviders) Type() protoreflect.EnumType
- type Currency
- func (*Currency) Descriptor() ([]byte, []int)deprecated
- func (x *Currency) GetCategory() *Ref
- func (x *Currency) GetCode() string
- func (x *Currency) GetConversionFactor() float64
- func (x *Currency) GetDescription() string
- func (x *Currency) GetEntityType() EntityType
- func (x *Currency) GetId() string
- func (x *Currency) GetLastChange() string
- func (x *Currency) GetLibrary() string
- func (x *Currency) GetName() string
- func (x *Currency) GetReferenceCurrency() *Ref
- func (x *Currency) GetTags() []string
- func (x *Currency) GetVersion() string
- func (*Currency) ProtoMessage()
- func (x *Currency) ProtoReflect() protoreflect.Message
- func (x *Currency) Reset()
- func (x *Currency) String() string
- type DQIndicator
- func (*DQIndicator) Descriptor() ([]byte, []int)deprecated
- func (x *DQIndicator) GetName() string
- func (x *DQIndicator) GetPosition() int32
- func (x *DQIndicator) GetScores() []*DQScore
- func (*DQIndicator) ProtoMessage()
- func (x *DQIndicator) ProtoReflect() protoreflect.Message
- func (x *DQIndicator) Reset()
- func (x *DQIndicator) String() string
- type DQScore
- func (*DQScore) Descriptor() ([]byte, []int)deprecated
- func (x *DQScore) GetDescription() string
- func (x *DQScore) GetLabel() string
- func (x *DQScore) GetPosition() int32
- func (x *DQScore) GetUncertainty() float64
- func (*DQScore) ProtoMessage()
- func (x *DQScore) ProtoReflect() protoreflect.Message
- func (x *DQScore) Reset()
- func (x *DQScore) String() string
- type DQSystem
- func (*DQSystem) Descriptor() ([]byte, []int)deprecated
- func (x *DQSystem) GetCategory() *Ref
- func (x *DQSystem) GetDescription() string
- func (x *DQSystem) GetEntityType() EntityType
- func (x *DQSystem) GetHasUncertainties() bool
- func (x *DQSystem) GetId() string
- func (x *DQSystem) GetIndicators() []*DQIndicator
- func (x *DQSystem) GetLastChange() string
- func (x *DQSystem) GetLibrary() string
- func (x *DQSystem) GetName() string
- func (x *DQSystem) GetSource() *Ref
- func (x *DQSystem) GetTags() []string
- func (x *DQSystem) GetVersion() string
- func (*DQSystem) ProtoMessage()
- func (x *DQSystem) ProtoReflect() protoreflect.Message
- func (x *DQSystem) Reset()
- func (x *DQSystem) String() string
- type DataFetchServiceClient
- type DataFetchServiceServer
- type DataFetchService_GetCategoryContentClient
- type DataFetchService_GetCategoryContentServer
- type DataFetchService_GetDescriptorsClient
- type DataFetchService_GetDescriptorsServer
- type DataFetchService_GetProvidersForClient
- type DataFetchService_GetProvidersForServer
- type DataFetchService_SearchClient
- type DataFetchService_SearchServer
- type DataSet
- func (*DataSet) Descriptor() ([]byte, []int)deprecated
- func (x *DataSet) GetActor() *Actor
- func (x *DataSet) GetCategory() *Category
- func (x *DataSet) GetCurrency() *Currency
- func (x *DataSet) GetDqSystem() *DQSystem
- func (x *DataSet) GetFlow() *Flow
- func (x *DataSet) GetFlowProperty() *FlowProperty
- func (x *DataSet) GetImpactCategory() *ImpactCategory
- func (x *DataSet) GetImpactMethod() *ImpactMethod
- func (x *DataSet) GetLocation() *Location
- func (m *DataSet) GetModel() isDataSet_Model
- func (x *DataSet) GetParameter() *Parameter
- func (x *DataSet) GetProcess() *Process
- func (x *DataSet) GetProductSystem() *ProductSystem
- func (x *DataSet) GetProject() *Project
- func (x *DataSet) GetSocialIndicator() *SocialIndicator
- func (x *DataSet) GetSource() *Source
- func (x *DataSet) GetUnitGroup() *UnitGroup
- func (*DataSet) ProtoMessage()
- func (x *DataSet) ProtoReflect() protoreflect.Message
- func (x *DataSet) Reset()
- func (x *DataSet) String() string
- type DataSet_Actor
- type DataSet_Category
- type DataSet_Currency
- type DataSet_DqSystem
- type DataSet_Flow
- type DataSet_FlowProperty
- type DataSet_ImpactCategory
- type DataSet_ImpactMethod
- type DataSet_Location
- type DataSet_Parameter
- type DataSet_Process
- type DataSet_ProductSystem
- type DataSet_Project
- type DataSet_SocialIndicator
- type DataSet_Source
- type DataSet_UnitGroup
- type DataUpdateServiceClient
- type DataUpdateServiceServer
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() string
- func (x *DeleteRequest) GetModelType() ModelType
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type EntityType
- type EnviFlow
- func (*EnviFlow) Descriptor() ([]byte, []int)deprecated
- func (x *EnviFlow) GetFlow() *Ref
- func (x *EnviFlow) GetIsInput() bool
- func (x *EnviFlow) GetLocation() *Ref
- func (*EnviFlow) ProtoMessage()
- func (x *EnviFlow) ProtoReflect() protoreflect.Message
- func (x *EnviFlow) Reset()
- func (x *EnviFlow) String() string
- type Exchange
- func (*Exchange) Descriptor() ([]byte, []int)deprecated
- func (x *Exchange) GetAmount() float64
- func (x *Exchange) GetAmountFormula() string
- func (x *Exchange) GetAvoidedProduct() bool
- func (x *Exchange) GetBaseUncertainty() float64
- func (x *Exchange) GetCostFormula() string
- func (x *Exchange) GetCostValue() float64
- func (x *Exchange) GetCurrency() *Ref
- func (x *Exchange) GetDefaultProvider() *Ref
- func (x *Exchange) GetDescription() string
- func (x *Exchange) GetDqEntry() string
- func (x *Exchange) GetFlow() *Ref
- func (x *Exchange) GetFlowProperty() *Ref
- func (x *Exchange) GetInput() bool
- func (x *Exchange) GetInternalId() int32
- func (x *Exchange) GetQuantitativeReference() bool
- func (x *Exchange) GetUncertainty() *Uncertainty
- func (x *Exchange) GetUnit() *Ref
- func (*Exchange) ProtoMessage()
- func (x *Exchange) ProtoReflect() protoreflect.Message
- func (x *Exchange) Reset()
- func (x *Exchange) String() string
- type ExchangeRef
- type FindRequest
- func (*FindRequest) Descriptor() ([]byte, []int)deprecated
- func (m *FindRequest) GetBy() isFindRequest_By
- func (x *FindRequest) GetId() string
- func (x *FindRequest) GetModelType() ModelType
- func (x *FindRequest) GetName() string
- func (*FindRequest) ProtoMessage()
- func (x *FindRequest) ProtoReflect() protoreflect.Message
- func (x *FindRequest) Reset()
- func (x *FindRequest) String() string
- type FindRequest_Id
- type FindRequest_Name
- type Flow
- func (*Flow) Descriptor() ([]byte, []int)deprecated
- func (x *Flow) GetCas() string
- func (x *Flow) GetCategory() *Ref
- func (x *Flow) GetDescription() string
- func (x *Flow) GetEntityType() EntityType
- func (x *Flow) GetFlowProperties() []*FlowPropertyFactor
- func (x *Flow) GetFlowType() FlowType
- func (x *Flow) GetFormula() string
- func (x *Flow) GetId() string
- func (x *Flow) GetInfrastructureFlow() bool
- func (x *Flow) GetLastChange() string
- func (x *Flow) GetLibrary() string
- func (x *Flow) GetLocation() *Ref
- func (x *Flow) GetName() string
- func (x *Flow) GetSynonyms() string
- func (x *Flow) GetTags() []string
- func (x *Flow) GetVersion() string
- func (*Flow) ProtoMessage()
- func (x *Flow) ProtoReflect() protoreflect.Message
- func (x *Flow) Reset()
- func (x *Flow) String() string
- type FlowMap
- func (*FlowMap) Descriptor() ([]byte, []int)deprecated
- func (x *FlowMap) GetDescription() string
- func (x *FlowMap) GetId() string
- func (x *FlowMap) GetLastChange() string
- func (x *FlowMap) GetMappings() []*FlowMapEntry
- func (x *FlowMap) GetName() string
- func (x *FlowMap) GetSource() *Ref
- func (x *FlowMap) GetTarget() *Ref
- func (x *FlowMap) GetVersion() string
- func (*FlowMap) ProtoMessage()
- func (x *FlowMap) ProtoReflect() protoreflect.Message
- func (x *FlowMap) Reset()
- func (x *FlowMap) String() string
- type FlowMapEntry
- func (*FlowMapEntry) Descriptor() ([]byte, []int)deprecated
- func (x *FlowMapEntry) GetConversionFactor() float64
- func (x *FlowMapEntry) GetFrom() *FlowMapRef
- func (x *FlowMapEntry) GetTo() *FlowMapRef
- func (*FlowMapEntry) ProtoMessage()
- func (x *FlowMapEntry) ProtoReflect() protoreflect.Message
- func (x *FlowMapEntry) Reset()
- func (x *FlowMapEntry) String() string
- type FlowMapInfo
- type FlowMapRef
- func (*FlowMapRef) Descriptor() ([]byte, []int)deprecated
- func (x *FlowMapRef) GetFlow() *Ref
- func (x *FlowMapRef) GetFlowProperty() *Ref
- func (x *FlowMapRef) GetProvider() *Ref
- func (x *FlowMapRef) GetUnit() *Ref
- func (*FlowMapRef) ProtoMessage()
- func (x *FlowMapRef) ProtoReflect() protoreflect.Message
- func (x *FlowMapRef) Reset()
- func (x *FlowMapRef) String() string
- type FlowMapServiceClient
- type FlowMapServiceServer
- type FlowMapService_GetAllClient
- type FlowMapService_GetAllServer
- type FlowProperty
- func (*FlowProperty) Descriptor() ([]byte, []int)deprecated
- func (x *FlowProperty) GetCategory() *Ref
- func (x *FlowProperty) GetDescription() string
- func (x *FlowProperty) GetEntityType() EntityType
- func (x *FlowProperty) GetFlowPropertyType() FlowPropertyType
- func (x *FlowProperty) GetId() string
- func (x *FlowProperty) GetLastChange() string
- func (x *FlowProperty) GetLibrary() string
- func (x *FlowProperty) GetName() string
- func (x *FlowProperty) GetTags() []string
- func (x *FlowProperty) GetUnitGroup() *Ref
- func (x *FlowProperty) GetVersion() string
- func (*FlowProperty) ProtoMessage()
- func (x *FlowProperty) ProtoReflect() protoreflect.Message
- func (x *FlowProperty) Reset()
- func (x *FlowProperty) String() string
- type FlowPropertyFactor
- func (*FlowPropertyFactor) Descriptor() ([]byte, []int)deprecated
- func (x *FlowPropertyFactor) GetConversionFactor() float64
- func (x *FlowPropertyFactor) GetFlowProperty() *Ref
- func (x *FlowPropertyFactor) GetReferenceFlowProperty() bool
- func (*FlowPropertyFactor) ProtoMessage()
- func (x *FlowPropertyFactor) ProtoReflect() protoreflect.Message
- func (x *FlowPropertyFactor) Reset()
- func (x *FlowPropertyFactor) String() string
- type FlowPropertyType
- func (FlowPropertyType) Descriptor() protoreflect.EnumDescriptor
- func (x FlowPropertyType) Enum() *FlowPropertyType
- func (FlowPropertyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlowPropertyType) Number() protoreflect.EnumNumber
- func (x FlowPropertyType) String() string
- func (FlowPropertyType) Type() protoreflect.EnumType
- type FlowResult
- func (*FlowResult) Descriptor() ([]byte, []int)deprecated
- func (x *FlowResult) GetFlow() *Ref
- func (x *FlowResult) GetInput() bool
- func (x *FlowResult) GetLocation() *Ref
- func (x *FlowResult) GetValue() float64
- func (*FlowResult) ProtoMessage()
- func (x *FlowResult) ProtoReflect() protoreflect.Message
- func (x *FlowResult) Reset()
- func (x *FlowResult) String() string
- type FlowType
- type GetAllRequest
- func (*GetAllRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRequest) GetModelType() ModelType
- func (x *GetAllRequest) GetPage() int32
- func (x *GetAllRequest) GetPageSize() int32
- func (m *GetAllRequest) GetPaging() isGetAllRequest_Paging
- func (x *GetAllRequest) GetSkipPaging() bool
- func (*GetAllRequest) ProtoMessage()
- func (x *GetAllRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllRequest) Reset()
- func (x *GetAllRequest) String() string
- type GetAllRequest_Page
- type GetAllRequest_SkipPaging
- type GetAllResponse
- func (*GetAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllResponse) GetDataSet() []*DataSet
- func (x *GetAllResponse) GetModelType() ModelType
- func (x *GetAllResponse) GetPage() int32
- func (x *GetAllResponse) GetPageSize() int32
- func (x *GetAllResponse) GetTotalCount() int32
- func (*GetAllResponse) ProtoMessage()
- func (x *GetAllResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllResponse) Reset()
- func (x *GetAllResponse) String() string
- type GetCategoryContentRequest
- func (*GetCategoryContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryContentRequest) GetCategory() string
- func (x *GetCategoryContentRequest) GetModelType() ModelType
- func (*GetCategoryContentRequest) ProtoMessage()
- func (x *GetCategoryContentRequest) ProtoReflect() protoreflect.Message
- func (x *GetCategoryContentRequest) Reset()
- func (x *GetCategoryContentRequest) String() string
- type GetCategoryTreeRequest
- func (*GetCategoryTreeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryTreeRequest) GetModelType() ModelType
- func (*GetCategoryTreeRequest) ProtoMessage()
- func (x *GetCategoryTreeRequest) ProtoReflect() protoreflect.Message
- func (x *GetCategoryTreeRequest) Reset()
- func (x *GetCategoryTreeRequest) String() string
- type GetDescriptorsRequest
- func (*GetDescriptorsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDescriptorsRequest) GetAttributes() *GetDescriptorsRequest_Attributes
- func (m *GetDescriptorsRequest) GetBy() isGetDescriptorsRequest_By
- func (x *GetDescriptorsRequest) GetId() string
- func (x *GetDescriptorsRequest) GetModelType() ModelType
- func (*GetDescriptorsRequest) ProtoMessage()
- func (x *GetDescriptorsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDescriptorsRequest) Reset()
- func (x *GetDescriptorsRequest) String() string
- type GetDescriptorsRequest_Attributes
- func (*GetDescriptorsRequest_Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *GetDescriptorsRequest_Attributes) GetCategory() string
- func (x *GetDescriptorsRequest_Attributes) GetName() string
- func (*GetDescriptorsRequest_Attributes) ProtoMessage()
- func (x *GetDescriptorsRequest_Attributes) ProtoReflect() protoreflect.Message
- func (x *GetDescriptorsRequest_Attributes) Reset()
- func (x *GetDescriptorsRequest_Attributes) String() string
- type GetDescriptorsRequest_Attributes_
- type GetDescriptorsRequest_Id
- type GetRequest
- type ImpactCategory
- func (*ImpactCategory) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactCategory) GetCategory() *Ref
- func (x *ImpactCategory) GetDescription() string
- func (x *ImpactCategory) GetEntityType() EntityType
- func (x *ImpactCategory) GetId() string
- func (x *ImpactCategory) GetImpactFactors() []*ImpactFactor
- func (x *ImpactCategory) GetLastChange() string
- func (x *ImpactCategory) GetLibrary() string
- func (x *ImpactCategory) GetName() string
- func (x *ImpactCategory) GetParameters() []*Parameter
- func (x *ImpactCategory) GetReferenceUnitName() string
- func (x *ImpactCategory) GetTags() []string
- func (x *ImpactCategory) GetVersion() string
- func (*ImpactCategory) ProtoMessage()
- func (x *ImpactCategory) ProtoReflect() protoreflect.Message
- func (x *ImpactCategory) Reset()
- func (x *ImpactCategory) String() string
- type ImpactFactor
- func (*ImpactFactor) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactFactor) GetFlow() *Ref
- func (x *ImpactFactor) GetFlowProperty() *Ref
- func (x *ImpactFactor) GetFormula() string
- func (x *ImpactFactor) GetLocation() *Ref
- func (x *ImpactFactor) GetUncertainty() *Uncertainty
- func (x *ImpactFactor) GetUnit() *Ref
- func (x *ImpactFactor) GetValue() float64
- func (*ImpactFactor) ProtoMessage()
- func (x *ImpactFactor) ProtoReflect() protoreflect.Message
- func (x *ImpactFactor) Reset()
- func (x *ImpactFactor) String() string
- type ImpactFactorRequest
- func (*ImpactFactorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactFactorRequest) GetFlow() *EnviFlow
- func (x *ImpactFactorRequest) GetIndicator() *Ref
- func (x *ImpactFactorRequest) GetResult() *Result
- func (*ImpactFactorRequest) ProtoMessage()
- func (x *ImpactFactorRequest) ProtoReflect() protoreflect.Message
- func (x *ImpactFactorRequest) Reset()
- func (x *ImpactFactorRequest) String() string
- type ImpactFactorResponse
- func (*ImpactFactorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactFactorResponse) GetFlow() *EnviFlow
- func (x *ImpactFactorResponse) GetIndicator() *Ref
- func (x *ImpactFactorResponse) GetValue() float64
- func (*ImpactFactorResponse) ProtoMessage()
- func (x *ImpactFactorResponse) ProtoReflect() protoreflect.Message
- func (x *ImpactFactorResponse) Reset()
- func (x *ImpactFactorResponse) String() string
- type ImpactMethod
- func (*ImpactMethod) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactMethod) GetCategory() *Ref
- func (x *ImpactMethod) GetDescription() string
- func (x *ImpactMethod) GetEntityType() EntityType
- func (x *ImpactMethod) GetId() string
- func (x *ImpactMethod) GetImpactCategories() []*Ref
- func (x *ImpactMethod) GetLastChange() string
- func (x *ImpactMethod) GetLibrary() string
- func (x *ImpactMethod) GetName() string
- func (x *ImpactMethod) GetNwSets() []*NwSet
- func (x *ImpactMethod) GetTags() []string
- func (x *ImpactMethod) GetVersion() string
- func (*ImpactMethod) ProtoMessage()
- func (x *ImpactMethod) ProtoReflect() protoreflect.Message
- func (x *ImpactMethod) Reset()
- func (x *ImpactMethod) String() string
- type ImpactResult
- func (*ImpactResult) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactResult) GetImpactCategory() *Ref
- func (x *ImpactResult) GetValue() float64
- func (*ImpactResult) ProtoMessage()
- func (x *ImpactResult) ProtoReflect() protoreflect.Message
- func (x *ImpactResult) Reset()
- func (x *ImpactResult) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (x *Location) GetCategory() *Ref
- func (x *Location) GetCode() string
- func (x *Location) GetDescription() string
- func (x *Location) GetEntityType() EntityType
- func (x *Location) GetGeometryBytes() []byte
- func (x *Location) GetId() string
- func (x *Location) GetLastChange() string
- func (x *Location) GetLatitude() float64
- func (x *Location) GetLibrary() string
- func (x *Location) GetLongitude() float64
- func (x *Location) GetName() string
- func (x *Location) GetTags() []string
- func (x *Location) GetVersion() string
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type ModelType
- type NwFactor
- func (*NwFactor) Descriptor() ([]byte, []int)deprecated
- func (x *NwFactor) GetImpactCategory() *Ref
- func (x *NwFactor) GetNormalisationFactor() float64
- func (x *NwFactor) GetWeightingFactor() float64
- func (*NwFactor) ProtoMessage()
- func (x *NwFactor) ProtoReflect() protoreflect.Message
- func (x *NwFactor) Reset()
- func (x *NwFactor) String() string
- type NwSet
- func (*NwSet) Descriptor() ([]byte, []int)deprecated
- func (x *NwSet) GetDescription() string
- func (x *NwSet) GetFactors() []*NwFactor
- func (x *NwSet) GetId() string
- func (x *NwSet) GetLastChange() string
- func (x *NwSet) GetName() string
- func (x *NwSet) GetVersion() string
- func (x *NwSet) GetWeightedScoreUnit() string
- func (*NwSet) ProtoMessage()
- func (x *NwSet) ProtoReflect() protoreflect.Message
- func (x *NwSet) Reset()
- func (x *NwSet) String() string
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetCategory() *Ref
- func (x *Parameter) GetDescription() string
- func (x *Parameter) GetEntityType() EntityType
- func (x *Parameter) GetFormula() string
- func (x *Parameter) GetId() string
- func (x *Parameter) GetInputParameter() bool
- func (x *Parameter) GetLastChange() string
- func (x *Parameter) GetLibrary() string
- func (x *Parameter) GetName() string
- func (x *Parameter) GetParameterScope() ParameterScope
- func (x *Parameter) GetTags() []string
- func (x *Parameter) GetUncertainty() *Uncertainty
- func (x *Parameter) GetValue() float64
- func (x *Parameter) GetVersion() string
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type ParameterRedef
- func (*ParameterRedef) Descriptor() ([]byte, []int)deprecated
- func (x *ParameterRedef) GetContext() *Ref
- func (x *ParameterRedef) GetDescription() string
- func (x *ParameterRedef) GetName() string
- func (x *ParameterRedef) GetUncertainty() *Uncertainty
- func (x *ParameterRedef) GetValue() float64
- func (*ParameterRedef) ProtoMessage()
- func (x *ParameterRedef) ProtoReflect() protoreflect.Message
- func (x *ParameterRedef) Reset()
- func (x *ParameterRedef) String() string
- type ParameterRedefSet
- func (*ParameterRedefSet) Descriptor() ([]byte, []int)deprecated
- func (x *ParameterRedefSet) GetDescription() string
- func (x *ParameterRedefSet) GetIsBaseline() bool
- func (x *ParameterRedefSet) GetName() string
- func (x *ParameterRedefSet) GetParameters() []*ParameterRedef
- func (*ParameterRedefSet) ProtoMessage()
- func (x *ParameterRedefSet) ProtoReflect() protoreflect.Message
- func (x *ParameterRedefSet) Reset()
- func (x *ParameterRedefSet) String() string
- type ParameterScope
- func (ParameterScope) Descriptor() protoreflect.EnumDescriptor
- func (x ParameterScope) Enum() *ParameterScope
- func (ParameterScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x ParameterScope) Number() protoreflect.EnumNumber
- func (x ParameterScope) String() string
- func (ParameterScope) Type() protoreflect.EnumType
- type Process
- func (*Process) Descriptor() ([]byte, []int)deprecated
- func (x *Process) GetAllocationFactors() []*AllocationFactor
- func (x *Process) GetCategory() *Ref
- func (x *Process) GetDefaultAllocationMethod() AllocationType
- func (x *Process) GetDescription() string
- func (x *Process) GetDqEntry() string
- func (x *Process) GetDqSystem() *Ref
- func (x *Process) GetEntityType() EntityType
- func (x *Process) GetExchangeDqSystem() *Ref
- func (x *Process) GetExchanges() []*Exchange
- func (x *Process) GetId() string
- func (x *Process) GetInfrastructureProcess() bool
- func (x *Process) GetLastChange() string
- func (x *Process) GetLastInternalId() int32
- func (x *Process) GetLibrary() string
- func (x *Process) GetLocation() *Ref
- func (x *Process) GetName() string
- func (x *Process) GetParameters() []*Parameter
- func (x *Process) GetProcessDocumentation() *ProcessDocumentation
- func (x *Process) GetProcessType() ProcessType
- func (x *Process) GetSocialAspects() []*SocialAspect
- func (x *Process) GetSocialDqSystem() *Ref
- func (x *Process) GetTags() []string
- func (x *Process) GetVersion() string
- func (*Process) ProtoMessage()
- func (x *Process) ProtoReflect() protoreflect.Message
- func (x *Process) Reset()
- func (x *Process) String() string
- type ProcessDocumentation
- func (*ProcessDocumentation) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessDocumentation) GetCompletenessDescription() string
- func (x *ProcessDocumentation) GetCopyright() bool
- func (x *ProcessDocumentation) GetCreationDate() string
- func (x *ProcessDocumentation) GetDataCollectionDescription() string
- func (x *ProcessDocumentation) GetDataDocumentor() *Ref
- func (x *ProcessDocumentation) GetDataGenerator() *Ref
- func (x *ProcessDocumentation) GetDataSelectionDescription() string
- func (x *ProcessDocumentation) GetDataSetOwner() *Ref
- func (x *ProcessDocumentation) GetDataTreatmentDescription() string
- func (x *ProcessDocumentation) GetGeographyDescription() string
- func (x *ProcessDocumentation) GetIntendedApplication() string
- func (x *ProcessDocumentation) GetInventoryMethodDescription() string
- func (x *ProcessDocumentation) GetModelingConstantsDescription() string
- func (x *ProcessDocumentation) GetProjectDescription() string
- func (x *ProcessDocumentation) GetPublication() *Ref
- func (x *ProcessDocumentation) GetRestrictionsDescription() string
- func (x *ProcessDocumentation) GetReviewDetails() string
- func (x *ProcessDocumentation) GetReviewer() *Ref
- func (x *ProcessDocumentation) GetSamplingDescription() string
- func (x *ProcessDocumentation) GetSources() []*Ref
- func (x *ProcessDocumentation) GetTechnologyDescription() string
- func (x *ProcessDocumentation) GetTimeDescription() string
- func (x *ProcessDocumentation) GetValidFrom() string
- func (x *ProcessDocumentation) GetValidUntil() string
- func (*ProcessDocumentation) ProtoMessage()
- func (x *ProcessDocumentation) ProtoReflect() protoreflect.Message
- func (x *ProcessDocumentation) Reset()
- func (x *ProcessDocumentation) String() string
- type ProcessLink
- func (*ProcessLink) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessLink) GetExchange() *ExchangeRef
- func (x *ProcessLink) GetFlow() *Ref
- func (x *ProcessLink) GetProcess() *Ref
- func (x *ProcessLink) GetProvider() *Ref
- func (*ProcessLink) ProtoMessage()
- func (x *ProcessLink) ProtoReflect() protoreflect.Message
- func (x *ProcessLink) Reset()
- func (x *ProcessLink) String() string
- type ProcessType
- func (ProcessType) Descriptor() protoreflect.EnumDescriptor
- func (x ProcessType) Enum() *ProcessType
- func (ProcessType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProcessType) Number() protoreflect.EnumNumber
- func (x ProcessType) String() string
- func (ProcessType) Type() protoreflect.EnumType
- type ProductSystem
- func (*ProductSystem) Descriptor() ([]byte, []int)deprecated
- func (x *ProductSystem) GetCategory() *Ref
- func (x *ProductSystem) GetDescription() string
- func (x *ProductSystem) GetEntityType() EntityType
- func (x *ProductSystem) GetId() string
- func (x *ProductSystem) GetLastChange() string
- func (x *ProductSystem) GetLibrary() string
- func (x *ProductSystem) GetName() string
- func (x *ProductSystem) GetParameterSets() []*ParameterRedefSet
- func (x *ProductSystem) GetProcessLinks() []*ProcessLink
- func (x *ProductSystem) GetProcesses() []*Ref
- func (x *ProductSystem) GetReferenceExchange() *ExchangeRef
- func (x *ProductSystem) GetReferenceProcess() *Ref
- func (x *ProductSystem) GetTags() []string
- func (x *ProductSystem) GetTargetAmount() float64
- func (x *ProductSystem) GetTargetFlowProperty() *Ref
- func (x *ProductSystem) GetTargetUnit() *Ref
- func (x *ProductSystem) GetVersion() string
- func (*ProductSystem) ProtoMessage()
- func (x *ProductSystem) ProtoReflect() protoreflect.Message
- func (x *ProductSystem) Reset()
- func (x *ProductSystem) String() string
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetCategory() *Ref
- func (x *Project) GetDescription() string
- func (x *Project) GetEntityType() EntityType
- func (x *Project) GetId() string
- func (x *Project) GetImpactMethod() *Ref
- func (x *Project) GetLastChange() string
- func (x *Project) GetLibrary() string
- func (x *Project) GetName() string
- func (x *Project) GetNwSet() *NwSet
- func (x *Project) GetTags() []string
- func (x *Project) GetVersion() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type Ref
- func (*Ref) Descriptor() ([]byte, []int)deprecated
- func (x *Ref) GetCategoryPath() []string
- func (x *Ref) GetDescription() string
- func (x *Ref) GetEntityType() EntityType
- func (x *Ref) GetFlowType() FlowType
- func (x *Ref) GetId() string
- func (x *Ref) GetLastChange() string
- func (x *Ref) GetLibrary() string
- func (x *Ref) GetLocation() string
- func (x *Ref) GetName() string
- func (x *Ref) GetProcessType() ProcessType
- func (x *Ref) GetRefUnit() string
- func (x *Ref) GetVersion() string
- func (*Ref) ProtoMessage()
- func (x *Ref) ProtoReflect() protoreflect.Message
- func (x *Ref) Reset()
- func (x *Ref) String() string
- type Result
- type ResultServiceClient
- type ResultServiceServer
- type ResultService_GetEnviFlowsClient
- type ResultService_GetEnviFlowsServer
- type ResultService_GetImpactCategoriesClient
- type ResultService_GetImpactCategoriesServer
- type ResultService_GetImpactFactorsClient
- type ResultService_GetImpactFactorsServer
- type ResultService_GetTechFlowsClient
- type ResultService_GetTechFlowsServer
- type ResultService_GetTotalImpactsClient
- type ResultService_GetTotalImpactsServer
- type ResultService_GetTotalInventoryClient
- type ResultService_GetTotalInventoryServer
- type ResultValue
- func (*ResultValue) Descriptor() ([]byte, []int)deprecated
- func (x *ResultValue) GetCosts() bool
- func (x *ResultValue) GetEnviFlow() *EnviFlow
- func (x *ResultValue) GetImpact() *Ref
- func (m *ResultValue) GetResultReference() isResultValue_ResultReference
- func (x *ResultValue) GetTechFlow() *TechFlow
- func (x *ResultValue) GetValue() float64
- func (*ResultValue) ProtoMessage()
- func (x *ResultValue) ProtoReflect() protoreflect.Message
- func (x *ResultValue) Reset()
- func (x *ResultValue) String() string
- type ResultValue_Costs
- type ResultValue_EnviFlow
- type ResultValue_Impact
- type ResultValue_TechFlow
- type RiskLevel
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetModelType() ModelType
- func (x *SearchRequest) GetQuery() string
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SimpleResult
- func (*SimpleResult) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleResult) GetFlowResults() []*FlowResult
- func (x *SimpleResult) GetImpactResults() []*ImpactResult
- func (*SimpleResult) ProtoMessage()
- func (x *SimpleResult) ProtoReflect() protoreflect.Message
- func (x *SimpleResult) Reset()
- func (x *SimpleResult) String() string
- type SocialAspect
- func (*SocialAspect) Descriptor() ([]byte, []int)deprecated
- func (x *SocialAspect) GetActivityValue() float64
- func (x *SocialAspect) GetComment() string
- func (x *SocialAspect) GetQuality() string
- func (x *SocialAspect) GetRawAmount() string
- func (x *SocialAspect) GetRiskLevel() RiskLevel
- func (x *SocialAspect) GetSocialIndicator() *Ref
- func (x *SocialAspect) GetSource() *Ref
- func (*SocialAspect) ProtoMessage()
- func (x *SocialAspect) ProtoReflect() protoreflect.Message
- func (x *SocialAspect) Reset()
- func (x *SocialAspect) String() string
- type SocialIndicator
- func (*SocialIndicator) Descriptor() ([]byte, []int)deprecated
- func (x *SocialIndicator) GetActivityQuantity() *Ref
- func (x *SocialIndicator) GetActivityUnit() *Ref
- func (x *SocialIndicator) GetActivityVariable() string
- func (x *SocialIndicator) GetCategory() *Ref
- func (x *SocialIndicator) GetDescription() string
- func (x *SocialIndicator) GetEntityType() EntityType
- func (x *SocialIndicator) GetEvaluationScheme() string
- func (x *SocialIndicator) GetId() string
- func (x *SocialIndicator) GetLastChange() string
- func (x *SocialIndicator) GetLibrary() string
- func (x *SocialIndicator) GetName() string
- func (x *SocialIndicator) GetTags() []string
- func (x *SocialIndicator) GetUnitOfMeasurement() string
- func (x *SocialIndicator) GetVersion() string
- func (*SocialIndicator) ProtoMessage()
- func (x *SocialIndicator) ProtoReflect() protoreflect.Message
- func (x *SocialIndicator) Reset()
- func (x *SocialIndicator) String() string
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetCategory() *Ref
- func (x *Source) GetDescription() string
- func (x *Source) GetEntityType() EntityType
- func (x *Source) GetExternalFile() string
- func (x *Source) GetId() string
- func (x *Source) GetLastChange() string
- func (x *Source) GetLibrary() string
- func (x *Source) GetName() string
- func (x *Source) GetTags() []string
- func (x *Source) GetTextReference() string
- func (x *Source) GetUrl() string
- func (x *Source) GetVersion() string
- func (x *Source) GetYear() int32
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type TechFlow
- func (*TechFlow) Descriptor() ([]byte, []int)deprecated
- func (m *TechFlow) GetFlow() isTechFlow_Flow
- func (x *TechFlow) GetProcess() *Ref
- func (x *TechFlow) GetProduct() *Ref
- func (x *TechFlow) GetWaste() *Ref
- func (*TechFlow) ProtoMessage()
- func (x *TechFlow) ProtoReflect() protoreflect.Message
- func (x *TechFlow) Reset()
- func (x *TechFlow) String() string
- type TechFlowContributionRequest
- func (*TechFlowContributionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TechFlowContributionRequest) GetCosts() bool
- func (x *TechFlowContributionRequest) GetEnviFlow() *EnviFlow
- func (x *TechFlowContributionRequest) GetImpact() *Ref
- func (x *TechFlowContributionRequest) GetResult() *Result
- func (m *TechFlowContributionRequest) GetResultRef() isTechFlowContributionRequest_ResultRef
- func (x *TechFlowContributionRequest) GetTechFlow() *TechFlow
- func (*TechFlowContributionRequest) ProtoMessage()
- func (x *TechFlowContributionRequest) ProtoReflect() protoreflect.Message
- func (x *TechFlowContributionRequest) Reset()
- func (x *TechFlowContributionRequest) String() string
- type TechFlowContributionRequest_Costs
- type TechFlowContributionRequest_EnviFlow
- type TechFlowContributionRequest_Impact
- type TechFlow_Product
- type TechFlow_Waste
- type Uncertainty
- func (*Uncertainty) Descriptor() ([]byte, []int)deprecated
- func (x *Uncertainty) GetDistributionType() UncertaintyType
- func (x *Uncertainty) GetGeomMean() float64
- func (x *Uncertainty) GetGeomMeanFormula() string
- func (x *Uncertainty) GetGeomSd() float64
- func (x *Uncertainty) GetGeomSdFormula() string
- func (x *Uncertainty) GetMaximum() float64
- func (x *Uncertainty) GetMaximumFormula() string
- func (x *Uncertainty) GetMean() float64
- func (x *Uncertainty) GetMeanFormula() string
- func (x *Uncertainty) GetMinimum() float64
- func (x *Uncertainty) GetMinimumFormula() string
- func (x *Uncertainty) GetMode() float64
- func (x *Uncertainty) GetModeFormula() string
- func (x *Uncertainty) GetSd() float64
- func (x *Uncertainty) GetSdFormula() string
- func (*Uncertainty) ProtoMessage()
- func (x *Uncertainty) ProtoReflect() protoreflect.Message
- func (x *Uncertainty) Reset()
- func (x *Uncertainty) String() string
- type UncertaintyType
- func (UncertaintyType) Descriptor() protoreflect.EnumDescriptor
- func (x UncertaintyType) Enum() *UncertaintyType
- func (UncertaintyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UncertaintyType) Number() protoreflect.EnumNumber
- func (x UncertaintyType) String() string
- func (UncertaintyType) Type() protoreflect.EnumType
- type UnimplementedAboutServiceServer
- type UnimplementedDataFetchServiceServer
- func (UnimplementedDataFetchServiceServer) Find(context.Context, *FindRequest) (*DataSet, error)
- func (UnimplementedDataFetchServiceServer) Get(context.Context, *GetRequest) (*DataSet, error)
- func (UnimplementedDataFetchServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
- func (UnimplementedDataFetchServiceServer) GetCategoryContent(*GetCategoryContentRequest, DataFetchService_GetCategoryContentServer) error
- func (UnimplementedDataFetchServiceServer) GetCategoryTree(context.Context, *GetCategoryTreeRequest) (*CategoryTree, error)
- func (UnimplementedDataFetchServiceServer) GetDescriptors(*GetDescriptorsRequest, DataFetchService_GetDescriptorsServer) error
- func (UnimplementedDataFetchServiceServer) GetProvidersFor(*Ref, DataFetchService_GetProvidersForServer) error
- func (UnimplementedDataFetchServiceServer) Search(*SearchRequest, DataFetchService_SearchServer) error
- type UnimplementedDataUpdateServiceServer
- func (UnimplementedDataUpdateServiceServer) CreateProductSystem(context.Context, *CreateSystemRequest) (*Ref, error)
- func (UnimplementedDataUpdateServiceServer) Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
- func (UnimplementedDataUpdateServiceServer) Put(context.Context, *DataSet) (*Ref, error)
- type UnimplementedFlowMapServiceServer
- func (UnimplementedFlowMapServiceServer) Delete(context.Context, *FlowMapInfo) (*empty.Empty, error)
- func (UnimplementedFlowMapServiceServer) Get(context.Context, *FlowMapInfo) (*FlowMap, error)
- func (UnimplementedFlowMapServiceServer) GetAll(*empty.Empty, FlowMapService_GetAllServer) error
- func (UnimplementedFlowMapServiceServer) Put(context.Context, *FlowMap) (*empty.Empty, error)
- type UnimplementedResultServiceServer
- func (UnimplementedResultServiceServer) Calculate(context.Context, *CalculationSetup) (*Result, error)
- func (UnimplementedResultServiceServer) Dispose(context.Context, *Result) (*empty.Empty, error)
- func (UnimplementedResultServiceServer) GetDirectContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
- func (UnimplementedResultServiceServer) GetEnviFlows(*Result, ResultService_GetEnviFlowsServer) error
- func (UnimplementedResultServiceServer) GetImpactCategories(*Result, ResultService_GetImpactCategoriesServer) error
- func (UnimplementedResultServiceServer) GetImpactFactors(*ImpactFactorRequest, ResultService_GetImpactFactorsServer) error
- func (UnimplementedResultServiceServer) GetTechFlows(*Result, ResultService_GetTechFlowsServer) error
- func (UnimplementedResultServiceServer) GetTotalContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
- func (UnimplementedResultServiceServer) GetTotalContributionOfOne(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
- func (UnimplementedResultServiceServer) GetTotalImpacts(*Result, ResultService_GetTotalImpactsServer) error
- func (UnimplementedResultServiceServer) GetTotalInventory(*Result, ResultService_GetTotalInventoryServer) error
- type Unit
- func (*Unit) Descriptor() ([]byte, []int)deprecated
- func (x *Unit) GetConversionFactor() float64
- func (x *Unit) GetDescription() string
- func (x *Unit) GetId() string
- func (x *Unit) GetLastChange() string
- func (x *Unit) GetName() string
- func (x *Unit) GetReferenceUnit() bool
- func (x *Unit) GetSynonyms() []string
- func (x *Unit) GetVersion() string
- func (*Unit) ProtoMessage()
- func (x *Unit) ProtoReflect() protoreflect.Message
- func (x *Unit) Reset()
- func (x *Unit) String() string
- type UnitGroup
- func (*UnitGroup) Descriptor() ([]byte, []int)deprecated
- func (x *UnitGroup) GetCategory() *Ref
- func (x *UnitGroup) GetDefaultFlowProperty() *Ref
- func (x *UnitGroup) GetDescription() string
- func (x *UnitGroup) GetEntityType() EntityType
- func (x *UnitGroup) GetId() string
- func (x *UnitGroup) GetLastChange() string
- func (x *UnitGroup) GetLibrary() string
- func (x *UnitGroup) GetName() string
- func (x *UnitGroup) GetTags() []string
- func (x *UnitGroup) GetUnits() []*Unit
- func (x *UnitGroup) GetVersion() string
- func (*UnitGroup) ProtoMessage()
- func (x *UnitGroup) ProtoReflect() protoreflect.Message
- func (x *UnitGroup) Reset()
- func (x *UnitGroup) String() string
- type UnsafeAboutServiceServer
- type UnsafeDataFetchServiceServer
- type UnsafeDataUpdateServiceServer
- type UnsafeFlowMapServiceServer
- type UnsafeResultServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( CreateSystemRequest_DefaultProviders_name = map[int32]string{ 0: "Prefer", 1: "Ignore", 2: "Only", } CreateSystemRequest_DefaultProviders_value = map[string]int32{ "Prefer": 0, "Ignore": 1, "Only": 2, } )
Enum value maps for CreateSystemRequest_DefaultProviders.
var ( EntityType_name = map[int32]string{ 0: "Undefined", 1: "Actor", 2: "Category", 3: "Currency", 4: "DQSystem", 5: "Flow", 6: "FlowProperty", 7: "ImpactCategory", 8: "ImpactMethod", 9: "Location", 10: "NwSet", 11: "Parameter", 12: "Process", 13: "ProductSystem", 14: "Project", 15: "SocialIndicator", 16: "Source", 17: "Unit", 18: "UnitGroup", } EntityType_value = map[string]int32{ "Undefined": 0, "Actor": 1, "Category": 2, "Currency": 3, "DQSystem": 4, "Flow": 5, "FlowProperty": 6, "ImpactCategory": 7, "ImpactMethod": 8, "Location": 9, "NwSet": 10, "Parameter": 11, "Process": 12, "ProductSystem": 13, "Project": 14, "SocialIndicator": 15, "Source": 16, "Unit": 17, "UnitGroup": 18, } )
Enum value maps for EntityType.
var ( AllocationType_name = map[int32]string{ 0: "UNDEFINED_ALLOCATION_TYPE", 1: "PHYSICAL_ALLOCATION", 2: "ECONOMIC_ALLOCATION", 3: "CAUSAL_ALLOCATION", 4: "USE_DEFAULT_ALLOCATION", 5: "NO_ALLOCATION", } AllocationType_value = map[string]int32{ "UNDEFINED_ALLOCATION_TYPE": 0, "PHYSICAL_ALLOCATION": 1, "ECONOMIC_ALLOCATION": 2, "CAUSAL_ALLOCATION": 3, "USE_DEFAULT_ALLOCATION": 4, "NO_ALLOCATION": 5, } )
Enum value maps for AllocationType.
var ( CalculationType_name = map[int32]string{ 0: "UNDEFINED_CALCULATION_TYPE", 1: "SIMPLE_CALCULATION", 2: "CONTRIBUTION_ANALYSIS", 3: "UPSTREAM_ANALYSIS", 4: "MONTE_CARLO_SIMULATION", } CalculationType_value = map[string]int32{ "UNDEFINED_CALCULATION_TYPE": 0, "SIMPLE_CALCULATION": 1, "CONTRIBUTION_ANALYSIS": 2, "UPSTREAM_ANALYSIS": 3, "MONTE_CARLO_SIMULATION": 4, } )
Enum value maps for CalculationType.
var ( FlowPropertyType_name = map[int32]string{ 0: "UNDEFINED_FLOW_PROPERTY_TYPE", 1: "ECONOMIC_QUANTITY", 2: "PHYSICAL_QUANTITY", } FlowPropertyType_value = map[string]int32{ "UNDEFINED_FLOW_PROPERTY_TYPE": 0, "ECONOMIC_QUANTITY": 1, "PHYSICAL_QUANTITY": 2, } )
Enum value maps for FlowPropertyType.
var ( FlowType_name = map[int32]string{ 0: "UNDEFINED_FLOW_TYPE", 1: "ELEMENTARY_FLOW", 2: "PRODUCT_FLOW", 3: "WASTE_FLOW", } FlowType_value = map[string]int32{ "UNDEFINED_FLOW_TYPE": 0, "ELEMENTARY_FLOW": 1, "PRODUCT_FLOW": 2, "WASTE_FLOW": 3, } )
Enum value maps for FlowType.
var ( ModelType_name = map[int32]string{ 0: "UNDEFINED_MODEL_TYPE", 1: "ACTOR", 2: "CATEGORY", 3: "CURRENCY", 4: "DQ_SYSTEM", 5: "FLOW", 6: "FLOW_PROPERTY", 7: "IMPACT_CATEGORY", 8: "IMPACT_METHOD", 9: "LOCATION", 10: "NW_SET", 11: "PARAMETER", 12: "PROCESS", 13: "PRODUCT_SYSTEM", 14: "PROJECT", 15: "SOCIAL_INDICATOR", 16: "SOURCE", 17: "UNIT", 18: "UNIT_GROUP", } ModelType_value = map[string]int32{ "UNDEFINED_MODEL_TYPE": 0, "ACTOR": 1, "CATEGORY": 2, "CURRENCY": 3, "DQ_SYSTEM": 4, "FLOW": 5, "FLOW_PROPERTY": 6, "IMPACT_CATEGORY": 7, "IMPACT_METHOD": 8, "LOCATION": 9, "NW_SET": 10, "PARAMETER": 11, "PROCESS": 12, "PRODUCT_SYSTEM": 13, "PROJECT": 14, "SOCIAL_INDICATOR": 15, "SOURCE": 16, "UNIT": 17, "UNIT_GROUP": 18, } )
Enum value maps for ModelType.
var ( ParameterScope_name = map[int32]string{ 0: "UNDEFINED_PARAMETER_SCOPE", 1: "PROCESS_SCOPE", 2: "IMPACT_SCOPE", 3: "GLOBAL_SCOPE", } ParameterScope_value = map[string]int32{ "UNDEFINED_PARAMETER_SCOPE": 0, "PROCESS_SCOPE": 1, "IMPACT_SCOPE": 2, "GLOBAL_SCOPE": 3, } )
Enum value maps for ParameterScope.
var ( ProcessType_name = map[int32]string{ 0: "UNDEFINED_PROCESS_TYPE", 1: "LCI_RESULT", 2: "UNIT_PROCESS", } ProcessType_value = map[string]int32{ "UNDEFINED_PROCESS_TYPE": 0, "LCI_RESULT": 1, "UNIT_PROCESS": 2, } )
Enum value maps for ProcessType.
var ( RiskLevel_name = map[int32]string{ 0: "UNDEFINED_RISK_LEVEL", 1: "NO_OPPORTUNITY", 2: "HIGH_OPPORTUNITY", 3: "MEDIUM_OPPORTUNITY", 4: "LOW_OPPORTUNITY", 5: "NO_RISK", 6: "VERY_LOW_RISK", 7: "LOW_RISK", 8: "MEDIUM_RISK", 9: "HIGH_RISK", 10: "VERY_HIGH_RISK", 11: "NO_DATA", 12: "NOT_APPLICABLE", } RiskLevel_value = map[string]int32{ "UNDEFINED_RISK_LEVEL": 0, "NO_OPPORTUNITY": 1, "HIGH_OPPORTUNITY": 2, "MEDIUM_OPPORTUNITY": 3, "LOW_OPPORTUNITY": 4, "NO_RISK": 5, "VERY_LOW_RISK": 6, "LOW_RISK": 7, "MEDIUM_RISK": 8, "HIGH_RISK": 9, "VERY_HIGH_RISK": 10, "NO_DATA": 11, "NOT_APPLICABLE": 12, } )
Enum value maps for RiskLevel.
var ( UncertaintyType_name = map[int32]string{ 0: "UNDEFINED_UNCERTAINTY_TYPE", 1: "LOG_NORMAL_DISTRIBUTION", 2: "NORMAL_DISTRIBUTION", 3: "TRIANGLE_DISTRIBUTION", 4: "UNIFORM_DISTRIBUTION", } UncertaintyType_value = map[string]int32{ "UNDEFINED_UNCERTAINTY_TYPE": 0, "LOG_NORMAL_DISTRIBUTION": 1, "NORMAL_DISTRIBUTION": 2, "TRIANGLE_DISTRIBUTION": 3, "UNIFORM_DISTRIBUTION": 4, } )
Enum value maps for UncertaintyType.
var AboutService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protolca.services.AboutService", HandlerType: (*AboutServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "About", Handler: _AboutService_About_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "about_service.proto", }
AboutService_ServiceDesc is the grpc.ServiceDesc for AboutService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DataFetchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protolca.services.DataFetchService", HandlerType: (*DataFetchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _DataFetchService_Get_Handler, }, { MethodName: "Find", Handler: _DataFetchService_Find_Handler, }, { MethodName: "GetAll", Handler: _DataFetchService_GetAll_Handler, }, { MethodName: "GetCategoryTree", Handler: _DataFetchService_GetCategoryTree_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDescriptors", Handler: _DataFetchService_GetDescriptors_Handler, ServerStreams: true, }, { StreamName: "Search", Handler: _DataFetchService_Search_Handler, ServerStreams: true, }, { StreamName: "GetCategoryContent", Handler: _DataFetchService_GetCategoryContent_Handler, ServerStreams: true, }, { StreamName: "GetProvidersFor", Handler: _DataFetchService_GetProvidersFor_Handler, ServerStreams: true, }, }, Metadata: "data_fetch_service.proto", }
DataFetchService_ServiceDesc is the grpc.ServiceDesc for DataFetchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DataUpdateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protolca.services.DataUpdateService", HandlerType: (*DataUpdateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Put", Handler: _DataUpdateService_Put_Handler, }, { MethodName: "Delete", Handler: _DataUpdateService_Delete_Handler, }, { MethodName: "CreateProductSystem", Handler: _DataUpdateService_CreateProductSystem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "data_update_service.proto", }
DataUpdateService_ServiceDesc is the grpc.ServiceDesc for DataUpdateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_about_service_proto protoreflect.FileDescriptor
var File_commons_proto protoreflect.FileDescriptor
var File_data_fetch_service_proto protoreflect.FileDescriptor
var File_data_update_service_proto protoreflect.FileDescriptor
var File_entity_type_proto protoreflect.FileDescriptor
var File_flow_map_service_proto protoreflect.FileDescriptor
var File_olca_proto protoreflect.FileDescriptor
var File_result_service_proto protoreflect.FileDescriptor
var File_result_types_proto protoreflect.FileDescriptor
var FlowMapService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protolca.services.FlowMapService", HandlerType: (*FlowMapServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Delete", Handler: _FlowMapService_Delete_Handler, }, { MethodName: "Get", Handler: _FlowMapService_Get_Handler, }, { MethodName: "Put", Handler: _FlowMapService_Put_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetAll", Handler: _FlowMapService_GetAll_Handler, ServerStreams: true, }, }, Metadata: "flow_map_service.proto", }
FlowMapService_ServiceDesc is the grpc.ServiceDesc for FlowMapService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ResultService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protolca.services.ResultService", HandlerType: (*ResultServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Calculate", Handler: _ResultService_Calculate_Handler, }, { MethodName: "GetDirectContribution", Handler: _ResultService_GetDirectContribution_Handler, }, { MethodName: "GetTotalContribution", Handler: _ResultService_GetTotalContribution_Handler, }, { MethodName: "GetTotalContributionOfOne", Handler: _ResultService_GetTotalContributionOfOne_Handler, }, { MethodName: "Dispose", Handler: _ResultService_Dispose_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetTechFlows", Handler: _ResultService_GetTechFlows_Handler, ServerStreams: true, }, { StreamName: "GetEnviFlows", Handler: _ResultService_GetEnviFlows_Handler, ServerStreams: true, }, { StreamName: "GetImpactCategories", Handler: _ResultService_GetImpactCategories_Handler, ServerStreams: true, }, { StreamName: "GetTotalInventory", Handler: _ResultService_GetTotalInventory_Handler, ServerStreams: true, }, { StreamName: "GetTotalImpacts", Handler: _ResultService_GetTotalImpacts_Handler, ServerStreams: true, }, { StreamName: "GetImpactFactors", Handler: _ResultService_GetImpactFactors_Handler, ServerStreams: true, }, }, Metadata: "result_service.proto", }
ResultService_ServiceDesc is the grpc.ServiceDesc for ResultService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAboutServiceServer ¶ added in v0.0.3
func RegisterAboutServiceServer(s grpc.ServiceRegistrar, srv AboutServiceServer)
func RegisterDataFetchServiceServer ¶
func RegisterDataFetchServiceServer(s grpc.ServiceRegistrar, srv DataFetchServiceServer)
func RegisterDataUpdateServiceServer ¶
func RegisterDataUpdateServiceServer(s grpc.ServiceRegistrar, srv DataUpdateServiceServer)
func RegisterFlowMapServiceServer ¶
func RegisterFlowMapServiceServer(s grpc.ServiceRegistrar, srv FlowMapServiceServer)
func RegisterResultServiceServer ¶
func RegisterResultServiceServer(s grpc.ServiceRegistrar, srv ResultServiceServer)
Types ¶
type AboutResponse ¶ added in v0.0.3
type AboutResponse struct { // The name of the database to which the service is connected. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // The version of the service interface. Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // The minimum service version to which this service is backwards // compatible (means that all versions from this version to the // the current version of this service are supported). MinSupportedVersion int32 `protobuf:"varint,3,opt,name=min_supported_version,json=minSupportedVersion,proto3" json:"min_supported_version,omitempty"` // contains filtered or unexported fields }
func (*AboutResponse) Descriptor
deprecated
added in
v0.0.3
func (*AboutResponse) Descriptor() ([]byte, []int)
Deprecated: Use AboutResponse.ProtoReflect.Descriptor instead.
func (*AboutResponse) GetDatabase ¶ added in v0.0.3
func (x *AboutResponse) GetDatabase() string
func (*AboutResponse) GetMinSupportedVersion ¶ added in v0.0.3
func (x *AboutResponse) GetMinSupportedVersion() int32
func (*AboutResponse) GetVersion ¶ added in v0.0.3
func (x *AboutResponse) GetVersion() int32
func (*AboutResponse) ProtoMessage ¶ added in v0.0.3
func (*AboutResponse) ProtoMessage()
func (*AboutResponse) ProtoReflect ¶ added in v0.0.3
func (x *AboutResponse) ProtoReflect() protoreflect.Message
func (*AboutResponse) Reset ¶ added in v0.0.3
func (x *AboutResponse) Reset()
func (*AboutResponse) String ¶ added in v0.0.3
func (x *AboutResponse) String() string
type AboutServiceClient ¶ added in v0.0.3
type AboutServiceClient interface {
About(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AboutResponse, error)
}
AboutServiceClient is the client API for AboutService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAboutServiceClient ¶ added in v0.0.3
func NewAboutServiceClient(cc grpc.ClientConnInterface) AboutServiceClient
type AboutServiceServer ¶ added in v0.0.3
type AboutServiceServer interface { About(context.Context, *empty.Empty) (*AboutResponse, error) // contains filtered or unexported methods }
AboutServiceServer is the server API for AboutService service. All implementations must embed UnimplementedAboutServiceServer for forward compatibility
type Actor ¶
type Actor struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` Address string `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty"` City string `protobuf:"bytes,11,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` Email string `protobuf:"bytes,13,opt,name=email,proto3" json:"email,omitempty"` Telefax string `protobuf:"bytes,14,opt,name=telefax,proto3" json:"telefax,omitempty"` Telephone string `protobuf:"bytes,15,opt,name=telephone,proto3" json:"telephone,omitempty"` Website string `protobuf:"bytes,16,opt,name=website,proto3" json:"website,omitempty"` ZipCode string `protobuf:"bytes,17,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` // contains filtered or unexported fields }
An actor is a person or organisation.
func (*Actor) Descriptor
deprecated
func (*Actor) GetAddress ¶
func (*Actor) GetCategory ¶
func (*Actor) GetCountry ¶
func (*Actor) GetDescription ¶
func (*Actor) GetEntityType ¶
func (x *Actor) GetEntityType() EntityType
func (*Actor) GetLastChange ¶
func (*Actor) GetLibrary ¶
func (*Actor) GetTelefax ¶
func (*Actor) GetTelephone ¶
func (*Actor) GetVersion ¶
func (*Actor) GetWebsite ¶
func (*Actor) GetZipCode ¶
func (*Actor) ProtoMessage ¶
func (*Actor) ProtoMessage()
func (*Actor) ProtoReflect ¶
func (x *Actor) ProtoReflect() protoreflect.Message
type AllocationFactor ¶
type AllocationFactor struct { // The type of allocation. AllocationType AllocationType `` /* 133-byte string literal not displayed */ // The output product (or waste input) to which this allocation factor is // related. The must be an exchange with this product output (or waste input) // in this process. Product *Ref `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` // The value of the allocation factor. Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // An optional formula from which the value of the allocation factor is // calculated. Formula string `protobuf:"bytes,4,opt,name=formula,proto3" json:"formula,omitempty"` // A product input, waste output, or elementary flow exchange which is // allocated by this factor. This is only valid for causal allocation where // allocation factors can be assigned to single exchanges. Exchange *ExchangeRef `protobuf:"bytes,5,opt,name=exchange,proto3" json:"exchange,omitempty"` // contains filtered or unexported fields }
A single allocation factor in a process.
func (*AllocationFactor) Descriptor
deprecated
func (*AllocationFactor) Descriptor() ([]byte, []int)
Deprecated: Use AllocationFactor.ProtoReflect.Descriptor instead.
func (*AllocationFactor) GetAllocationType ¶
func (x *AllocationFactor) GetAllocationType() AllocationType
func (*AllocationFactor) GetExchange ¶
func (x *AllocationFactor) GetExchange() *ExchangeRef
func (*AllocationFactor) GetFormula ¶
func (x *AllocationFactor) GetFormula() string
func (*AllocationFactor) GetProduct ¶
func (x *AllocationFactor) GetProduct() *Ref
func (*AllocationFactor) GetValue ¶
func (x *AllocationFactor) GetValue() float64
func (*AllocationFactor) ProtoMessage ¶
func (*AllocationFactor) ProtoMessage()
func (*AllocationFactor) ProtoReflect ¶
func (x *AllocationFactor) ProtoReflect() protoreflect.Message
func (*AllocationFactor) Reset ¶
func (x *AllocationFactor) Reset()
func (*AllocationFactor) String ¶
func (x *AllocationFactor) String() string
type AllocationType ¶
type AllocationType int32
An enumeration type for allocation methods. This type is used to define the type of an AllocationFactor, the default allocation method of a multi-functional Process, or the allocation method in a CalculationSetup.
const ( // This default option was added automatically // and means that no values was set. AllocationType_UNDEFINED_ALLOCATION_TYPE AllocationType = 0 AllocationType_PHYSICAL_ALLOCATION AllocationType = 1 AllocationType_ECONOMIC_ALLOCATION AllocationType = 2 AllocationType_CAUSAL_ALLOCATION AllocationType = 3 AllocationType_USE_DEFAULT_ALLOCATION AllocationType = 4 AllocationType_NO_ALLOCATION AllocationType = 5 )
func (AllocationType) Descriptor ¶
func (AllocationType) Descriptor() protoreflect.EnumDescriptor
func (AllocationType) Enum ¶
func (x AllocationType) Enum() *AllocationType
func (AllocationType) EnumDescriptor
deprecated
func (AllocationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AllocationType.Descriptor instead.
func (AllocationType) Number ¶
func (x AllocationType) Number() protoreflect.EnumNumber
func (AllocationType) String ¶
func (x AllocationType) String() string
func (AllocationType) Type ¶
func (AllocationType) Type() protoreflect.EnumType
type CalculationSetup ¶
type CalculationSetup struct { // The type of calculation that should be performed. CalculationType CalculationType `` /* 137-byte string literal not displayed */ // The product system that should be calculated. ProductSystem *Ref `protobuf:"bytes,2,opt,name=product_system,json=productSystem,proto3" json:"product_system,omitempty"` // The process that should be calculated. Process *Ref `protobuf:"bytes,3,opt,name=process,proto3" json:"process,omitempty"` // The LCIA method for the calculation. ImpactMethod *Ref `protobuf:"bytes,4,opt,name=impact_method,json=impactMethod,proto3" json:"impact_method,omitempty"` // The normalisation and weighting set for the calculation. NwSet *Ref `protobuf:"bytes,5,opt,name=nw_set,json=nwSet,proto3" json:"nw_set,omitempty"` // A list of parameter redefinitions that should be used in the calculation. Parameters []*ParameterRedef `protobuf:"bytes,6,rep,name=parameters,proto3" json:"parameters,omitempty"` // The calculation type to be used in the calculation. Allocation AllocationType `protobuf:"varint,7,opt,name=allocation,proto3,enum=protolca.AllocationType" json:"allocation,omitempty"` // Indicates whether life cycle costs should be also calculated. WithCosts bool `protobuf:"varint,8,opt,name=with_costs,json=withCosts,proto3" json:"with_costs,omitempty"` // Indicates whether a regionalized result should be calculated or not. WithRegionalization bool `protobuf:"varint,9,opt,name=with_regionalization,json=withRegionalization,proto3" json:"with_regionalization,omitempty"` Unit *Ref `protobuf:"bytes,10,opt,name=unit,proto3" json:"unit,omitempty"` Amount float64 `protobuf:"fixed64,11,opt,name=amount,proto3" json:"amount,omitempty"` FlowProperty *Ref `protobuf:"bytes,12,opt,name=flow_property,json=flowProperty,proto3" json:"flow_property,omitempty"` // This field is only valid when this setup describes a Monte Carlo // simulation and contains the number of simulation runs in that case. NumberOfRuns int32 `protobuf:"varint,13,opt,name=number_of_runs,json=numberOfRuns,proto3" json:"number_of_runs,omitempty"` // contains filtered or unexported fields }
A setup for a product system calculation.
func (*CalculationSetup) Descriptor
deprecated
func (*CalculationSetup) Descriptor() ([]byte, []int)
Deprecated: Use CalculationSetup.ProtoReflect.Descriptor instead.
func (*CalculationSetup) GetAllocation ¶ added in v0.0.3
func (x *CalculationSetup) GetAllocation() AllocationType
func (*CalculationSetup) GetAmount ¶
func (x *CalculationSetup) GetAmount() float64
func (*CalculationSetup) GetCalculationType ¶
func (x *CalculationSetup) GetCalculationType() CalculationType
func (*CalculationSetup) GetFlowProperty ¶
func (x *CalculationSetup) GetFlowProperty() *Ref
func (*CalculationSetup) GetImpactMethod ¶
func (x *CalculationSetup) GetImpactMethod() *Ref
func (*CalculationSetup) GetNumberOfRuns ¶ added in v0.0.3
func (x *CalculationSetup) GetNumberOfRuns() int32
func (*CalculationSetup) GetNwSet ¶
func (x *CalculationSetup) GetNwSet() *Ref
func (*CalculationSetup) GetParameters ¶ added in v0.0.3
func (x *CalculationSetup) GetParameters() []*ParameterRedef
func (*CalculationSetup) GetProcess ¶ added in v0.0.3
func (x *CalculationSetup) GetProcess() *Ref
func (*CalculationSetup) GetProductSystem ¶
func (x *CalculationSetup) GetProductSystem() *Ref
func (*CalculationSetup) GetUnit ¶
func (x *CalculationSetup) GetUnit() *Ref
func (*CalculationSetup) GetWithCosts ¶
func (x *CalculationSetup) GetWithCosts() bool
func (*CalculationSetup) GetWithRegionalization ¶
func (x *CalculationSetup) GetWithRegionalization() bool
func (*CalculationSetup) ProtoMessage ¶
func (*CalculationSetup) ProtoMessage()
func (*CalculationSetup) ProtoReflect ¶
func (x *CalculationSetup) ProtoReflect() protoreflect.Message
func (*CalculationSetup) Reset ¶
func (x *CalculationSetup) Reset()
func (*CalculationSetup) String ¶
func (x *CalculationSetup) String() string
type CalculationType ¶
type CalculationType int32
An enumeration of the different calculation methods supported by openLCA.
const ( // This default option was added automatically // and means that no values was set. CalculationType_UNDEFINED_CALCULATION_TYPE CalculationType = 0 // Calculates the total results for elementary flows, LCIA indicators, costs, // etc. of a product system. CalculationType_SIMPLE_CALCULATION CalculationType = 1 // Includes the total result vectors of a simple calculation but calculates // also the direct contributions of each process (or better process product // in case of multi-output processes) to these total results. CalculationType_CONTRIBUTION_ANALYSIS CalculationType = 2 // Extends the contribution analysis by providing also the upstream results // of each process (process product) in the product system. The upstream // result contains the direct contributions of the respective process but // also the result of the supply chain up to this process scaled to the // demand of the process in the product system. CalculationType_UPSTREAM_ANALYSIS CalculationType = 3 // A Monte Carlo simulation generates for each run, of a given number of a // given number of iterations, random values according to the uncertainty // distributions of process inputs/outputs, parameters, characterization // factors, etc. of a product system and then performs a simple calculation // for that specific run. CalculationType_MONTE_CARLO_SIMULATION CalculationType = 4 )
func (CalculationType) Descriptor ¶
func (CalculationType) Descriptor() protoreflect.EnumDescriptor
func (CalculationType) Enum ¶
func (x CalculationType) Enum() *CalculationType
func (CalculationType) EnumDescriptor
deprecated
func (CalculationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CalculationType.Descriptor instead.
func (CalculationType) Number ¶
func (x CalculationType) Number() protoreflect.EnumNumber
func (CalculationType) String ¶
func (x CalculationType) String() string
func (CalculationType) Type ¶
func (CalculationType) Type() protoreflect.EnumType
type Category ¶
type Category struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The type of models that can be linked to the category. ModelType ModelType `protobuf:"varint,10,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // contains filtered or unexported fields }
A category is used for the categorisation of types like processes, flows, etc. The tricky thing is that the `Category` class inherits also from the [CategorizedEntity] type so that a category can have a category attribute which is then the parent category of this category (uff).
func (*Category) Descriptor
deprecated
func (*Category) GetCategory ¶
func (*Category) GetDescription ¶
func (*Category) GetEntityType ¶
func (x *Category) GetEntityType() EntityType
func (*Category) GetLastChange ¶
func (*Category) GetLibrary ¶
func (*Category) GetModelType ¶
func (*Category) GetVersion ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CategoryTree ¶
type CategoryTree struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` SubTree []*CategoryTree `protobuf:"bytes,4,rep,name=sub_tree,json=subTree,proto3" json:"sub_tree,omitempty"` // contains filtered or unexported fields }
func (*CategoryTree) Descriptor
deprecated
func (*CategoryTree) Descriptor() ([]byte, []int)
Deprecated: Use CategoryTree.ProtoReflect.Descriptor instead.
func (*CategoryTree) GetId ¶
func (x *CategoryTree) GetId() string
func (*CategoryTree) GetModelType ¶
func (x *CategoryTree) GetModelType() ModelType
func (*CategoryTree) GetName ¶
func (x *CategoryTree) GetName() string
func (*CategoryTree) GetSubTree ¶
func (x *CategoryTree) GetSubTree() []*CategoryTree
func (*CategoryTree) ProtoMessage ¶
func (*CategoryTree) ProtoMessage()
func (*CategoryTree) ProtoReflect ¶
func (x *CategoryTree) ProtoReflect() protoreflect.Message
func (*CategoryTree) Reset ¶
func (x *CategoryTree) Reset()
func (*CategoryTree) String ¶
func (x *CategoryTree) String() string
type Client ¶ added in v0.0.3
type Client struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶ added in v0.0.3
func (*Client) About ¶ added in v0.0.3
func (c *Client) About() (*AboutResponse, error)
func (*Client) DataFetch ¶ added in v0.0.3
func (c *Client) DataFetch() DataFetchServiceClient
type CreateSystemRequest ¶
type CreateSystemRequest struct { // The (reference of the) process from which the product system should be // generated. This will be the reference process of the product system // with upstream and downstream processes added recursively. Process *Ref `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` // Indicates how default providers of product inputs and waste outputs // should be considered during the linking. `only` means that only // product inputs and waste outputs should be linked that have a // default provider and that this default provider is used. `prefer` // means that a default provider is used during the linking if there // are multiple options. `ignore` means that the default providers // have no specific role. DefaultProviders CreateSystemRequest_DefaultProviders `` /* 170-byte string literal not displayed */ // When there are multiple provider processes available for linking a // product input or waste output the `preferred_type` indicates which // type of process (LCI results or unit processes) should be preferred // during the linking. PreferredType ProcessType `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateSystemRequest) Descriptor
deprecated
func (*CreateSystemRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSystemRequest.ProtoReflect.Descriptor instead.
func (*CreateSystemRequest) GetDefaultProviders ¶
func (x *CreateSystemRequest) GetDefaultProviders() CreateSystemRequest_DefaultProviders
func (*CreateSystemRequest) GetPreferredType ¶
func (x *CreateSystemRequest) GetPreferredType() ProcessType
func (*CreateSystemRequest) GetProcess ¶
func (x *CreateSystemRequest) GetProcess() *Ref
func (*CreateSystemRequest) ProtoMessage ¶
func (*CreateSystemRequest) ProtoMessage()
func (*CreateSystemRequest) ProtoReflect ¶
func (x *CreateSystemRequest) ProtoReflect() protoreflect.Message
func (*CreateSystemRequest) Reset ¶
func (x *CreateSystemRequest) Reset()
func (*CreateSystemRequest) String ¶
func (x *CreateSystemRequest) String() string
type CreateSystemRequest_DefaultProviders ¶
type CreateSystemRequest_DefaultProviders int32
const ( CreateSystemRequest_Prefer CreateSystemRequest_DefaultProviders = 0 CreateSystemRequest_Ignore CreateSystemRequest_DefaultProviders = 1 CreateSystemRequest_Only CreateSystemRequest_DefaultProviders = 2 )
func (CreateSystemRequest_DefaultProviders) Descriptor ¶
func (CreateSystemRequest_DefaultProviders) Descriptor() protoreflect.EnumDescriptor
func (CreateSystemRequest_DefaultProviders) Enum ¶
func (x CreateSystemRequest_DefaultProviders) Enum() *CreateSystemRequest_DefaultProviders
func (CreateSystemRequest_DefaultProviders) EnumDescriptor
deprecated
func (CreateSystemRequest_DefaultProviders) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateSystemRequest_DefaultProviders.Descriptor instead.
func (CreateSystemRequest_DefaultProviders) Number ¶
func (x CreateSystemRequest_DefaultProviders) Number() protoreflect.EnumNumber
func (CreateSystemRequest_DefaultProviders) String ¶
func (x CreateSystemRequest_DefaultProviders) String() string
func (CreateSystemRequest_DefaultProviders) Type ¶
func (CreateSystemRequest_DefaultProviders) Type() protoreflect.EnumType
type Currency ¶
type Currency struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` Code string `protobuf:"bytes,10,opt,name=code,proto3" json:"code,omitempty"` ConversionFactor float64 `protobuf:"fixed64,11,opt,name=conversion_factor,json=conversionFactor,proto3" json:"conversion_factor,omitempty"` ReferenceCurrency *Ref `protobuf:"bytes,12,opt,name=reference_currency,json=referenceCurrency,proto3" json:"reference_currency,omitempty"` // contains filtered or unexported fields }
func (*Currency) Descriptor
deprecated
func (*Currency) GetCategory ¶
func (*Currency) GetConversionFactor ¶
func (*Currency) GetDescription ¶
func (*Currency) GetEntityType ¶
func (x *Currency) GetEntityType() EntityType
func (*Currency) GetLastChange ¶
func (*Currency) GetLibrary ¶
func (*Currency) GetReferenceCurrency ¶
func (*Currency) GetVersion ¶
func (*Currency) ProtoMessage ¶
func (*Currency) ProtoMessage()
func (*Currency) ProtoReflect ¶
func (x *Currency) ProtoReflect() protoreflect.Message
type DQIndicator ¶
type DQIndicator struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"` Scores []*DQScore `protobuf:"bytes,3,rep,name=scores,proto3" json:"scores,omitempty"` // contains filtered or unexported fields }
An indicator of a data quality system (DQSystem).
func (*DQIndicator) Descriptor
deprecated
func (*DQIndicator) Descriptor() ([]byte, []int)
Deprecated: Use DQIndicator.ProtoReflect.Descriptor instead.
func (*DQIndicator) GetName ¶
func (x *DQIndicator) GetName() string
func (*DQIndicator) GetPosition ¶
func (x *DQIndicator) GetPosition() int32
func (*DQIndicator) GetScores ¶
func (x *DQIndicator) GetScores() []*DQScore
func (*DQIndicator) ProtoMessage ¶
func (*DQIndicator) ProtoMessage()
func (*DQIndicator) ProtoReflect ¶
func (x *DQIndicator) ProtoReflect() protoreflect.Message
func (*DQIndicator) Reset ¶
func (x *DQIndicator) Reset()
func (*DQIndicator) String ¶
func (x *DQIndicator) String() string
type DQScore ¶
type DQScore struct { Position int32 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Uncertainty float64 `protobuf:"fixed64,4,opt,name=uncertainty,proto3" json:"uncertainty,omitempty"` // contains filtered or unexported fields }
An score value of an indicator (DQIndicator) in a data quality system (DQSystem).
func (*DQScore) Descriptor
deprecated
func (*DQScore) GetDescription ¶
func (*DQScore) GetPosition ¶
func (*DQScore) GetUncertainty ¶
func (*DQScore) ProtoMessage ¶
func (*DQScore) ProtoMessage()
func (*DQScore) ProtoReflect ¶
func (x *DQScore) ProtoReflect() protoreflect.Message
type DQSystem ¶
type DQSystem struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` HasUncertainties bool `protobuf:"varint,10,opt,name=has_uncertainties,json=hasUncertainties,proto3" json:"has_uncertainties,omitempty"` Source *Ref `protobuf:"bytes,11,opt,name=source,proto3" json:"source,omitempty"` Indicators []*DQIndicator `protobuf:"bytes,12,rep,name=indicators,proto3" json:"indicators,omitempty"` // contains filtered or unexported fields }
A data quality system (DQS) in openLCA describes a pedigree matrix of $m$ data quality indicators (DQIs) and $n$ data quality scores (DQ scores). Such a system can then be used to assess the data quality of processes and exchanges by tagging them with an instance of the system $D$ where $D$ is a $m * n$ matrix with an entry $d_{ij}$ containing the value of the data quality score $j$ for indicator $i$. As each indicator in $D$ can only have a single score value, $D$ can be stored in a vector $d$ where $d_i$ contains the data quality score for indicator $i$. The possible values of the data quality scores are defined as a linear order $1 \dots n$. In openLCA, the data quality entry $d$ of a process or exchange is stored as a string like `(3;2;4;n.a.;2)` which means the data quality score for the first indicator is `3`, for the second `2` etc. A specific value is `n.a.` which stands for _not applicable_. In calculations, these data quality entries can be aggregated in different ways. For example, the data quality entry of a flow $f$ with a contribution of `0.5 kg` and a data quality entry of `(3;2;4;n.a.;2)` in a process $p$ and a contribution of `1.5 kg` and a data quality entry of `(2;3;1;n.a.;5)` in a process $q$ could be aggregated to `(2;3;2;n.a.;4)` by applying an weighted average and rounding. Finally, custom labels like `A, B, C, ...` or `Very good, Good, Fair, ...` for the DQ scores can be assigned by the user. These labels are then displayed instead of `1, 2, 3 ...` in the user interface or result exports. However, internally the numeric values are used in the data model and calculations.
func (*DQSystem) Descriptor
deprecated
func (*DQSystem) GetCategory ¶
func (*DQSystem) GetDescription ¶
func (*DQSystem) GetEntityType ¶
func (x *DQSystem) GetEntityType() EntityType
func (*DQSystem) GetHasUncertainties ¶
func (*DQSystem) GetIndicators ¶
func (x *DQSystem) GetIndicators() []*DQIndicator
func (*DQSystem) GetLastChange ¶
func (*DQSystem) GetLibrary ¶
func (*DQSystem) GetVersion ¶
func (*DQSystem) ProtoMessage ¶
func (*DQSystem) ProtoMessage()
func (*DQSystem) ProtoReflect ¶
func (x *DQSystem) ProtoReflect() protoreflect.Message
type DataFetchServiceClient ¶
type DataFetchServiceClient interface { // Get a data set by ID. You use this method if you are sure that a data set // of the requested type and ID exists in the database. An error is returned // if this is not the case. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*DataSet, error) // Get a data set by ID or name. Returns an empty data set if there is no such // data set in the database. If there are multiple data sets with the same // name in the database it returns the first of these data sets. Find(ctx context.Context, in *FindRequest, opts ...grpc.CallOption) (*DataSet, error) // Get (a page of) all data sets of a given type. If no page size is given // (page <= 0) it defaults to 100. An unset page (page <= 0) defaults to the // first page. GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) // Get all descriptors that match the given request. GetDescriptors(ctx context.Context, in *GetDescriptorsRequest, opts ...grpc.CallOption) (DataFetchService_GetDescriptorsClient, error) // Search for data sets. Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (DataFetchService_SearchClient, error) // Get the descriptors of the data sets that are contained in a given // category. The category can be identified by its full path or its ID where // an empty string or "/" identifies the root category (or "none-category") of // the respective model type. GetCategoryContent(ctx context.Context, in *GetCategoryContentRequest, opts ...grpc.CallOption) (DataFetchService_GetCategoryContentClient, error) // Get the full category tree for the given model type. GetCategoryTree(ctx context.Context, in *GetCategoryTreeRequest, opts ...grpc.CallOption) (*CategoryTree, error) // Get possible providers for the given flow. For products these are processes // with that product on the output side and for waste flows processes with // that waste flow on the input side. For elementary flows, an empty stream is // returned. GetProvidersFor(ctx context.Context, in *Ref, opts ...grpc.CallOption) (DataFetchService_GetProvidersForClient, error) }
DataFetchServiceClient is the client API for DataFetchService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataFetchServiceClient ¶
func NewDataFetchServiceClient(cc grpc.ClientConnInterface) DataFetchServiceClient
type DataFetchServiceServer ¶
type DataFetchServiceServer interface { // Get a data set by ID. You use this method if you are sure that a data set // of the requested type and ID exists in the database. An error is returned // if this is not the case. Get(context.Context, *GetRequest) (*DataSet, error) // Get a data set by ID or name. Returns an empty data set if there is no such // data set in the database. If there are multiple data sets with the same // name in the database it returns the first of these data sets. Find(context.Context, *FindRequest) (*DataSet, error) // Get (a page of) all data sets of a given type. If no page size is given // (page <= 0) it defaults to 100. An unset page (page <= 0) defaults to the // first page. GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) // Get all descriptors that match the given request. GetDescriptors(*GetDescriptorsRequest, DataFetchService_GetDescriptorsServer) error // Search for data sets. Search(*SearchRequest, DataFetchService_SearchServer) error // Get the descriptors of the data sets that are contained in a given // category. The category can be identified by its full path or its ID where // an empty string or "/" identifies the root category (or "none-category") of // the respective model type. GetCategoryContent(*GetCategoryContentRequest, DataFetchService_GetCategoryContentServer) error // Get the full category tree for the given model type. GetCategoryTree(context.Context, *GetCategoryTreeRequest) (*CategoryTree, error) // Get possible providers for the given flow. For products these are processes // with that product on the output side and for waste flows processes with // that waste flow on the input side. For elementary flows, an empty stream is // returned. GetProvidersFor(*Ref, DataFetchService_GetProvidersForServer) error // contains filtered or unexported methods }
DataFetchServiceServer is the server API for DataFetchService service. All implementations must embed UnimplementedDataFetchServiceServer for forward compatibility
type DataFetchService_GetCategoryContentClient ¶
type DataFetchService_GetCategoryContentClient interface { Recv() (*Ref, error) grpc.ClientStream }
type DataFetchService_GetCategoryContentServer ¶
type DataFetchService_GetCategoryContentServer interface { Send(*Ref) error grpc.ServerStream }
type DataFetchService_GetDescriptorsClient ¶
type DataFetchService_GetDescriptorsClient interface { Recv() (*Ref, error) grpc.ClientStream }
type DataFetchService_GetDescriptorsServer ¶
type DataFetchService_GetDescriptorsServer interface { Send(*Ref) error grpc.ServerStream }
type DataFetchService_GetProvidersForClient ¶
type DataFetchService_GetProvidersForClient interface { Recv() (*Ref, error) grpc.ClientStream }
type DataFetchService_GetProvidersForServer ¶
type DataFetchService_GetProvidersForServer interface { Send(*Ref) error grpc.ServerStream }
type DataFetchService_SearchClient ¶
type DataFetchService_SearchClient interface { Recv() (*Ref, error) grpc.ClientStream }
type DataFetchService_SearchServer ¶
type DataFetchService_SearchServer interface { Send(*Ref) error grpc.ServerStream }
type DataSet ¶
type DataSet struct { // Types that are assignable to Model: // *DataSet_Actor // *DataSet_Category // *DataSet_Currency // *DataSet_DqSystem // *DataSet_Flow // *DataSet_FlowProperty // *DataSet_ImpactCategory // *DataSet_ImpactMethod // *DataSet_Location // *DataSet_Parameter // *DataSet_Process // *DataSet_ProductSystem // *DataSet_Project // *DataSet_SocialIndicator // *DataSet_Source // *DataSet_UnitGroup Model isDataSet_Model `protobuf_oneof:"model"` // contains filtered or unexported fields }
func (*DataSet) Descriptor
deprecated
func (*DataSet) GetCategory ¶
func (*DataSet) GetCurrency ¶
func (*DataSet) GetDqSystem ¶
func (*DataSet) GetFlowProperty ¶
func (x *DataSet) GetFlowProperty() *FlowProperty
func (*DataSet) GetImpactCategory ¶
func (x *DataSet) GetImpactCategory() *ImpactCategory
func (*DataSet) GetImpactMethod ¶
func (x *DataSet) GetImpactMethod() *ImpactMethod
func (*DataSet) GetLocation ¶
func (*DataSet) GetParameter ¶
func (*DataSet) GetProcess ¶
func (*DataSet) GetProductSystem ¶
func (x *DataSet) GetProductSystem() *ProductSystem
func (*DataSet) GetProject ¶
func (*DataSet) GetSocialIndicator ¶
func (x *DataSet) GetSocialIndicator() *SocialIndicator
func (*DataSet) GetUnitGroup ¶
func (*DataSet) ProtoMessage ¶
func (*DataSet) ProtoMessage()
func (*DataSet) ProtoReflect ¶
func (x *DataSet) ProtoReflect() protoreflect.Message
type DataSet_Actor ¶
type DataSet_Actor struct {
Actor *Actor `protobuf:"bytes,1,opt,name=actor,proto3,oneof"`
}
type DataSet_Category ¶
type DataSet_Category struct {
Category *Category `protobuf:"bytes,2,opt,name=category,proto3,oneof"`
}
type DataSet_Currency ¶
type DataSet_Currency struct {
Currency *Currency `protobuf:"bytes,3,opt,name=currency,proto3,oneof"`
}
type DataSet_DqSystem ¶
type DataSet_DqSystem struct {
DqSystem *DQSystem `protobuf:"bytes,4,opt,name=dq_system,json=dqSystem,proto3,oneof"`
}
type DataSet_Flow ¶
type DataSet_Flow struct {
Flow *Flow `protobuf:"bytes,5,opt,name=flow,proto3,oneof"`
}
type DataSet_FlowProperty ¶
type DataSet_FlowProperty struct {
FlowProperty *FlowProperty `protobuf:"bytes,6,opt,name=flow_property,json=flowProperty,proto3,oneof"`
}
type DataSet_ImpactCategory ¶
type DataSet_ImpactCategory struct {
ImpactCategory *ImpactCategory `protobuf:"bytes,7,opt,name=impact_category,json=impactCategory,proto3,oneof"`
}
type DataSet_ImpactMethod ¶
type DataSet_ImpactMethod struct {
ImpactMethod *ImpactMethod `protobuf:"bytes,8,opt,name=impact_method,json=impactMethod,proto3,oneof"`
}
type DataSet_Location ¶
type DataSet_Location struct {
Location *Location `protobuf:"bytes,9,opt,name=location,proto3,oneof"`
}
type DataSet_Parameter ¶
type DataSet_Parameter struct {
Parameter *Parameter `protobuf:"bytes,10,opt,name=parameter,proto3,oneof"`
}
type DataSet_Process ¶
type DataSet_Process struct {
Process *Process `protobuf:"bytes,11,opt,name=process,proto3,oneof"`
}
type DataSet_ProductSystem ¶
type DataSet_ProductSystem struct {
ProductSystem *ProductSystem `protobuf:"bytes,12,opt,name=product_system,json=productSystem,proto3,oneof"`
}
type DataSet_Project ¶
type DataSet_Project struct {
Project *Project `protobuf:"bytes,13,opt,name=project,proto3,oneof"`
}
type DataSet_SocialIndicator ¶
type DataSet_SocialIndicator struct {
SocialIndicator *SocialIndicator `protobuf:"bytes,14,opt,name=social_indicator,json=socialIndicator,proto3,oneof"`
}
type DataSet_Source ¶
type DataSet_Source struct {
Source *Source `protobuf:"bytes,15,opt,name=source,proto3,oneof"`
}
type DataSet_UnitGroup ¶
type DataSet_UnitGroup struct {
UnitGroup *UnitGroup `protobuf:"bytes,16,opt,name=unit_group,json=unitGroup,proto3,oneof"`
}
type DataUpdateServiceClient ¶
type DataUpdateServiceClient interface { // Inserts or updates the given data set in the database. Returns the data // set reference of the inserted or updated data set. Put(ctx context.Context, in *DataSet, opts ...grpc.CallOption) (*Ref, error) // Deletes the object with the ID and type of the request message from the // database. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a new product system. CreateProductSystem(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*Ref, error) }
DataUpdateServiceClient is the client API for DataUpdateService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDataUpdateServiceClient ¶
func NewDataUpdateServiceClient(cc grpc.ClientConnInterface) DataUpdateServiceClient
type DataUpdateServiceServer ¶
type DataUpdateServiceServer interface { // Inserts or updates the given data set in the database. Returns the data // set reference of the inserted or updated data set. Put(context.Context, *DataSet) (*Ref, error) // Deletes the object with the ID and type of the request message from the // database. Delete(context.Context, *DeleteRequest) (*empty.Empty, error) // Creates a new product system. CreateProductSystem(context.Context, *CreateSystemRequest) (*Ref, error) // contains filtered or unexported methods }
DataUpdateServiceServer is the server API for DataUpdateService service. All implementations must embed UnimplementedDataUpdateServiceServer for forward compatibility
type DeleteRequest ¶
type DeleteRequest struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) GetModelType ¶
func (x *DeleteRequest) GetModelType() ModelType
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type EntityType ¶
type EntityType int32
This enumeration type is added for compatibility with the @type attribute of the openLCA JSON-LD format. In the proto messages we limit its usage to instances of CategorizedEntity and Ref while it is allowed for every type in the JSON-LD format. Thus, you should use ignoringUnknownFields flag when parsing openLCA JSON-LD messages with the generated proto parsers.
const ( EntityType_Undefined EntityType = 0 EntityType_Actor EntityType = 1 EntityType_Category EntityType = 2 EntityType_Currency EntityType = 3 EntityType_DQSystem EntityType = 4 EntityType_Flow EntityType = 5 EntityType_FlowProperty EntityType = 6 EntityType_ImpactCategory EntityType = 7 EntityType_ImpactMethod EntityType = 8 EntityType_Location EntityType = 9 EntityType_NwSet EntityType = 10 EntityType_Parameter EntityType = 11 EntityType_Process EntityType = 12 EntityType_ProductSystem EntityType = 13 EntityType_Project EntityType = 14 EntityType_SocialIndicator EntityType = 15 EntityType_Source EntityType = 16 EntityType_Unit EntityType = 17 EntityType_UnitGroup EntityType = 18 )
func (EntityType) Descriptor ¶
func (EntityType) Descriptor() protoreflect.EnumDescriptor
func (EntityType) Enum ¶
func (x EntityType) Enum() *EntityType
func (EntityType) EnumDescriptor
deprecated
func (EntityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EntityType.Descriptor instead.
func (EntityType) Number ¶
func (x EntityType) Number() protoreflect.EnumNumber
func (EntityType) String ¶
func (x EntityType) String() string
func (EntityType) Type ¶
func (EntityType) Type() protoreflect.EnumType
type EnviFlow ¶
type EnviFlow struct { Flow *Ref `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"` Location *Ref `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` IsInput bool `protobuf:"varint,3,opt,name=is_input,json=isInput,proto3" json:"is_input,omitempty"` // contains filtered or unexported fields }
func (*EnviFlow) Descriptor
deprecated
func (*EnviFlow) GetIsInput ¶
func (*EnviFlow) GetLocation ¶
func (*EnviFlow) ProtoMessage ¶
func (*EnviFlow) ProtoMessage()
func (*EnviFlow) ProtoReflect ¶
func (x *EnviFlow) ProtoReflect() protoreflect.Message
type Exchange ¶
type Exchange struct { // Indicates whether this exchange is an avoided product. AvoidedProduct bool `protobuf:"varint,1,opt,name=avoided_product,json=avoidedProduct,proto3" json:"avoided_product,omitempty"` // A formula for calculating the costs of this exchange. CostFormula string `protobuf:"bytes,2,opt,name=cost_formula,json=costFormula,proto3" json:"cost_formula,omitempty"` // The costs of this exchange. CostValue float64 `protobuf:"fixed64,3,opt,name=cost_value,json=costValue,proto3" json:"cost_value,omitempty"` // The currency in which the costs of this exchange are given. Currency *Ref `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` // The process internal ID of the exchange. This is used to identify // exchanges unambiguously within a process (e.g. when linking exchanges in a // product system where multiple exchanges with the same flow are allowed). // The value should be >= 1. InternalId int32 `protobuf:"varint,5,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"` // The reference to the flow of the exchange. Flow *Ref `protobuf:"bytes,6,opt,name=flow,proto3" json:"flow,omitempty"` // The quantity in which the amount is given. FlowProperty *Ref `protobuf:"bytes,7,opt,name=flow_property,json=flowProperty,proto3" json:"flow_property,omitempty"` Input bool `protobuf:"varint,8,opt,name=input,proto3" json:"input,omitempty"` // Indicates whether the exchange is the quantitative reference of the // process. QuantitativeReference bool `protobuf:"varint,9,opt,name=quantitative_reference,json=quantitativeReference,proto3" json:"quantitative_reference,omitempty"` BaseUncertainty float64 `protobuf:"fixed64,10,opt,name=base_uncertainty,json=baseUncertainty,proto3" json:"base_uncertainty,omitempty"` // A default provider is a [Process] that is linked as the provider of a // product input or the waste treatment provider of a waste output. It is // just an optional default setting which can be also ignored when building // product systems in openLCA. The user is always free to link processes in // product systems ignoring these defaults (but the flows and flow directions // have to match of course). DefaultProvider *Ref `protobuf:"bytes,11,opt,name=default_provider,json=defaultProvider,proto3" json:"default_provider,omitempty"` Amount float64 `protobuf:"fixed64,12,opt,name=amount,proto3" json:"amount,omitempty"` AmountFormula string `protobuf:"bytes,13,opt,name=amount_formula,json=amountFormula,proto3" json:"amount_formula,omitempty"` Unit *Ref `protobuf:"bytes,14,opt,name=unit,proto3" json:"unit,omitempty"` // A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data // quality values that need to match the data quality scheme for flow inputs // and outputs that is assigned to the [Process]. In such a scheme the data // quality indicators have fixed positions and the respective values in the // `dqEntry` vector map to these positions. DqEntry string `protobuf:"bytes,15,opt,name=dq_entry,json=dqEntry,proto3" json:"dq_entry,omitempty"` Uncertainty *Uncertainty `protobuf:"bytes,16,opt,name=uncertainty,proto3" json:"uncertainty,omitempty"` // A general comment about the input or output. Description string `protobuf:"bytes,17,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
An Exchange is an input or output of a Flow in a Process. The amount of an exchange is given in a specific unit of a quantity (FlowProperty) of the flow. The allowed units and flow properties that can be used for a flow in an exchange are defined by the flow property information in that flow (see also the FlowPropertyFactor type).
func (*Exchange) Descriptor
deprecated
func (*Exchange) GetAmountFormula ¶
func (*Exchange) GetAvoidedProduct ¶
func (*Exchange) GetBaseUncertainty ¶
func (*Exchange) GetCostFormula ¶
func (*Exchange) GetCostValue ¶
func (*Exchange) GetCurrency ¶
func (*Exchange) GetDefaultProvider ¶
func (*Exchange) GetDescription ¶
func (*Exchange) GetDqEntry ¶
func (*Exchange) GetFlowProperty ¶
func (*Exchange) GetInternalId ¶
func (*Exchange) GetQuantitativeReference ¶
func (*Exchange) GetUncertainty ¶
func (x *Exchange) GetUncertainty() *Uncertainty
func (*Exchange) ProtoMessage ¶
func (*Exchange) ProtoMessage()
func (*Exchange) ProtoReflect ¶
func (x *Exchange) ProtoReflect() protoreflect.Message
type ExchangeRef ¶
type ExchangeRef struct { // The internal ID of the exchange. InternalId int32 `protobuf:"varint,1,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"` // contains filtered or unexported fields }
An instance of this class describes a reference to an exchange in a process. When we reference such an exchange we only need the information to indentify that exchange unambiguously in a process.
func (*ExchangeRef) Descriptor
deprecated
func (*ExchangeRef) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRef.ProtoReflect.Descriptor instead.
func (*ExchangeRef) GetInternalId ¶
func (x *ExchangeRef) GetInternalId() int32
func (*ExchangeRef) ProtoMessage ¶
func (*ExchangeRef) ProtoMessage()
func (*ExchangeRef) ProtoReflect ¶
func (x *ExchangeRef) ProtoReflect() protoreflect.Message
func (*ExchangeRef) Reset ¶
func (x *ExchangeRef) Reset()
func (*ExchangeRef) String ¶
func (x *ExchangeRef) String() string
type FindRequest ¶
type FindRequest struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // Types that are assignable to By: // *FindRequest_Id // *FindRequest_Name By isFindRequest_By `protobuf_oneof:"by"` // contains filtered or unexported fields }
func (*FindRequest) Descriptor
deprecated
func (*FindRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindRequest.ProtoReflect.Descriptor instead.
func (*FindRequest) GetBy ¶
func (m *FindRequest) GetBy() isFindRequest_By
func (*FindRequest) GetId ¶
func (x *FindRequest) GetId() string
func (*FindRequest) GetModelType ¶
func (x *FindRequest) GetModelType() ModelType
func (*FindRequest) GetName ¶
func (x *FindRequest) GetName() string
func (*FindRequest) ProtoMessage ¶
func (*FindRequest) ProtoMessage()
func (*FindRequest) ProtoReflect ¶
func (x *FindRequest) ProtoReflect() protoreflect.Message
func (*FindRequest) Reset ¶
func (x *FindRequest) Reset()
func (*FindRequest) String ¶
func (x *FindRequest) String() string
type FindRequest_Id ¶
type FindRequest_Id struct {
Id string `protobuf:"bytes,2,opt,name=id,proto3,oneof"`
}
type FindRequest_Name ¶
type FindRequest_Name struct {
Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}
type Flow ¶
type Flow struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The type of the flow. Note that this type is more a descriptor of how the // flow is handled in calculations. FlowType FlowType `protobuf:"varint,10,opt,name=flow_type,json=flowType,proto3,enum=protolca.FlowType" json:"flow_type,omitempty"` // A CAS number of the flow. Cas string `protobuf:"bytes,11,opt,name=cas,proto3" json:"cas,omitempty"` // A chemical formula of the flow. Formula string `protobuf:"bytes,12,opt,name=formula,proto3" json:"formula,omitempty"` // The flow properties (quantities) in which amounts of the flow can be // expressed together with conversion factors between these flow flow // properties. FlowProperties []*FlowPropertyFactor `protobuf:"bytes,13,rep,name=flow_properties,json=flowProperties,proto3" json:"flow_properties,omitempty"` // The location of the flow. Normally the location of a flow is defined by // the process location where the flow is an input or output. However, some // data formats define a location as a property of a flow. Location *Ref `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` // A list of synonyms but packed into a single field. Best is to use // semicolons as separator as commas are sometimes used in names of // chemicals. Synonyms string `protobuf:"bytes,15,opt,name=synonyms,proto3" json:"synonyms,omitempty"` // Indicates whether this flow describes an infrastructure product. This // field is part of the openLCA schema because of backward compatibility with // EcoSpold 1. It does not really have a meaning in openLCA and should not be // used anymore. InfrastructureFlow bool `protobuf:"varint,16,opt,name=infrastructure_flow,json=infrastructureFlow,proto3" json:"infrastructure_flow,omitempty"` // contains filtered or unexported fields }
Everything that can be an input or output of a process (e.g. a substance, a product, a waste, a service etc.)
func (*Flow) Descriptor
deprecated
func (*Flow) GetCategory ¶
func (*Flow) GetDescription ¶
func (*Flow) GetEntityType ¶
func (x *Flow) GetEntityType() EntityType
func (*Flow) GetFlowProperties ¶
func (x *Flow) GetFlowProperties() []*FlowPropertyFactor
func (*Flow) GetFlowType ¶
func (*Flow) GetFormula ¶
func (*Flow) GetInfrastructureFlow ¶
func (*Flow) GetLastChange ¶
func (*Flow) GetLibrary ¶
func (*Flow) GetLocation ¶
func (*Flow) GetSynonyms ¶
func (*Flow) GetVersion ¶
func (*Flow) ProtoMessage ¶
func (*Flow) ProtoMessage()
func (*Flow) ProtoReflect ¶
func (x *Flow) ProtoReflect() protoreflect.Message
type FlowMap ¶
type FlowMap struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The reference (id, name, description) of the source flow list. Source *Ref `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"` // The reference (id, name, description) of the target flow list. Target *Ref `protobuf:"bytes,7,opt,name=target,proto3" json:"target,omitempty"` // A list of flow mappings from flows in a source flow list to flows in a // target flow list. Mappings []*FlowMapEntry `protobuf:"bytes,8,rep,name=mappings,proto3" json:"mappings,omitempty"` // contains filtered or unexported fields }
A crosswalk of flows from a source flow list to a target flow list.
func (*FlowMap) Descriptor
deprecated
func (*FlowMap) GetDescription ¶
func (*FlowMap) GetLastChange ¶
func (*FlowMap) GetMappings ¶
func (x *FlowMap) GetMappings() []*FlowMapEntry
func (*FlowMap) GetVersion ¶
func (*FlowMap) ProtoMessage ¶
func (*FlowMap) ProtoMessage()
func (*FlowMap) ProtoReflect ¶
func (x *FlowMap) ProtoReflect() protoreflect.Message
type FlowMapEntry ¶
type FlowMapEntry struct { // Describes the source flow of the mapping. From *FlowMapRef `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // Describes the target of the mapping. To *FlowMapRef `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // The conversion factor to convert the amount of 1 unit of the source flow // into the corresponding quantity of the target flow. ConversionFactor float64 `protobuf:"fixed64,3,opt,name=conversion_factor,json=conversionFactor,proto3" json:"conversion_factor,omitempty"` // contains filtered or unexported fields }
A mapping from a source flow to a target flow.
func (*FlowMapEntry) Descriptor
deprecated
func (*FlowMapEntry) Descriptor() ([]byte, []int)
Deprecated: Use FlowMapEntry.ProtoReflect.Descriptor instead.
func (*FlowMapEntry) GetConversionFactor ¶
func (x *FlowMapEntry) GetConversionFactor() float64
func (*FlowMapEntry) GetFrom ¶
func (x *FlowMapEntry) GetFrom() *FlowMapRef
func (*FlowMapEntry) GetTo ¶
func (x *FlowMapEntry) GetTo() *FlowMapRef
func (*FlowMapEntry) ProtoMessage ¶
func (*FlowMapEntry) ProtoMessage()
func (*FlowMapEntry) ProtoReflect ¶
func (x *FlowMapEntry) ProtoReflect() protoreflect.Message
func (*FlowMapEntry) Reset ¶
func (x *FlowMapEntry) Reset()
func (*FlowMapEntry) String ¶
func (x *FlowMapEntry) String() string
type FlowMapInfo ¶
type FlowMapInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*FlowMapInfo) Descriptor
deprecated
func (*FlowMapInfo) Descriptor() ([]byte, []int)
Deprecated: Use FlowMapInfo.ProtoReflect.Descriptor instead.
func (*FlowMapInfo) GetName ¶
func (x *FlowMapInfo) GetName() string
func (*FlowMapInfo) ProtoMessage ¶
func (*FlowMapInfo) ProtoMessage()
func (*FlowMapInfo) ProtoReflect ¶
func (x *FlowMapInfo) ProtoReflect() protoreflect.Message
func (*FlowMapInfo) Reset ¶
func (x *FlowMapInfo) Reset()
func (*FlowMapInfo) String ¶
func (x *FlowMapInfo) String() string
type FlowMapRef ¶
type FlowMapRef struct { // The reference to the flow data set. Flow *Ref `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"` // An optional reference to a flow property of the flow for which the mapping // is valid. FlowProperty *Ref `protobuf:"bytes,2,opt,name=flow_property,json=flowProperty,proto3" json:"flow_property,omitempty"` // An optional reference to a unit of the flow for which the mapping is valid Unit *Ref `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` // In case of a product or waste flow a flow mapping can contain a provider // which is the process that produces the product or a waste treatment // process that consumes the waste flow. This is useful when we want to apply // mappings of product and waste flows on databases and link them in the // corresponding processes and product systems. Provider *Ref `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
Describes a source or target flow in a `FlowMappingEntry` of a `FlowMap`. Such a flow reference can also optionally specify the unit and flow property (quantity) for which the mapping is valid. If the unit or quantity is not given, the mapping is based on the respective reference unit and reference flow property of the flow.
func (*FlowMapRef) Descriptor
deprecated
func (*FlowMapRef) Descriptor() ([]byte, []int)
Deprecated: Use FlowMapRef.ProtoReflect.Descriptor instead.
func (*FlowMapRef) GetFlow ¶
func (x *FlowMapRef) GetFlow() *Ref
func (*FlowMapRef) GetFlowProperty ¶
func (x *FlowMapRef) GetFlowProperty() *Ref
func (*FlowMapRef) GetProvider ¶
func (x *FlowMapRef) GetProvider() *Ref
func (*FlowMapRef) GetUnit ¶
func (x *FlowMapRef) GetUnit() *Ref
func (*FlowMapRef) ProtoMessage ¶
func (*FlowMapRef) ProtoMessage()
func (*FlowMapRef) ProtoReflect ¶
func (x *FlowMapRef) ProtoReflect() protoreflect.Message
func (*FlowMapRef) Reset ¶
func (x *FlowMapRef) Reset()
func (*FlowMapRef) String ¶
func (x *FlowMapRef) String() string
type FlowMapServiceClient ¶
type FlowMapServiceClient interface { // Delete the flow map with the given name. Delete(ctx context.Context, in *FlowMapInfo, opts ...grpc.CallOption) (*empty.Empty, error) // Get the flow map with the given name form the database. Get(ctx context.Context, in *FlowMapInfo, opts ...grpc.CallOption) (*FlowMap, error) // Get the information (basically just the names) of all flow maps that are // available in the database. GetAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (FlowMapService_GetAllClient, error) // Inserts the given flow map into the database. It overwrites an existing // flow map if there is a flow map with the same name already available in the // database. Put(ctx context.Context, in *FlowMap, opts ...grpc.CallOption) (*empty.Empty, error) }
FlowMapServiceClient is the client API for FlowMapService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFlowMapServiceClient ¶
func NewFlowMapServiceClient(cc grpc.ClientConnInterface) FlowMapServiceClient
type FlowMapServiceServer ¶
type FlowMapServiceServer interface { // Delete the flow map with the given name. Delete(context.Context, *FlowMapInfo) (*empty.Empty, error) // Get the flow map with the given name form the database. Get(context.Context, *FlowMapInfo) (*FlowMap, error) // Get the information (basically just the names) of all flow maps that are // available in the database. GetAll(*empty.Empty, FlowMapService_GetAllServer) error // Inserts the given flow map into the database. It overwrites an existing // flow map if there is a flow map with the same name already available in the // database. Put(context.Context, *FlowMap) (*empty.Empty, error) // contains filtered or unexported methods }
FlowMapServiceServer is the server API for FlowMapService service. All implementations must embed UnimplementedFlowMapServiceServer for forward compatibility
type FlowMapService_GetAllClient ¶
type FlowMapService_GetAllClient interface { Recv() (*FlowMapInfo, error) grpc.ClientStream }
type FlowMapService_GetAllServer ¶
type FlowMapService_GetAllServer interface { Send(*FlowMapInfo) error grpc.ServerStream }
type FlowProperty ¶
type FlowProperty struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The type of the flow property FlowPropertyType FlowPropertyType `` /* 144-byte string literal not displayed */ // The units of measure that can be used to express quantities of the flow // property. UnitGroup *Ref `protobuf:"bytes,11,opt,name=unit_group,json=unitGroup,proto3" json:"unit_group,omitempty"` // contains filtered or unexported fields }
A flow property is a quantity that can be used to express amounts of a flow.
func (*FlowProperty) Descriptor
deprecated
func (*FlowProperty) Descriptor() ([]byte, []int)
Deprecated: Use FlowProperty.ProtoReflect.Descriptor instead.
func (*FlowProperty) GetCategory ¶
func (x *FlowProperty) GetCategory() *Ref
func (*FlowProperty) GetDescription ¶
func (x *FlowProperty) GetDescription() string
func (*FlowProperty) GetEntityType ¶
func (x *FlowProperty) GetEntityType() EntityType
func (*FlowProperty) GetFlowPropertyType ¶
func (x *FlowProperty) GetFlowPropertyType() FlowPropertyType
func (*FlowProperty) GetId ¶
func (x *FlowProperty) GetId() string
func (*FlowProperty) GetLastChange ¶
func (x *FlowProperty) GetLastChange() string
func (*FlowProperty) GetLibrary ¶
func (x *FlowProperty) GetLibrary() string
func (*FlowProperty) GetName ¶
func (x *FlowProperty) GetName() string
func (*FlowProperty) GetTags ¶
func (x *FlowProperty) GetTags() []string
func (*FlowProperty) GetUnitGroup ¶
func (x *FlowProperty) GetUnitGroup() *Ref
func (*FlowProperty) GetVersion ¶
func (x *FlowProperty) GetVersion() string
func (*FlowProperty) ProtoMessage ¶
func (*FlowProperty) ProtoMessage()
func (*FlowProperty) ProtoReflect ¶
func (x *FlowProperty) ProtoReflect() protoreflect.Message
func (*FlowProperty) Reset ¶
func (x *FlowProperty) Reset()
func (*FlowProperty) String ¶
func (x *FlowProperty) String() string
type FlowPropertyFactor ¶
type FlowPropertyFactor struct { // The flow property (quantity) of the factor. FlowProperty *Ref `protobuf:"bytes,1,opt,name=flow_property,json=flowProperty,proto3" json:"flow_property,omitempty"` // The value of the conversion factor. ConversionFactor float64 `protobuf:"fixed64,2,opt,name=conversion_factor,json=conversionFactor,proto3" json:"conversion_factor,omitempty"` // Indicates whether the flow property of the factor is the reference flow // property of the flow. The reference flow property must have a conversion // factor of 1.0 and there should be only one reference flow property. ReferenceFlowProperty bool `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
A FlowPropertyFactor is a conversion factor between <a href="./FlowProperty.html">flow properties (quantities)</a> of a <a href="./Flow.html">flow</a>. As an example the amount of the flow 'water' in a process could be expressed in 'kg' mass or 'm3' volume. In this case the flow water would have two flow property factors: one for the flow property 'mass' and one for 'volume'. Each of these flow properties has a reference to a <a href="./UnitGroup.html">unit group</a> which again has a reference unit. In the example the flow property 'mass' could reference the unit group 'units of mass' with 'kg' as reference unit and volume could reference the unit group 'units of volume' with 'm3' as reference unit. The flow property factor is now the conversion factor between these two reference units where the factor of the reference flow property of the flow is 1. If the reference flow property of 'water' in the example would be 'mass' the respective flow property factor would be 1 and the factor for 'volume' would be 0.001 (as 1 kg water is 0.001 m3). The amount of water in a process can now be also given in liter, tons, grams etc. For this, the unit conversion factor of the respective unit group can be used to convert into the reference unit (which then can be used to convert to the reference unit of another flow property). Another thing to note is that different flow properties can refer to the same unit group (e.g. MJ upper calorific value and MJ lower calorific value.)
func (*FlowPropertyFactor) Descriptor
deprecated
func (*FlowPropertyFactor) Descriptor() ([]byte, []int)
Deprecated: Use FlowPropertyFactor.ProtoReflect.Descriptor instead.
func (*FlowPropertyFactor) GetConversionFactor ¶
func (x *FlowPropertyFactor) GetConversionFactor() float64
func (*FlowPropertyFactor) GetFlowProperty ¶
func (x *FlowPropertyFactor) GetFlowProperty() *Ref
func (*FlowPropertyFactor) GetReferenceFlowProperty ¶
func (x *FlowPropertyFactor) GetReferenceFlowProperty() bool
func (*FlowPropertyFactor) ProtoMessage ¶
func (*FlowPropertyFactor) ProtoMessage()
func (*FlowPropertyFactor) ProtoReflect ¶
func (x *FlowPropertyFactor) ProtoReflect() protoreflect.Message
func (*FlowPropertyFactor) Reset ¶
func (x *FlowPropertyFactor) Reset()
func (*FlowPropertyFactor) String ¶
func (x *FlowPropertyFactor) String() string
type FlowPropertyType ¶
type FlowPropertyType int32
An enumeration of flow property types.
const ( // This default option was added automatically // and means that no values was set. FlowPropertyType_UNDEFINED_FLOW_PROPERTY_TYPE FlowPropertyType = 0 FlowPropertyType_ECONOMIC_QUANTITY FlowPropertyType = 1 FlowPropertyType_PHYSICAL_QUANTITY FlowPropertyType = 2 )
func (FlowPropertyType) Descriptor ¶
func (FlowPropertyType) Descriptor() protoreflect.EnumDescriptor
func (FlowPropertyType) Enum ¶
func (x FlowPropertyType) Enum() *FlowPropertyType
func (FlowPropertyType) EnumDescriptor
deprecated
func (FlowPropertyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlowPropertyType.Descriptor instead.
func (FlowPropertyType) Number ¶
func (x FlowPropertyType) Number() protoreflect.EnumNumber
func (FlowPropertyType) String ¶
func (x FlowPropertyType) String() string
func (FlowPropertyType) Type ¶
func (FlowPropertyType) Type() protoreflect.EnumType
type FlowResult ¶
type FlowResult struct { // The flow reference. Flow *Ref `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"` // Indicates whether the flow is an input or not. Input bool `protobuf:"varint,2,opt,name=input,proto3" json:"input,omitempty"` // The value of the flow amount. Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // The (reference to the) location of this flow result in case of a // regionalized result. Location *Ref `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
A result value for a flow; given in the reference unit of the flow.
func (*FlowResult) Descriptor
deprecated
func (*FlowResult) Descriptor() ([]byte, []int)
Deprecated: Use FlowResult.ProtoReflect.Descriptor instead.
func (*FlowResult) GetFlow ¶
func (x *FlowResult) GetFlow() *Ref
func (*FlowResult) GetInput ¶
func (x *FlowResult) GetInput() bool
func (*FlowResult) GetLocation ¶
func (x *FlowResult) GetLocation() *Ref
func (*FlowResult) GetValue ¶
func (x *FlowResult) GetValue() float64
func (*FlowResult) ProtoMessage ¶
func (*FlowResult) ProtoMessage()
func (*FlowResult) ProtoReflect ¶
func (x *FlowResult) ProtoReflect() protoreflect.Message
func (*FlowResult) Reset ¶
func (x *FlowResult) Reset()
func (*FlowResult) String ¶
func (x *FlowResult) String() string
type FlowType ¶
type FlowType int32
The basic flow types.
func (FlowType) Descriptor ¶
func (FlowType) Descriptor() protoreflect.EnumDescriptor
func (FlowType) EnumDescriptor
deprecated
func (FlowType) Number ¶
func (x FlowType) Number() protoreflect.EnumNumber
func (FlowType) Type ¶
func (FlowType) Type() protoreflect.EnumType
type GetAllRequest ¶
type GetAllRequest struct { // The type of the requested data sets. ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // The number of data sets that should be returned per response page (defaults // to 100) PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Paging is optional and all data sets of the requested type are returned // when the `skip_paging` property is set to true. // // Types that are assignable to Paging: // *GetAllRequest_Page // *GetAllRequest_SkipPaging Paging isGetAllRequest_Paging `protobuf_oneof:"paging"` // contains filtered or unexported fields }
The request message for getting all data sets of a given type from the database. As there can be thousands of data set of that type in the database the response is paged by default. Unless specified otherwise, the first page with the first 100 data sets is returned by default.
func (*GetAllRequest) Descriptor
deprecated
func (*GetAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.
func (*GetAllRequest) GetModelType ¶
func (x *GetAllRequest) GetModelType() ModelType
func (*GetAllRequest) GetPage ¶
func (x *GetAllRequest) GetPage() int32
func (*GetAllRequest) GetPageSize ¶
func (x *GetAllRequest) GetPageSize() int32
func (*GetAllRequest) GetPaging ¶
func (m *GetAllRequest) GetPaging() isGetAllRequest_Paging
func (*GetAllRequest) GetSkipPaging ¶
func (x *GetAllRequest) GetSkipPaging() bool
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) ProtoReflect ¶
func (x *GetAllRequest) ProtoReflect() protoreflect.Message
func (*GetAllRequest) Reset ¶
func (x *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (x *GetAllRequest) String() string
type GetAllRequest_Page ¶
type GetAllRequest_Page struct { // The requested page of the data set (defaults to 1). Page int32 `protobuf:"varint,3,opt,name=page,proto3,oneof"` }
type GetAllRequest_SkipPaging ¶
type GetAllRequest_SkipPaging struct { // If set to true, all data sets of the given type will be returned in a // single response. SkipPaging bool `protobuf:"varint,4,opt,name=skip_paging,json=skipPaging,proto3,oneof"` }
type GetAllResponse ¶
type GetAllResponse struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` DataSet []*DataSet `protobuf:"bytes,5,rep,name=data_set,json=dataSet,proto3" json:"data_set,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetDataSet ¶
func (x *GetAllResponse) GetDataSet() []*DataSet
func (*GetAllResponse) GetModelType ¶
func (x *GetAllResponse) GetModelType() ModelType
func (*GetAllResponse) GetPage ¶
func (x *GetAllResponse) GetPage() int32
func (*GetAllResponse) GetPageSize ¶
func (x *GetAllResponse) GetPageSize() int32
func (*GetAllResponse) GetTotalCount ¶
func (x *GetAllResponse) GetTotalCount() int32
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) ProtoReflect ¶
func (x *GetAllResponse) ProtoReflect() protoreflect.Message
func (*GetAllResponse) Reset ¶
func (x *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (x *GetAllResponse) String() string
type GetCategoryContentRequest ¶
type GetCategoryContentRequest struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryContentRequest) Descriptor
deprecated
func (*GetCategoryContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryContentRequest.ProtoReflect.Descriptor instead.
func (*GetCategoryContentRequest) GetCategory ¶
func (x *GetCategoryContentRequest) GetCategory() string
func (*GetCategoryContentRequest) GetModelType ¶
func (x *GetCategoryContentRequest) GetModelType() ModelType
func (*GetCategoryContentRequest) ProtoMessage ¶
func (*GetCategoryContentRequest) ProtoMessage()
func (*GetCategoryContentRequest) ProtoReflect ¶
func (x *GetCategoryContentRequest) ProtoReflect() protoreflect.Message
func (*GetCategoryContentRequest) Reset ¶
func (x *GetCategoryContentRequest) Reset()
func (*GetCategoryContentRequest) String ¶
func (x *GetCategoryContentRequest) String() string
type GetCategoryTreeRequest ¶
type GetCategoryTreeRequest struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryTreeRequest) Descriptor
deprecated
func (*GetCategoryTreeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryTreeRequest.ProtoReflect.Descriptor instead.
func (*GetCategoryTreeRequest) GetModelType ¶
func (x *GetCategoryTreeRequest) GetModelType() ModelType
func (*GetCategoryTreeRequest) ProtoMessage ¶
func (*GetCategoryTreeRequest) ProtoMessage()
func (*GetCategoryTreeRequest) ProtoReflect ¶
func (x *GetCategoryTreeRequest) ProtoReflect() protoreflect.Message
func (*GetCategoryTreeRequest) Reset ¶
func (x *GetCategoryTreeRequest) Reset()
func (*GetCategoryTreeRequest) String ¶
func (x *GetCategoryTreeRequest) String() string
type GetDescriptorsRequest ¶
type GetDescriptorsRequest struct { // The model type of the requested descriptor(s). ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // Types that are assignable to By: // *GetDescriptorsRequest_Id // *GetDescriptorsRequest_Attributes_ By isGetDescriptorsRequest_By `protobuf_oneof:"by"` // contains filtered or unexported fields }
func (*GetDescriptorsRequest) Descriptor
deprecated
func (*GetDescriptorsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDescriptorsRequest.ProtoReflect.Descriptor instead.
func (*GetDescriptorsRequest) GetAttributes ¶
func (x *GetDescriptorsRequest) GetAttributes() *GetDescriptorsRequest_Attributes
func (*GetDescriptorsRequest) GetBy ¶
func (m *GetDescriptorsRequest) GetBy() isGetDescriptorsRequest_By
func (*GetDescriptorsRequest) GetId ¶
func (x *GetDescriptorsRequest) GetId() string
func (*GetDescriptorsRequest) GetModelType ¶
func (x *GetDescriptorsRequest) GetModelType() ModelType
func (*GetDescriptorsRequest) ProtoMessage ¶
func (*GetDescriptorsRequest) ProtoMessage()
func (*GetDescriptorsRequest) ProtoReflect ¶
func (x *GetDescriptorsRequest) ProtoReflect() protoreflect.Message
func (*GetDescriptorsRequest) Reset ¶
func (x *GetDescriptorsRequest) Reset()
func (*GetDescriptorsRequest) String ¶
func (x *GetDescriptorsRequest) String() string
type GetDescriptorsRequest_Attributes ¶
type GetDescriptorsRequest_Attributes struct { // The name of the requested descriptor(s). Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The ID or full path of the category. The string "/" identifies the root // or none-category which means that this will filter for descriptors that // do not have a specific category set. Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*GetDescriptorsRequest_Attributes) Descriptor
deprecated
func (*GetDescriptorsRequest_Attributes) Descriptor() ([]byte, []int)
Deprecated: Use GetDescriptorsRequest_Attributes.ProtoReflect.Descriptor instead.
func (*GetDescriptorsRequest_Attributes) GetCategory ¶
func (x *GetDescriptorsRequest_Attributes) GetCategory() string
func (*GetDescriptorsRequest_Attributes) GetName ¶
func (x *GetDescriptorsRequest_Attributes) GetName() string
func (*GetDescriptorsRequest_Attributes) ProtoMessage ¶
func (*GetDescriptorsRequest_Attributes) ProtoMessage()
func (*GetDescriptorsRequest_Attributes) ProtoReflect ¶
func (x *GetDescriptorsRequest_Attributes) ProtoReflect() protoreflect.Message
func (*GetDescriptorsRequest_Attributes) Reset ¶
func (x *GetDescriptorsRequest_Attributes) Reset()
func (*GetDescriptorsRequest_Attributes) String ¶
func (x *GetDescriptorsRequest_Attributes) String() string
type GetDescriptorsRequest_Attributes_ ¶
type GetDescriptorsRequest_Attributes_ struct {
Attributes *GetDescriptorsRequest_Attributes `protobuf:"bytes,3,opt,name=attributes,proto3,oneof"`
}
type GetDescriptorsRequest_Id ¶
type GetDescriptorsRequest_Id struct { // The ID of the requested descriptor. Setting this field means that you // typically want one specific descriptor. Id string `protobuf:"bytes,2,opt,name=id,proto3,oneof"` }
type GetRequest ¶
type GetRequest struct { ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) GetModelType ¶
func (x *GetRequest) GetModelType() ModelType
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type ImpactCategory ¶
type ImpactCategory struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The name of the reference unit of the LCIA category (e.g. kg CO2-eq.). ReferenceUnitName string `protobuf:"bytes,10,opt,name=reference_unit_name,json=referenceUnitName,proto3" json:"reference_unit_name,omitempty"` // A set of parameters which can be used in formulas of the characterisation // factors in this impact category. Parameters []*Parameter `protobuf:"bytes,11,rep,name=parameters,proto3" json:"parameters,omitempty"` // The characterisation factors of the LCIA category. ImpactFactors []*ImpactFactor `protobuf:"bytes,12,rep,name=impact_factors,json=impactFactors,proto3" json:"impact_factors,omitempty"` // contains filtered or unexported fields }
func (*ImpactCategory) Descriptor
deprecated
func (*ImpactCategory) Descriptor() ([]byte, []int)
Deprecated: Use ImpactCategory.ProtoReflect.Descriptor instead.
func (*ImpactCategory) GetCategory ¶
func (x *ImpactCategory) GetCategory() *Ref
func (*ImpactCategory) GetDescription ¶
func (x *ImpactCategory) GetDescription() string
func (*ImpactCategory) GetEntityType ¶
func (x *ImpactCategory) GetEntityType() EntityType
func (*ImpactCategory) GetId ¶
func (x *ImpactCategory) GetId() string
func (*ImpactCategory) GetImpactFactors ¶
func (x *ImpactCategory) GetImpactFactors() []*ImpactFactor
func (*ImpactCategory) GetLastChange ¶
func (x *ImpactCategory) GetLastChange() string
func (*ImpactCategory) GetLibrary ¶
func (x *ImpactCategory) GetLibrary() string
func (*ImpactCategory) GetName ¶
func (x *ImpactCategory) GetName() string
func (*ImpactCategory) GetParameters ¶
func (x *ImpactCategory) GetParameters() []*Parameter
func (*ImpactCategory) GetReferenceUnitName ¶
func (x *ImpactCategory) GetReferenceUnitName() string
func (*ImpactCategory) GetTags ¶
func (x *ImpactCategory) GetTags() []string
func (*ImpactCategory) GetVersion ¶
func (x *ImpactCategory) GetVersion() string
func (*ImpactCategory) ProtoMessage ¶
func (*ImpactCategory) ProtoMessage()
func (*ImpactCategory) ProtoReflect ¶
func (x *ImpactCategory) ProtoReflect() protoreflect.Message
func (*ImpactCategory) Reset ¶
func (x *ImpactCategory) Reset()
func (*ImpactCategory) String ¶
func (x *ImpactCategory) String() string
type ImpactFactor ¶
type ImpactFactor struct { // The [Flow] of the impact assessment factor. Flow *Ref `protobuf:"bytes,1,opt,name=flow,proto3" json:"flow,omitempty"` // In case of a regionalized impact category, this field can contain the // location for which this factor is valid. Location *Ref `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` // The quantity of the flow to which the LCIA factor is related (e.g. Mass). FlowProperty *Ref `protobuf:"bytes,3,opt,name=flow_property,json=flowProperty,proto3" json:"flow_property,omitempty"` // The flow unit to which the LCIA factor is related (e.g. kg). Unit *Ref `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"` // The value of the impact assessment factor. Value float64 `protobuf:"fixed64,5,opt,name=value,proto3" json:"value,omitempty"` // A mathematical formula for calculating the value of the LCIA factor. Formula string `protobuf:"bytes,6,opt,name=formula,proto3" json:"formula,omitempty"` // The uncertainty distribution of the factors' value. Uncertainty *Uncertainty `protobuf:"bytes,7,opt,name=uncertainty,proto3" json:"uncertainty,omitempty"` // contains filtered or unexported fields }
A single characterisation factor of a LCIA category for a flow.
func (*ImpactFactor) Descriptor
deprecated
func (*ImpactFactor) Descriptor() ([]byte, []int)
Deprecated: Use ImpactFactor.ProtoReflect.Descriptor instead.
func (*ImpactFactor) GetFlow ¶
func (x *ImpactFactor) GetFlow() *Ref
func (*ImpactFactor) GetFlowProperty ¶
func (x *ImpactFactor) GetFlowProperty() *Ref
func (*ImpactFactor) GetFormula ¶
func (x *ImpactFactor) GetFormula() string
func (*ImpactFactor) GetLocation ¶
func (x *ImpactFactor) GetLocation() *Ref
func (*ImpactFactor) GetUncertainty ¶
func (x *ImpactFactor) GetUncertainty() *Uncertainty
func (*ImpactFactor) GetUnit ¶
func (x *ImpactFactor) GetUnit() *Ref
func (*ImpactFactor) GetValue ¶
func (x *ImpactFactor) GetValue() float64
func (*ImpactFactor) ProtoMessage ¶
func (*ImpactFactor) ProtoMessage()
func (*ImpactFactor) ProtoReflect ¶
func (x *ImpactFactor) ProtoReflect() protoreflect.Message
func (*ImpactFactor) Reset ¶
func (x *ImpactFactor) Reset()
func (*ImpactFactor) String ¶
func (x *ImpactFactor) String() string
type ImpactFactorRequest ¶
type ImpactFactorRequest struct { Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` Indicator *Ref `protobuf:"bytes,2,opt,name=indicator,proto3" json:"indicator,omitempty"` Flow *EnviFlow `protobuf:"bytes,3,opt,name=flow,proto3" json:"flow,omitempty"` // contains filtered or unexported fields }
func (*ImpactFactorRequest) Descriptor
deprecated
func (*ImpactFactorRequest) Descriptor() ([]byte, []int)
Deprecated: Use ImpactFactorRequest.ProtoReflect.Descriptor instead.
func (*ImpactFactorRequest) GetFlow ¶
func (x *ImpactFactorRequest) GetFlow() *EnviFlow
func (*ImpactFactorRequest) GetIndicator ¶
func (x *ImpactFactorRequest) GetIndicator() *Ref
func (*ImpactFactorRequest) GetResult ¶
func (x *ImpactFactorRequest) GetResult() *Result
func (*ImpactFactorRequest) ProtoMessage ¶
func (*ImpactFactorRequest) ProtoMessage()
func (*ImpactFactorRequest) ProtoReflect ¶
func (x *ImpactFactorRequest) ProtoReflect() protoreflect.Message
func (*ImpactFactorRequest) Reset ¶
func (x *ImpactFactorRequest) Reset()
func (*ImpactFactorRequest) String ¶
func (x *ImpactFactorRequest) String() string
type ImpactFactorResponse ¶
type ImpactFactorResponse struct { Indicator *Ref `protobuf:"bytes,1,opt,name=indicator,proto3" json:"indicator,omitempty"` Flow *EnviFlow `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"` Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ImpactFactorResponse) Descriptor
deprecated
func (*ImpactFactorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ImpactFactorResponse.ProtoReflect.Descriptor instead.
func (*ImpactFactorResponse) GetFlow ¶
func (x *ImpactFactorResponse) GetFlow() *EnviFlow
func (*ImpactFactorResponse) GetIndicator ¶
func (x *ImpactFactorResponse) GetIndicator() *Ref
func (*ImpactFactorResponse) GetValue ¶
func (x *ImpactFactorResponse) GetValue() float64
func (*ImpactFactorResponse) ProtoMessage ¶
func (*ImpactFactorResponse) ProtoMessage()
func (*ImpactFactorResponse) ProtoReflect ¶
func (x *ImpactFactorResponse) ProtoReflect() protoreflect.Message
func (*ImpactFactorResponse) Reset ¶
func (x *ImpactFactorResponse) Reset()
func (*ImpactFactorResponse) String ¶
func (x *ImpactFactorResponse) String() string
type ImpactMethod ¶
type ImpactMethod struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The impact categories of the method. ImpactCategories []*Ref `protobuf:"bytes,10,rep,name=impact_categories,json=impactCategories,proto3" json:"impact_categories,omitempty"` // The normalization and weighting sets of the method. NwSets []*NwSet `protobuf:"bytes,11,rep,name=nw_sets,json=nwSets,proto3" json:"nw_sets,omitempty"` // contains filtered or unexported fields }
An impact assessment method.
func (*ImpactMethod) Descriptor
deprecated
func (*ImpactMethod) Descriptor() ([]byte, []int)
Deprecated: Use ImpactMethod.ProtoReflect.Descriptor instead.
func (*ImpactMethod) GetCategory ¶
func (x *ImpactMethod) GetCategory() *Ref
func (*ImpactMethod) GetDescription ¶
func (x *ImpactMethod) GetDescription() string
func (*ImpactMethod) GetEntityType ¶
func (x *ImpactMethod) GetEntityType() EntityType
func (*ImpactMethod) GetId ¶
func (x *ImpactMethod) GetId() string
func (*ImpactMethod) GetImpactCategories ¶
func (x *ImpactMethod) GetImpactCategories() []*Ref
func (*ImpactMethod) GetLastChange ¶
func (x *ImpactMethod) GetLastChange() string
func (*ImpactMethod) GetLibrary ¶
func (x *ImpactMethod) GetLibrary() string
func (*ImpactMethod) GetName ¶
func (x *ImpactMethod) GetName() string
func (*ImpactMethod) GetNwSets ¶
func (x *ImpactMethod) GetNwSets() []*NwSet
func (*ImpactMethod) GetTags ¶
func (x *ImpactMethod) GetTags() []string
func (*ImpactMethod) GetVersion ¶
func (x *ImpactMethod) GetVersion() string
func (*ImpactMethod) ProtoMessage ¶
func (*ImpactMethod) ProtoMessage()
func (*ImpactMethod) ProtoReflect ¶
func (x *ImpactMethod) ProtoReflect() protoreflect.Message
func (*ImpactMethod) Reset ¶
func (x *ImpactMethod) Reset()
func (*ImpactMethod) String ¶
func (x *ImpactMethod) String() string
type ImpactResult ¶
type ImpactResult struct { // The reference to the impact assessment category. ImpactCategory *Ref `protobuf:"bytes,1,opt,name=impact_category,json=impactCategory,proto3" json:"impact_category,omitempty"` // The value of the flow amount. Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
A result value for an impact assessment category.
func (*ImpactResult) Descriptor
deprecated
func (*ImpactResult) Descriptor() ([]byte, []int)
Deprecated: Use ImpactResult.ProtoReflect.Descriptor instead.
func (*ImpactResult) GetImpactCategory ¶
func (x *ImpactResult) GetImpactCategory() *Ref
func (*ImpactResult) GetValue ¶
func (x *ImpactResult) GetValue() float64
func (*ImpactResult) ProtoMessage ¶
func (*ImpactResult) ProtoMessage()
func (*ImpactResult) ProtoReflect ¶
func (x *ImpactResult) ProtoReflect() protoreflect.Message
func (*ImpactResult) Reset ¶
func (x *ImpactResult) Reset()
func (*ImpactResult) String ¶
func (x *ImpactResult) String() string
type Location ¶
type Location struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The code of the location (e.g. an ISO 2-letter country code). Code string `protobuf:"bytes,10,opt,name=code,proto3" json:"code,omitempty"` // The average latitude of the location. Latitude float64 `protobuf:"fixed64,11,opt,name=latitude,proto3" json:"latitude,omitempty"` // The average longitude of the location. Longitude float64 `protobuf:"fixed64,12,opt,name=longitude,proto3" json:"longitude,omitempty"` // A GeoJSON object. // When we map to the bytes type it means that we have no matching message // type and just put the raw bytes into the field. This is specifically true // for our geometry data of locations which cannot be translated to valid // GeoJSON using Protocol Buffers (as they do not support arrays of arrays). // To indicate that this is a different field than the field in the // olca-schema definition, we append the _bytes suffix to the field name GeometryBytes []byte `protobuf:"bytes,13,opt,name=geometry_bytes,json=geometryBytes,proto3" json:"geometry_bytes,omitempty"` // contains filtered or unexported fields }
A location like a country, state, city, etc.
func (*Location) Descriptor
deprecated
func (*Location) GetCategory ¶
func (*Location) GetDescription ¶
func (*Location) GetEntityType ¶
func (x *Location) GetEntityType() EntityType
func (*Location) GetGeometryBytes ¶
func (*Location) GetLastChange ¶
func (*Location) GetLatitude ¶
func (*Location) GetLibrary ¶
func (*Location) GetLongitude ¶
func (*Location) GetVersion ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type ModelType ¶
type ModelType int32
An enumeration of the root entity types.
const ( // This default option was added automatically // and means that no values was set. ModelType_UNDEFINED_MODEL_TYPE ModelType = 0 ModelType_ACTOR ModelType = 1 ModelType_CATEGORY ModelType = 2 ModelType_CURRENCY ModelType = 3 ModelType_DQ_SYSTEM ModelType = 4 ModelType_FLOW ModelType = 5 ModelType_FLOW_PROPERTY ModelType = 6 ModelType_IMPACT_CATEGORY ModelType = 7 ModelType_IMPACT_METHOD ModelType = 8 ModelType_LOCATION ModelType = 9 ModelType_NW_SET ModelType = 10 ModelType_PARAMETER ModelType = 11 ModelType_PROCESS ModelType = 12 ModelType_PRODUCT_SYSTEM ModelType = 13 ModelType_PROJECT ModelType = 14 ModelType_SOCIAL_INDICATOR ModelType = 15 ModelType_SOURCE ModelType = 16 ModelType_UNIT ModelType = 17 ModelType_UNIT_GROUP ModelType = 18 )
func (ModelType) Descriptor ¶
func (ModelType) Descriptor() protoreflect.EnumDescriptor
func (ModelType) EnumDescriptor
deprecated
func (ModelType) Number ¶
func (x ModelType) Number() protoreflect.EnumNumber
func (ModelType) Type ¶
func (ModelType) Type() protoreflect.EnumType
type NwFactor ¶
type NwFactor struct { ImpactCategory *Ref `protobuf:"bytes,1,opt,name=impact_category,json=impactCategory,proto3" json:"impact_category,omitempty"` NormalisationFactor float64 `protobuf:"fixed64,2,opt,name=normalisation_factor,json=normalisationFactor,proto3" json:"normalisation_factor,omitempty"` WeightingFactor float64 `protobuf:"fixed64,3,opt,name=weighting_factor,json=weightingFactor,proto3" json:"weighting_factor,omitempty"` // contains filtered or unexported fields }
A normalization and weighting factor of a NwSet related to an impact category. Depending on the purpose of the NwSet (normalization, weighting, or both) the normalization and weighting factor can be present or not.
func (*NwFactor) Descriptor
deprecated
func (*NwFactor) GetImpactCategory ¶
func (*NwFactor) GetNormalisationFactor ¶
func (*NwFactor) GetWeightingFactor ¶
func (*NwFactor) ProtoMessage ¶
func (*NwFactor) ProtoMessage()
func (*NwFactor) ProtoReflect ¶
func (x *NwFactor) ProtoReflect() protoreflect.Message
type NwSet ¶
type NwSet struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // This is the optional unit of the (normalized and) weighted score when this // normalization and weighting set was applied on a LCIA result. WeightedScoreUnit string `protobuf:"bytes,6,opt,name=weighted_score_unit,json=weightedScoreUnit,proto3" json:"weighted_score_unit,omitempty"` // The list of normalization and weighting factors of this set. Factors []*NwFactor `protobuf:"bytes,7,rep,name=factors,proto3" json:"factors,omitempty"` // contains filtered or unexported fields }
A normalization and weighting set.
func (*NwSet) Descriptor
deprecated
func (*NwSet) GetDescription ¶
func (*NwSet) GetFactors ¶
func (*NwSet) GetLastChange ¶
func (*NwSet) GetVersion ¶
func (*NwSet) GetWeightedScoreUnit ¶
func (*NwSet) ProtoMessage ¶
func (*NwSet) ProtoMessage()
func (*NwSet) ProtoReflect ¶
func (x *NwSet) ProtoReflect() protoreflect.Message
type Parameter ¶
type Parameter struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The scope where the parameter is valid. ParameterScope ParameterScope `` /* 134-byte string literal not displayed */ // Indicates whether the parameter is an input parameter (true) or a // dependent/calculated parameter (false). A parameter can have a formula if // it is not an input parameter. InputParameter bool `protobuf:"varint,11,opt,name=input_parameter,json=inputParameter,proto3" json:"input_parameter,omitempty"` // The parameter value. Value float64 `protobuf:"fixed64,12,opt,name=value,proto3" json:"value,omitempty"` // A mathematical expression to calculate the parameter value. Formula string `protobuf:"bytes,13,opt,name=formula,proto3" json:"formula,omitempty"` // An uncertainty distribution of the parameter value. This is only valid for // input parameters. Uncertainty *Uncertainty `protobuf:"bytes,14,opt,name=uncertainty,proto3" json:"uncertainty,omitempty"` // contains filtered or unexported fields }
In openLCA, parameters can be defined in different scopes: global, process, or LCIA method. The parameter name can be used in formulas and, thus, need to conform to a specific syntax. Within a scope the parameter name should be unique (otherwise the evaluation is not deterministic). There are two types of parameters in openLCA: input parameters and dependent parameters. An input parameter can have an optional uncertainty distribution but not a formula. A dependent parameter can (should) have a formula (where also other parameters can be used) but no uncertainty distribution.
func (*Parameter) Descriptor
deprecated
func (*Parameter) GetCategory ¶
func (*Parameter) GetDescription ¶
func (*Parameter) GetEntityType ¶
func (x *Parameter) GetEntityType() EntityType
func (*Parameter) GetFormula ¶
func (*Parameter) GetInputParameter ¶
func (*Parameter) GetLastChange ¶
func (*Parameter) GetLibrary ¶
func (*Parameter) GetParameterScope ¶
func (x *Parameter) GetParameterScope() ParameterScope
func (*Parameter) GetUncertainty ¶
func (x *Parameter) GetUncertainty() *Uncertainty
func (*Parameter) GetVersion ¶
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type ParameterRedef ¶
type ParameterRedef struct { // The context of the paramater (a process or LCIA method). If no context is // provided it is assumed that this is a redefinition of a global parameter. Context *Ref `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // A description of this parameter redefinition. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The name of the redefined parameter. Note that parameter names are used in // formulas so they need to follow specific syntax rules. A redefinition // replaces a bound parameter in a specific context and thus has to exactly // match the respective name. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // An uncertainty distribution for the redefined parameter value. Uncertainty *Uncertainty `protobuf:"bytes,4,opt,name=uncertainty,proto3" json:"uncertainty,omitempty"` // The value of the redefined parameter. Value float64 `protobuf:"fixed64,5,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
A redefinition of a parameter in a product system.
func (*ParameterRedef) Descriptor
deprecated
func (*ParameterRedef) Descriptor() ([]byte, []int)
Deprecated: Use ParameterRedef.ProtoReflect.Descriptor instead.
func (*ParameterRedef) GetContext ¶
func (x *ParameterRedef) GetContext() *Ref
func (*ParameterRedef) GetDescription ¶
func (x *ParameterRedef) GetDescription() string
func (*ParameterRedef) GetName ¶
func (x *ParameterRedef) GetName() string
func (*ParameterRedef) GetUncertainty ¶
func (x *ParameterRedef) GetUncertainty() *Uncertainty
func (*ParameterRedef) GetValue ¶
func (x *ParameterRedef) GetValue() float64
func (*ParameterRedef) ProtoMessage ¶
func (*ParameterRedef) ProtoMessage()
func (*ParameterRedef) ProtoReflect ¶
func (x *ParameterRedef) ProtoReflect() protoreflect.Message
func (*ParameterRedef) Reset ¶
func (x *ParameterRedef) Reset()
func (*ParameterRedef) String ¶
func (x *ParameterRedef) String() string
type ParameterRedefSet ¶
type ParameterRedefSet struct { // The name of the parameter set. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A description of the parameter set. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Indicates if this set of parameter redefinitions is the baseline for a // product system. IsBaseline bool `protobuf:"varint,3,opt,name=is_baseline,json=isBaseline,proto3" json:"is_baseline,omitempty"` // The parameter redefinitions of this redefinition set. Parameters []*ParameterRedef `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
An instance of this class is just a set of parameter redefinitions attached to a product system. It can have a name and a description. One of the parameter sets can be defined as the baseline of the product system. In the calculation the baseline set is then taken by default.
func (*ParameterRedefSet) Descriptor
deprecated
func (*ParameterRedefSet) Descriptor() ([]byte, []int)
Deprecated: Use ParameterRedefSet.ProtoReflect.Descriptor instead.
func (*ParameterRedefSet) GetDescription ¶
func (x *ParameterRedefSet) GetDescription() string
func (*ParameterRedefSet) GetIsBaseline ¶
func (x *ParameterRedefSet) GetIsBaseline() bool
func (*ParameterRedefSet) GetName ¶
func (x *ParameterRedefSet) GetName() string
func (*ParameterRedefSet) GetParameters ¶
func (x *ParameterRedefSet) GetParameters() []*ParameterRedef
func (*ParameterRedefSet) ProtoMessage ¶
func (*ParameterRedefSet) ProtoMessage()
func (*ParameterRedefSet) ProtoReflect ¶
func (x *ParameterRedefSet) ProtoReflect() protoreflect.Message
func (*ParameterRedefSet) Reset ¶
func (x *ParameterRedefSet) Reset()
func (*ParameterRedefSet) String ¶
func (x *ParameterRedefSet) String() string
type ParameterScope ¶
type ParameterScope int32
The possible scopes of parameters. Parameters can be defined globally, in processes, or impact categories. They can be redefined in calculation setups on the project and product system level, but the initial definition is always only global, in a process, or an LCIA category.
const ( // This default option was added automatically // and means that no values was set. ParameterScope_UNDEFINED_PARAMETER_SCOPE ParameterScope = 0 // Indicates that the evaluation scope of a parameter is the process where it // is defined. ParameterScope_PROCESS_SCOPE ParameterScope = 1 // Indicates that the evaluation scope of a parameter is the impact category // where it is defined. ParameterScope_IMPACT_SCOPE ParameterScope = 2 // Indicates that the evaluation scope of a parameter is the global scope. ParameterScope_GLOBAL_SCOPE ParameterScope = 3 )
func (ParameterScope) Descriptor ¶
func (ParameterScope) Descriptor() protoreflect.EnumDescriptor
func (ParameterScope) Enum ¶
func (x ParameterScope) Enum() *ParameterScope
func (ParameterScope) EnumDescriptor
deprecated
func (ParameterScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use ParameterScope.Descriptor instead.
func (ParameterScope) Number ¶
func (x ParameterScope) Number() protoreflect.EnumNumber
func (ParameterScope) String ¶
func (x ParameterScope) String() string
func (ParameterScope) Type ¶
func (ParameterScope) Type() protoreflect.EnumType
type Process ¶
type Process struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` AllocationFactors []*AllocationFactor `protobuf:"bytes,10,rep,name=allocation_factors,json=allocationFactors,proto3" json:"allocation_factors,omitempty"` DefaultAllocationMethod AllocationType `` /* 163-byte string literal not displayed */ // The inputs and outputs of the process. Exchanges []*Exchange `protobuf:"bytes,12,rep,name=exchanges,proto3" json:"exchanges,omitempty"` // This field holds the last internal ID that was used in an exchange (which // may have been deleted, so it can be larger than the largest internal ID of // the exchanges of the process.) The internal ID of an exchange is used to // identify exchanges within a process (for updates, data exchanges (see // process links), etc.). When you add an exchange to a process, you should // increment this field in the process and set the resulting value as the // internal ID of that exchange. The sequence of internal IDs should start // with `1`. LastInternalId int32 `protobuf:"varint,13,opt,name=last_internal_id,json=lastInternalId,proto3" json:"last_internal_id,omitempty"` // The location of the process. Location *Ref `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` Parameters []*Parameter `protobuf:"bytes,15,rep,name=parameters,proto3" json:"parameters,omitempty"` ProcessDocumentation *ProcessDocumentation `protobuf:"bytes,16,opt,name=process_documentation,json=processDocumentation,proto3" json:"process_documentation,omitempty"` ProcessType ProcessType `protobuf:"varint,17,opt,name=process_type,json=processType,proto3,enum=protolca.ProcessType" json:"process_type,omitempty"` // A reference to a data quality system ([DQSystem]) with which the overall // quality of the process can be assessed. DqSystem *Ref `protobuf:"bytes,18,opt,name=dq_system,json=dqSystem,proto3" json:"dq_system,omitempty"` // A reference to a data quality system ([DQSystem]) with which the quality // of individual inputs and outputs ([Exchange]s) of the process can be // assessed. ExchangeDqSystem *Ref `protobuf:"bytes,19,opt,name=exchange_dq_system,json=exchangeDqSystem,proto3" json:"exchange_dq_system,omitempty"` // A reference to a data quality system ([DQSystem]) with which the quality // of individual social aspects of the process can be assessed. SocialDqSystem *Ref `protobuf:"bytes,20,opt,name=social_dq_system,json=socialDqSystem,proto3" json:"social_dq_system,omitempty"` // A data quality entry like `(1;3;2;5;1)`. The entry is a vector of data // quality values that need to match the overall data quality system of the // process (the system that is stored in the `dqSystem` property). In such a // system the data quality indicators have fixed positions and the respective // values in the `dqEntry` vector map to these positions. DqEntry string `protobuf:"bytes,21,opt,name=dq_entry,json=dqEntry,proto3" json:"dq_entry,omitempty"` // Indicates whether this process describes an infrastructure process. This // field is part of the openLCA schema because of backward compatibility with // EcoSpold 1. It does not really have a meaning in openLCA and should not be // used anymore. InfrastructureProcess bool `` /* 126-byte string literal not displayed */ // A set of social aspects related to this process. SocialAspects []*SocialAspect `protobuf:"bytes,23,rep,name=social_aspects,json=socialAspects,proto3" json:"social_aspects,omitempty"` // contains filtered or unexported fields }
func (*Process) Descriptor
deprecated
func (*Process) GetAllocationFactors ¶
func (x *Process) GetAllocationFactors() []*AllocationFactor
func (*Process) GetCategory ¶
func (*Process) GetDefaultAllocationMethod ¶
func (x *Process) GetDefaultAllocationMethod() AllocationType
func (*Process) GetDescription ¶
func (*Process) GetDqEntry ¶
func (*Process) GetDqSystem ¶
func (*Process) GetEntityType ¶
func (x *Process) GetEntityType() EntityType
func (*Process) GetExchangeDqSystem ¶
func (*Process) GetExchanges ¶
func (*Process) GetInfrastructureProcess ¶
func (*Process) GetLastChange ¶
func (*Process) GetLastInternalId ¶
func (*Process) GetLibrary ¶
func (*Process) GetLocation ¶
func (*Process) GetParameters ¶
func (*Process) GetProcessDocumentation ¶
func (x *Process) GetProcessDocumentation() *ProcessDocumentation
func (*Process) GetProcessType ¶
func (x *Process) GetProcessType() ProcessType
func (*Process) GetSocialAspects ¶
func (x *Process) GetSocialAspects() []*SocialAspect
func (*Process) GetSocialDqSystem ¶
func (*Process) GetVersion ¶
func (*Process) ProtoMessage ¶
func (*Process) ProtoMessage()
func (*Process) ProtoReflect ¶
func (x *Process) ProtoReflect() protoreflect.Message
type ProcessDocumentation ¶
type ProcessDocumentation struct { TimeDescription string `protobuf:"bytes,1,opt,name=time_description,json=timeDescription,proto3" json:"time_description,omitempty"` ValidUntil string `protobuf:"bytes,2,opt,name=valid_until,json=validUntil,proto3" json:"valid_until,omitempty"` ValidFrom string `protobuf:"bytes,3,opt,name=valid_from,json=validFrom,proto3" json:"valid_from,omitempty"` TechnologyDescription string `protobuf:"bytes,4,opt,name=technology_description,json=technologyDescription,proto3" json:"technology_description,omitempty"` DataCollectionDescription string `` /* 138-byte string literal not displayed */ CompletenessDescription string `` /* 130-byte string literal not displayed */ DataSelectionDescription string `` /* 135-byte string literal not displayed */ ReviewDetails string `protobuf:"bytes,8,opt,name=review_details,json=reviewDetails,proto3" json:"review_details,omitempty"` DataTreatmentDescription string `` /* 135-byte string literal not displayed */ InventoryMethodDescription string `` /* 142-byte string literal not displayed */ ModelingConstantsDescription string `` /* 148-byte string literal not displayed */ Reviewer *Ref `protobuf:"bytes,12,opt,name=reviewer,proto3" json:"reviewer,omitempty"` SamplingDescription string `protobuf:"bytes,13,opt,name=sampling_description,json=samplingDescription,proto3" json:"sampling_description,omitempty"` Sources []*Ref `protobuf:"bytes,14,rep,name=sources,proto3" json:"sources,omitempty"` RestrictionsDescription string `` /* 131-byte string literal not displayed */ Copyright bool `protobuf:"varint,16,opt,name=copyright,proto3" json:"copyright,omitempty"` CreationDate string `protobuf:"bytes,17,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` DataDocumentor *Ref `protobuf:"bytes,18,opt,name=data_documentor,json=dataDocumentor,proto3" json:"data_documentor,omitempty"` DataGenerator *Ref `protobuf:"bytes,19,opt,name=data_generator,json=dataGenerator,proto3" json:"data_generator,omitempty"` DataSetOwner *Ref `protobuf:"bytes,20,opt,name=data_set_owner,json=dataSetOwner,proto3" json:"data_set_owner,omitempty"` IntendedApplication string `protobuf:"bytes,21,opt,name=intended_application,json=intendedApplication,proto3" json:"intended_application,omitempty"` ProjectDescription string `protobuf:"bytes,22,opt,name=project_description,json=projectDescription,proto3" json:"project_description,omitempty"` Publication *Ref `protobuf:"bytes,23,opt,name=publication,proto3" json:"publication,omitempty"` GeographyDescription string `protobuf:"bytes,24,opt,name=geography_description,json=geographyDescription,proto3" json:"geography_description,omitempty"` // contains filtered or unexported fields }
func (*ProcessDocumentation) Descriptor
deprecated
func (*ProcessDocumentation) Descriptor() ([]byte, []int)
Deprecated: Use ProcessDocumentation.ProtoReflect.Descriptor instead.
func (*ProcessDocumentation) GetCompletenessDescription ¶
func (x *ProcessDocumentation) GetCompletenessDescription() string
func (*ProcessDocumentation) GetCopyright ¶
func (x *ProcessDocumentation) GetCopyright() bool
func (*ProcessDocumentation) GetCreationDate ¶
func (x *ProcessDocumentation) GetCreationDate() string
func (*ProcessDocumentation) GetDataCollectionDescription ¶
func (x *ProcessDocumentation) GetDataCollectionDescription() string
func (*ProcessDocumentation) GetDataDocumentor ¶
func (x *ProcessDocumentation) GetDataDocumentor() *Ref
func (*ProcessDocumentation) GetDataGenerator ¶
func (x *ProcessDocumentation) GetDataGenerator() *Ref
func (*ProcessDocumentation) GetDataSelectionDescription ¶
func (x *ProcessDocumentation) GetDataSelectionDescription() string
func (*ProcessDocumentation) GetDataSetOwner ¶
func (x *ProcessDocumentation) GetDataSetOwner() *Ref
func (*ProcessDocumentation) GetDataTreatmentDescription ¶
func (x *ProcessDocumentation) GetDataTreatmentDescription() string
func (*ProcessDocumentation) GetGeographyDescription ¶
func (x *ProcessDocumentation) GetGeographyDescription() string
func (*ProcessDocumentation) GetIntendedApplication ¶
func (x *ProcessDocumentation) GetIntendedApplication() string
func (*ProcessDocumentation) GetInventoryMethodDescription ¶
func (x *ProcessDocumentation) GetInventoryMethodDescription() string
func (*ProcessDocumentation) GetModelingConstantsDescription ¶
func (x *ProcessDocumentation) GetModelingConstantsDescription() string
func (*ProcessDocumentation) GetProjectDescription ¶
func (x *ProcessDocumentation) GetProjectDescription() string
func (*ProcessDocumentation) GetPublication ¶
func (x *ProcessDocumentation) GetPublication() *Ref
func (*ProcessDocumentation) GetRestrictionsDescription ¶
func (x *ProcessDocumentation) GetRestrictionsDescription() string
func (*ProcessDocumentation) GetReviewDetails ¶
func (x *ProcessDocumentation) GetReviewDetails() string
func (*ProcessDocumentation) GetReviewer ¶
func (x *ProcessDocumentation) GetReviewer() *Ref
func (*ProcessDocumentation) GetSamplingDescription ¶
func (x *ProcessDocumentation) GetSamplingDescription() string
func (*ProcessDocumentation) GetSources ¶
func (x *ProcessDocumentation) GetSources() []*Ref
func (*ProcessDocumentation) GetTechnologyDescription ¶
func (x *ProcessDocumentation) GetTechnologyDescription() string
func (*ProcessDocumentation) GetTimeDescription ¶
func (x *ProcessDocumentation) GetTimeDescription() string
func (*ProcessDocumentation) GetValidFrom ¶
func (x *ProcessDocumentation) GetValidFrom() string
func (*ProcessDocumentation) GetValidUntil ¶
func (x *ProcessDocumentation) GetValidUntil() string
func (*ProcessDocumentation) ProtoMessage ¶
func (*ProcessDocumentation) ProtoMessage()
func (*ProcessDocumentation) ProtoReflect ¶
func (x *ProcessDocumentation) ProtoReflect() protoreflect.Message
func (*ProcessDocumentation) Reset ¶
func (x *ProcessDocumentation) Reset()
func (*ProcessDocumentation) String ¶
func (x *ProcessDocumentation) String() string
type ProcessLink ¶
type ProcessLink struct { // The descriptor of the process or product system that provides a product or // a waste treatment. Provider *Ref `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // The descriptor of the flow that is exchanged between the two processes. Flow *Ref `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"` // The descriptor of the process that is linked to the provider. Process *Ref `protobuf:"bytes,3,opt,name=process,proto3" json:"process,omitempty"` // The exchange of the linked process (this is useful if the linked process // has multiple exchanges with the same flow that are linked to different // provides, e.g. in an electricity mix). Exchange *ExchangeRef `protobuf:"bytes,4,opt,name=exchange,proto3" json:"exchange,omitempty"` // contains filtered or unexported fields }
A process link is a connection between two processes in a product system.
func (*ProcessLink) Descriptor
deprecated
func (*ProcessLink) Descriptor() ([]byte, []int)
Deprecated: Use ProcessLink.ProtoReflect.Descriptor instead.
func (*ProcessLink) GetExchange ¶
func (x *ProcessLink) GetExchange() *ExchangeRef
func (*ProcessLink) GetFlow ¶
func (x *ProcessLink) GetFlow() *Ref
func (*ProcessLink) GetProcess ¶
func (x *ProcessLink) GetProcess() *Ref
func (*ProcessLink) GetProvider ¶
func (x *ProcessLink) GetProvider() *Ref
func (*ProcessLink) ProtoMessage ¶
func (*ProcessLink) ProtoMessage()
func (*ProcessLink) ProtoReflect ¶
func (x *ProcessLink) ProtoReflect() protoreflect.Message
func (*ProcessLink) Reset ¶
func (x *ProcessLink) Reset()
func (*ProcessLink) String ¶
func (x *ProcessLink) String() string
type ProcessType ¶
type ProcessType int32
const ( // This default option was added automatically // and means that no values was set. ProcessType_UNDEFINED_PROCESS_TYPE ProcessType = 0 ProcessType_LCI_RESULT ProcessType = 1 ProcessType_UNIT_PROCESS ProcessType = 2 )
func (ProcessType) Descriptor ¶
func (ProcessType) Descriptor() protoreflect.EnumDescriptor
func (ProcessType) Enum ¶
func (x ProcessType) Enum() *ProcessType
func (ProcessType) EnumDescriptor
deprecated
func (ProcessType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProcessType.Descriptor instead.
func (ProcessType) Number ¶
func (x ProcessType) Number() protoreflect.EnumNumber
func (ProcessType) String ¶
func (x ProcessType) String() string
func (ProcessType) Type ¶
func (ProcessType) Type() protoreflect.EnumType
type ProductSystem ¶
type ProductSystem struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The descriptors of all processes and sub-systems that are contained in the // product system. Processes []*Ref `protobuf:"bytes,10,rep,name=processes,proto3" json:"processes,omitempty"` // The descriptor of the process that provides the flow of the functional // unit of the product system. ReferenceProcess *Ref `protobuf:"bytes,11,opt,name=reference_process,json=referenceProcess,proto3" json:"reference_process,omitempty"` // The exchange of the reference processes (typically the product output) // that provides the flow of the functional unit of the product system. ReferenceExchange *ExchangeRef `protobuf:"bytes,12,opt,name=reference_exchange,json=referenceExchange,proto3" json:"reference_exchange,omitempty"` // The flow amount of the functional unit of the product system. TargetAmount float64 `protobuf:"fixed64,13,opt,name=target_amount,json=targetAmount,proto3" json:"target_amount,omitempty"` // The unit in which the flow amount of the functional unit is given. TargetUnit *Ref `protobuf:"bytes,14,opt,name=target_unit,json=targetUnit,proto3" json:"target_unit,omitempty"` // The flow property in which the flow amount of the functional unit is // given. TargetFlowProperty *Ref `protobuf:"bytes,15,opt,name=target_flow_property,json=targetFlowProperty,proto3" json:"target_flow_property,omitempty"` // The process links of the product system. ProcessLinks []*ProcessLink `protobuf:"bytes,16,rep,name=process_links,json=processLinks,proto3" json:"process_links,omitempty"` // A list of possible sets of parameter redefinitions for this product // system. ParameterSets []*ParameterRedefSet `protobuf:"bytes,17,rep,name=parameter_sets,json=parameterSets,proto3" json:"parameter_sets,omitempty"` // contains filtered or unexported fields }
A product system describes the supply chain of a product (the functional unit) ...
func (*ProductSystem) Descriptor
deprecated
func (*ProductSystem) Descriptor() ([]byte, []int)
Deprecated: Use ProductSystem.ProtoReflect.Descriptor instead.
func (*ProductSystem) GetCategory ¶
func (x *ProductSystem) GetCategory() *Ref
func (*ProductSystem) GetDescription ¶
func (x *ProductSystem) GetDescription() string
func (*ProductSystem) GetEntityType ¶
func (x *ProductSystem) GetEntityType() EntityType
func (*ProductSystem) GetId ¶
func (x *ProductSystem) GetId() string
func (*ProductSystem) GetLastChange ¶
func (x *ProductSystem) GetLastChange() string
func (*ProductSystem) GetLibrary ¶
func (x *ProductSystem) GetLibrary() string
func (*ProductSystem) GetName ¶
func (x *ProductSystem) GetName() string
func (*ProductSystem) GetParameterSets ¶
func (x *ProductSystem) GetParameterSets() []*ParameterRedefSet
func (*ProductSystem) GetProcessLinks ¶
func (x *ProductSystem) GetProcessLinks() []*ProcessLink
func (*ProductSystem) GetProcesses ¶
func (x *ProductSystem) GetProcesses() []*Ref
func (*ProductSystem) GetReferenceExchange ¶
func (x *ProductSystem) GetReferenceExchange() *ExchangeRef
func (*ProductSystem) GetReferenceProcess ¶
func (x *ProductSystem) GetReferenceProcess() *Ref
func (*ProductSystem) GetTags ¶
func (x *ProductSystem) GetTags() []string
func (*ProductSystem) GetTargetAmount ¶
func (x *ProductSystem) GetTargetAmount() float64
func (*ProductSystem) GetTargetFlowProperty ¶
func (x *ProductSystem) GetTargetFlowProperty() *Ref
func (*ProductSystem) GetTargetUnit ¶
func (x *ProductSystem) GetTargetUnit() *Ref
func (*ProductSystem) GetVersion ¶
func (x *ProductSystem) GetVersion() string
func (*ProductSystem) ProtoMessage ¶
func (*ProductSystem) ProtoMessage()
func (*ProductSystem) ProtoReflect ¶
func (x *ProductSystem) ProtoReflect() protoreflect.Message
func (*ProductSystem) Reset ¶
func (x *ProductSystem) Reset()
func (*ProductSystem) String ¶
func (x *ProductSystem) String() string
type Project ¶
type Project struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` ImpactMethod *Ref `protobuf:"bytes,10,opt,name=impact_method,json=impactMethod,proto3" json:"impact_method,omitempty"` NwSet *NwSet `protobuf:"bytes,11,opt,name=nw_set,json=nwSet,proto3" json:"nw_set,omitempty"` // contains filtered or unexported fields }
func (*Project) Descriptor
deprecated
func (*Project) GetCategory ¶
func (*Project) GetDescription ¶
func (*Project) GetEntityType ¶
func (x *Project) GetEntityType() EntityType
func (*Project) GetImpactMethod ¶
func (*Project) GetLastChange ¶
func (*Project) GetLibrary ¶
func (*Project) GetVersion ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type Ref ¶
type Ref struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The full path of the category of the referenced entity from top to bottom, // e.g. `"Elementary flows", "Emissions to air", "unspecified"`. CategoryPath []string `protobuf:"bytes,7,rep,name=category_path,json=categoryPath,proto3" json:"category_path,omitempty"` // If the entity that is described by this reference is part of a library, // this field contains the identifier of that library. The identifier is // typically just the combination of the library name and version. Library string `protobuf:"bytes,8,opt,name=library,proto3" json:"library,omitempty"` // This field is only valid for references of flows or impact categories and // contains the name (symbol) of the reference unit of that respective flow // or impact category. RefUnit string `protobuf:"bytes,9,opt,name=ref_unit,json=refUnit,proto3" json:"ref_unit,omitempty"` // This field is only valid for references of processes or flows and contains // the location name or code of that respective process or flow. Location string `protobuf:"bytes,10,opt,name=location,proto3" json:"location,omitempty"` // In case of a reference to a flow, this field can contain the type of flow // that is referenced. FlowType FlowType `protobuf:"varint,11,opt,name=flow_type,json=flowType,proto3,enum=protolca.FlowType" json:"flow_type,omitempty"` // In case of a reference to a process, this fiel can contain the type of // process that is referenced. ProcessType ProcessType `protobuf:"varint,12,opt,name=process_type,json=processType,proto3,enum=protolca.ProcessType" json:"process_type,omitempty"` // contains filtered or unexported fields }
A Ref is a reference to a [RootEntity]. When serializing an entity (e.g. a Process) that references another standalone entity (e.g. a Flow in an Exchange) we do not want to write the complete referenced entity into the serialized JSON object but just a reference. However, the reference contains some meta-data like name, category path etc. that are useful to display.
func (*Ref) Descriptor
deprecated
func (*Ref) GetCategoryPath ¶
func (*Ref) GetDescription ¶
func (*Ref) GetEntityType ¶
func (x *Ref) GetEntityType() EntityType
func (*Ref) GetFlowType ¶
func (*Ref) GetLastChange ¶
func (*Ref) GetLibrary ¶
func (*Ref) GetLocation ¶
func (*Ref) GetProcessType ¶
func (x *Ref) GetProcessType() ProcessType
func (*Ref) GetRefUnit ¶
func (*Ref) GetVersion ¶
func (*Ref) ProtoMessage ¶
func (*Ref) ProtoMessage()
func (*Ref) ProtoReflect ¶
func (x *Ref) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
A `Result` message is basically just a reference to a real result on the server side. As result data can be really large, we do not add them directly to the result. Instead you call the respective methods of the result service to get them. Because of this, you need to explicitly call `Dispose` when you do not need a result anymore. Otherwise you will create memory leaks as the result still exists on the server side.
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type ResultServiceClient ¶
type ResultServiceClient interface { // Calculates a result for the given calculation setup. Calculate(ctx context.Context, in *CalculationSetup, opts ...grpc.CallOption) (*Result, error) // Get all technosphere flows of the underlying product system of the given // result. GetTechFlows(ctx context.Context, in *Result, opts ...grpc.CallOption) (ResultService_GetTechFlowsClient, error) // Get the environmental flows of the given result. GetEnviFlows(ctx context.Context, in *Result, opts ...grpc.CallOption) (ResultService_GetEnviFlowsClient, error) // Get the impact categories of the given result. GetImpactCategories(ctx context.Context, in *Result, opts ...grpc.CallOption) (ResultService_GetImpactCategoriesClient, error) // Get the inventory of the given result. GetTotalInventory(ctx context.Context, in *Result, opts ...grpc.CallOption) (ResultService_GetTotalInventoryClient, error) // Get the total impact assessment result of the given result. GetTotalImpacts(ctx context.Context, in *Result, opts ...grpc.CallOption) (ResultService_GetTotalImpactsClient, error) // Get the direct contribution of a TechFlow to a flow, impact, or cost // result. 'Direct' means that this is only the contribution that is // directly associated with the production of a product or treatment of // a waste flow excluding contributions of upstream and downstream processes. GetDirectContribution(ctx context.Context, in *TechFlowContributionRequest, opts ...grpc.CallOption) (*ResultValue, error) GetTotalContribution(ctx context.Context, in *TechFlowContributionRequest, opts ...grpc.CallOption) (*ResultValue, error) GetTotalContributionOfOne(ctx context.Context, in *TechFlowContributionRequest, opts ...grpc.CallOption) (*ResultValue, error) // Get the used impact factors of a result. The request can be for: // // * an indicator: returns the non-zero factors of that indicator // * a flow: returns the factors of that flow for all indicators (including // zero values) // * an indicator and flow: returns the factor for that flow which may be zero // // Nothing is returned if no indicator and flow is given or if the result does // not have an impact assessment result. GetImpactFactors(ctx context.Context, in *ImpactFactorRequest, opts ...grpc.CallOption) (ResultService_GetImpactFactorsClient, error) // Disposes the given result on the server side. Dispose(ctx context.Context, in *Result, opts ...grpc.CallOption) (*empty.Empty, error) }
ResultServiceClient is the client API for ResultService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewResultServiceClient ¶
func NewResultServiceClient(cc grpc.ClientConnInterface) ResultServiceClient
type ResultServiceServer ¶
type ResultServiceServer interface { // Calculates a result for the given calculation setup. Calculate(context.Context, *CalculationSetup) (*Result, error) // Get all technosphere flows of the underlying product system of the given // result. GetTechFlows(*Result, ResultService_GetTechFlowsServer) error // Get the environmental flows of the given result. GetEnviFlows(*Result, ResultService_GetEnviFlowsServer) error // Get the impact categories of the given result. GetImpactCategories(*Result, ResultService_GetImpactCategoriesServer) error // Get the inventory of the given result. GetTotalInventory(*Result, ResultService_GetTotalInventoryServer) error // Get the total impact assessment result of the given result. GetTotalImpacts(*Result, ResultService_GetTotalImpactsServer) error // Get the direct contribution of a TechFlow to a flow, impact, or cost // result. 'Direct' means that this is only the contribution that is // directly associated with the production of a product or treatment of // a waste flow excluding contributions of upstream and downstream processes. GetDirectContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error) GetTotalContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error) GetTotalContributionOfOne(context.Context, *TechFlowContributionRequest) (*ResultValue, error) // Get the used impact factors of a result. The request can be for: // // * an indicator: returns the non-zero factors of that indicator // * a flow: returns the factors of that flow for all indicators (including // zero values) // * an indicator and flow: returns the factor for that flow which may be zero // // Nothing is returned if no indicator and flow is given or if the result does // not have an impact assessment result. GetImpactFactors(*ImpactFactorRequest, ResultService_GetImpactFactorsServer) error // Disposes the given result on the server side. Dispose(context.Context, *Result) (*empty.Empty, error) // contains filtered or unexported methods }
ResultServiceServer is the server API for ResultService service. All implementations must embed UnimplementedResultServiceServer for forward compatibility
type ResultService_GetEnviFlowsClient ¶
type ResultService_GetEnviFlowsClient interface { Recv() (*EnviFlow, error) grpc.ClientStream }
type ResultService_GetEnviFlowsServer ¶
type ResultService_GetEnviFlowsServer interface { Send(*EnviFlow) error grpc.ServerStream }
type ResultService_GetImpactCategoriesClient ¶
type ResultService_GetImpactCategoriesClient interface { Recv() (*Ref, error) grpc.ClientStream }
type ResultService_GetImpactCategoriesServer ¶
type ResultService_GetImpactCategoriesServer interface { Send(*Ref) error grpc.ServerStream }
type ResultService_GetImpactFactorsClient ¶
type ResultService_GetImpactFactorsClient interface { Recv() (*ImpactFactorResponse, error) grpc.ClientStream }
type ResultService_GetImpactFactorsServer ¶
type ResultService_GetImpactFactorsServer interface { Send(*ImpactFactorResponse) error grpc.ServerStream }
type ResultService_GetTechFlowsClient ¶
type ResultService_GetTechFlowsClient interface { Recv() (*TechFlow, error) grpc.ClientStream }
type ResultService_GetTechFlowsServer ¶
type ResultService_GetTechFlowsServer interface { Send(*TechFlow) error grpc.ServerStream }
type ResultService_GetTotalImpactsClient ¶
type ResultService_GetTotalImpactsClient interface { Recv() (*ResultValue, error) grpc.ClientStream }
type ResultService_GetTotalImpactsServer ¶
type ResultService_GetTotalImpactsServer interface { Send(*ResultValue) error grpc.ServerStream }
type ResultService_GetTotalInventoryClient ¶
type ResultService_GetTotalInventoryClient interface { Recv() (*ResultValue, error) grpc.ClientStream }
type ResultService_GetTotalInventoryServer ¶
type ResultService_GetTotalInventoryServer interface { Send(*ResultValue) error grpc.ServerStream }
type ResultValue ¶
type ResultValue struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // Types that are assignable to ResultReference: // *ResultValue_TechFlow // *ResultValue_EnviFlow // *ResultValue_Impact // *ResultValue_Costs ResultReference isResultValue_ResultReference `protobuf_oneof:"result_reference"` // contains filtered or unexported fields }
func (*ResultValue) Descriptor
deprecated
func (*ResultValue) Descriptor() ([]byte, []int)
Deprecated: Use ResultValue.ProtoReflect.Descriptor instead.
func (*ResultValue) GetCosts ¶
func (x *ResultValue) GetCosts() bool
func (*ResultValue) GetEnviFlow ¶
func (x *ResultValue) GetEnviFlow() *EnviFlow
func (*ResultValue) GetImpact ¶
func (x *ResultValue) GetImpact() *Ref
func (*ResultValue) GetResultReference ¶
func (m *ResultValue) GetResultReference() isResultValue_ResultReference
func (*ResultValue) GetTechFlow ¶
func (x *ResultValue) GetTechFlow() *TechFlow
func (*ResultValue) GetValue ¶
func (x *ResultValue) GetValue() float64
func (*ResultValue) ProtoMessage ¶
func (*ResultValue) ProtoMessage()
func (*ResultValue) ProtoReflect ¶
func (x *ResultValue) ProtoReflect() protoreflect.Message
func (*ResultValue) Reset ¶
func (x *ResultValue) Reset()
func (*ResultValue) String ¶
func (x *ResultValue) String() string
type ResultValue_Costs ¶
type ResultValue_Costs struct {
Costs bool `protobuf:"varint,5,opt,name=costs,proto3,oneof"`
}
type ResultValue_EnviFlow ¶
type ResultValue_EnviFlow struct {
EnviFlow *EnviFlow `protobuf:"bytes,3,opt,name=envi_flow,json=enviFlow,proto3,oneof"`
}
type ResultValue_Impact ¶
type ResultValue_Impact struct {
Impact *Ref `protobuf:"bytes,4,opt,name=impact,proto3,oneof"`
}
type ResultValue_TechFlow ¶
type ResultValue_TechFlow struct {
TechFlow *TechFlow `protobuf:"bytes,2,opt,name=tech_flow,json=techFlow,proto3,oneof"`
}
type RiskLevel ¶
type RiskLevel int32
const ( // This default option was added automatically // and means that no values was set. RiskLevel_UNDEFINED_RISK_LEVEL RiskLevel = 0 RiskLevel_NO_OPPORTUNITY RiskLevel = 1 RiskLevel_HIGH_OPPORTUNITY RiskLevel = 2 RiskLevel_MEDIUM_OPPORTUNITY RiskLevel = 3 RiskLevel_LOW_OPPORTUNITY RiskLevel = 4 RiskLevel_NO_RISK RiskLevel = 5 RiskLevel_VERY_LOW_RISK RiskLevel = 6 RiskLevel_LOW_RISK RiskLevel = 7 RiskLevel_MEDIUM_RISK RiskLevel = 8 RiskLevel_HIGH_RISK RiskLevel = 9 RiskLevel_VERY_HIGH_RISK RiskLevel = 10 RiskLevel_NO_DATA RiskLevel = 11 RiskLevel_NOT_APPLICABLE RiskLevel = 12 )
func (RiskLevel) Descriptor ¶
func (RiskLevel) Descriptor() protoreflect.EnumDescriptor
func (RiskLevel) EnumDescriptor
deprecated
func (RiskLevel) Number ¶
func (x RiskLevel) Number() protoreflect.EnumNumber
func (RiskLevel) Type ¶
func (RiskLevel) Type() protoreflect.EnumType
type SearchRequest ¶
type SearchRequest struct { // The model type of the searched entities. ModelType ModelType `protobuf:"varint,1,opt,name=model_type,json=modelType,proto3,enum=protolca.ModelType" json:"model_type,omitempty"` // The search query. Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetModelType ¶
func (x *SearchRequest) GetModelType() ModelType
func (*SearchRequest) GetQuery ¶
func (x *SearchRequest) GetQuery() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SimpleResult ¶
type SimpleResult struct { FlowResults []*FlowResult `protobuf:"bytes,1,rep,name=flow_results,json=flowResults,proto3" json:"flow_results,omitempty"` ImpactResults []*ImpactResult `protobuf:"bytes,2,rep,name=impact_results,json=impactResults,proto3" json:"impact_results,omitempty"` // contains filtered or unexported fields }
func (*SimpleResult) Descriptor
deprecated
func (*SimpleResult) Descriptor() ([]byte, []int)
Deprecated: Use SimpleResult.ProtoReflect.Descriptor instead.
func (*SimpleResult) GetFlowResults ¶
func (x *SimpleResult) GetFlowResults() []*FlowResult
func (*SimpleResult) GetImpactResults ¶
func (x *SimpleResult) GetImpactResults() []*ImpactResult
func (*SimpleResult) ProtoMessage ¶
func (*SimpleResult) ProtoMessage()
func (*SimpleResult) ProtoReflect ¶
func (x *SimpleResult) ProtoReflect() protoreflect.Message
func (*SimpleResult) Reset ¶
func (x *SimpleResult) Reset()
func (*SimpleResult) String ¶
func (x *SimpleResult) String() string
type SocialAspect ¶
type SocialAspect struct { // The value of the activity variable of the related indicator. ActivityValue float64 `protobuf:"fixed64,1,opt,name=activity_value,json=activityValue,proto3" json:"activity_value,omitempty"` Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"` // A data quality entry, e.g. `(3,1,2,4,1)`. Quality string `protobuf:"bytes,3,opt,name=quality,proto3" json:"quality,omitempty"` // The raw amount of the indicator's unit of measurement (not required to be // numeric currently) RawAmount string `protobuf:"bytes,4,opt,name=raw_amount,json=rawAmount,proto3" json:"raw_amount,omitempty"` RiskLevel RiskLevel `protobuf:"varint,5,opt,name=risk_level,json=riskLevel,proto3,enum=protolca.RiskLevel" json:"risk_level,omitempty"` SocialIndicator *Ref `protobuf:"bytes,6,opt,name=social_indicator,json=socialIndicator,proto3" json:"social_indicator,omitempty"` Source *Ref `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
An instance of this class describes a social aspect related to a social indicator in a process.
func (*SocialAspect) Descriptor
deprecated
func (*SocialAspect) Descriptor() ([]byte, []int)
Deprecated: Use SocialAspect.ProtoReflect.Descriptor instead.
func (*SocialAspect) GetActivityValue ¶
func (x *SocialAspect) GetActivityValue() float64
func (*SocialAspect) GetComment ¶
func (x *SocialAspect) GetComment() string
func (*SocialAspect) GetQuality ¶
func (x *SocialAspect) GetQuality() string
func (*SocialAspect) GetRawAmount ¶
func (x *SocialAspect) GetRawAmount() string
func (*SocialAspect) GetRiskLevel ¶
func (x *SocialAspect) GetRiskLevel() RiskLevel
func (*SocialAspect) GetSocialIndicator ¶
func (x *SocialAspect) GetSocialIndicator() *Ref
func (*SocialAspect) GetSource ¶
func (x *SocialAspect) GetSource() *Ref
func (*SocialAspect) ProtoMessage ¶
func (*SocialAspect) ProtoMessage()
func (*SocialAspect) ProtoReflect ¶
func (x *SocialAspect) ProtoReflect() protoreflect.Message
func (*SocialAspect) Reset ¶
func (x *SocialAspect) Reset()
func (*SocialAspect) String ¶
func (x *SocialAspect) String() string
type SocialIndicator ¶
type SocialIndicator struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // The name of the activity variable of the indicator. ActivityVariable string `protobuf:"bytes,10,opt,name=activity_variable,json=activityVariable,proto3" json:"activity_variable,omitempty"` // The quantity of the activity variable. ActivityQuantity *Ref `protobuf:"bytes,11,opt,name=activity_quantity,json=activityQuantity,proto3" json:"activity_quantity,omitempty"` // The unit of the activity variable. ActivityUnit *Ref `protobuf:"bytes,12,opt,name=activity_unit,json=activityUnit,proto3" json:"activity_unit,omitempty"` // The unit in which the indicator is measured. UnitOfMeasurement string `protobuf:"bytes,13,opt,name=unit_of_measurement,json=unitOfMeasurement,proto3" json:"unit_of_measurement,omitempty"` // Documentation of the evaluation scheme of the indicator. EvaluationScheme string `protobuf:"bytes,14,opt,name=evaluation_scheme,json=evaluationScheme,proto3" json:"evaluation_scheme,omitempty"` // contains filtered or unexported fields }
func (*SocialIndicator) Descriptor
deprecated
func (*SocialIndicator) Descriptor() ([]byte, []int)
Deprecated: Use SocialIndicator.ProtoReflect.Descriptor instead.
func (*SocialIndicator) GetActivityQuantity ¶
func (x *SocialIndicator) GetActivityQuantity() *Ref
func (*SocialIndicator) GetActivityUnit ¶
func (x *SocialIndicator) GetActivityUnit() *Ref
func (*SocialIndicator) GetActivityVariable ¶
func (x *SocialIndicator) GetActivityVariable() string
func (*SocialIndicator) GetCategory ¶
func (x *SocialIndicator) GetCategory() *Ref
func (*SocialIndicator) GetDescription ¶
func (x *SocialIndicator) GetDescription() string
func (*SocialIndicator) GetEntityType ¶
func (x *SocialIndicator) GetEntityType() EntityType
func (*SocialIndicator) GetEvaluationScheme ¶
func (x *SocialIndicator) GetEvaluationScheme() string
func (*SocialIndicator) GetId ¶
func (x *SocialIndicator) GetId() string
func (*SocialIndicator) GetLastChange ¶
func (x *SocialIndicator) GetLastChange() string
func (*SocialIndicator) GetLibrary ¶
func (x *SocialIndicator) GetLibrary() string
func (*SocialIndicator) GetName ¶
func (x *SocialIndicator) GetName() string
func (*SocialIndicator) GetTags ¶
func (x *SocialIndicator) GetTags() []string
func (*SocialIndicator) GetUnitOfMeasurement ¶
func (x *SocialIndicator) GetUnitOfMeasurement() string
func (*SocialIndicator) GetVersion ¶
func (x *SocialIndicator) GetVersion() string
func (*SocialIndicator) ProtoMessage ¶
func (*SocialIndicator) ProtoMessage()
func (*SocialIndicator) ProtoReflect ¶
func (x *SocialIndicator) ProtoReflect() protoreflect.Message
func (*SocialIndicator) Reset ¶
func (x *SocialIndicator) Reset()
func (*SocialIndicator) String ¶
func (x *SocialIndicator) String() string
type Source ¶
type Source struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // A URL that points to the source. Url string `protobuf:"bytes,10,opt,name=url,proto3" json:"url,omitempty"` // The full text reference of the source. TextReference string `protobuf:"bytes,11,opt,name=text_reference,json=textReference,proto3" json:"text_reference,omitempty"` // The publication year of the source. Year int32 `protobuf:"varint,12,opt,name=year,proto3" json:"year,omitempty"` // A direct link (relative or absolute URL) to the source file. ExternalFile string `protobuf:"bytes,13,opt,name=external_file,json=externalFile,proto3" json:"external_file,omitempty"` // contains filtered or unexported fields }
A source is a literature reference.
func (*Source) Descriptor
deprecated
func (*Source) GetCategory ¶
func (*Source) GetDescription ¶
func (*Source) GetEntityType ¶
func (x *Source) GetEntityType() EntityType
func (*Source) GetExternalFile ¶
func (*Source) GetLastChange ¶
func (*Source) GetLibrary ¶
func (*Source) GetTextReference ¶
func (*Source) GetVersion ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type TechFlow ¶
type TechFlow struct { Process *Ref `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` // Types that are assignable to Flow: // *TechFlow_Product // *TechFlow_Waste Flow isTechFlow_Flow `protobuf_oneof:"flow"` // contains filtered or unexported fields }
A technosphere flow of a product system. Such a flow is identified by a pair of a process and a flow where the flow can be a product or waste flow. For products flows, the process is a process that produces this product; thus, has it on the output side. For waste flows, the process is a process that consumes this waste flow; thus, has it on the input side. In a product system, there can be multiple tech-flows with the same product or waste flow but different processes, e.g. when there are multiple processes that produce the same product.
func (*TechFlow) Descriptor
deprecated
func (*TechFlow) GetProcess ¶
func (*TechFlow) GetProduct ¶
func (*TechFlow) ProtoMessage ¶
func (*TechFlow) ProtoMessage()
func (*TechFlow) ProtoReflect ¶
func (x *TechFlow) ProtoReflect() protoreflect.Message
type TechFlowContributionRequest ¶
type TechFlowContributionRequest struct { Result *Result `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` TechFlow *TechFlow `protobuf:"bytes,2,opt,name=tech_flow,json=techFlow,proto3" json:"tech_flow,omitempty"` // Types that are assignable to ResultRef: // *TechFlowContributionRequest_EnviFlow // *TechFlowContributionRequest_Impact // *TechFlowContributionRequest_Costs ResultRef isTechFlowContributionRequest_ResultRef `protobuf_oneof:"result_ref"` // contains filtered or unexported fields }
The request for a contribution result of a tech-flow.
func (*TechFlowContributionRequest) Descriptor
deprecated
func (*TechFlowContributionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TechFlowContributionRequest.ProtoReflect.Descriptor instead.
func (*TechFlowContributionRequest) GetCosts ¶
func (x *TechFlowContributionRequest) GetCosts() bool
func (*TechFlowContributionRequest) GetEnviFlow ¶
func (x *TechFlowContributionRequest) GetEnviFlow() *EnviFlow
func (*TechFlowContributionRequest) GetImpact ¶
func (x *TechFlowContributionRequest) GetImpact() *Ref
func (*TechFlowContributionRequest) GetResult ¶
func (x *TechFlowContributionRequest) GetResult() *Result
func (*TechFlowContributionRequest) GetResultRef ¶
func (m *TechFlowContributionRequest) GetResultRef() isTechFlowContributionRequest_ResultRef
func (*TechFlowContributionRequest) GetTechFlow ¶
func (x *TechFlowContributionRequest) GetTechFlow() *TechFlow
func (*TechFlowContributionRequest) ProtoMessage ¶
func (*TechFlowContributionRequest) ProtoMessage()
func (*TechFlowContributionRequest) ProtoReflect ¶
func (x *TechFlowContributionRequest) ProtoReflect() protoreflect.Message
func (*TechFlowContributionRequest) Reset ¶
func (x *TechFlowContributionRequest) Reset()
func (*TechFlowContributionRequest) String ¶
func (x *TechFlowContributionRequest) String() string
type TechFlowContributionRequest_Costs ¶
type TechFlowContributionRequest_Costs struct {
Costs bool `protobuf:"varint,5,opt,name=costs,proto3,oneof"`
}
type TechFlowContributionRequest_EnviFlow ¶
type TechFlowContributionRequest_EnviFlow struct {
EnviFlow *EnviFlow `protobuf:"bytes,3,opt,name=envi_flow,json=enviFlow,proto3,oneof"`
}
type TechFlowContributionRequest_Impact ¶
type TechFlowContributionRequest_Impact struct {
Impact *Ref `protobuf:"bytes,4,opt,name=impact,proto3,oneof"`
}
type TechFlow_Product ¶
type TechFlow_Product struct {
Product *Ref `protobuf:"bytes,2,opt,name=product,proto3,oneof"`
}
type TechFlow_Waste ¶
type TechFlow_Waste struct {
Waste *Ref `protobuf:"bytes,3,opt,name=waste,proto3,oneof"`
}
type Uncertainty ¶
type Uncertainty struct { // The uncertainty distribution type DistributionType UncertaintyType `` /* 140-byte string literal not displayed */ // The arithmetic mean (used for normal distributions). Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"` // A mathematical formula for the arithmetic mean. MeanFormula string `protobuf:"bytes,3,opt,name=mean_formula,json=meanFormula,proto3" json:"mean_formula,omitempty"` // The geometric mean value (used for log-normal distributions). GeomMean float64 `protobuf:"fixed64,4,opt,name=geom_mean,json=geomMean,proto3" json:"geom_mean,omitempty"` // A mathematical formula for the geometric mean. GeomMeanFormula string `protobuf:"bytes,5,opt,name=geom_mean_formula,json=geomMeanFormula,proto3" json:"geom_mean_formula,omitempty"` // The minimum value (used for uniform and triangle distributions). Minimum float64 `protobuf:"fixed64,6,opt,name=minimum,proto3" json:"minimum,omitempty"` // A mathematical formula for the minimum value. MinimumFormula string `protobuf:"bytes,7,opt,name=minimum_formula,json=minimumFormula,proto3" json:"minimum_formula,omitempty"` // The arithmetic standard deviation (used for normal distributions). Sd float64 `protobuf:"fixed64,8,opt,name=sd,proto3" json:"sd,omitempty"` // A mathematical formula for the arithmetic standard deviation. SdFormula string `protobuf:"bytes,9,opt,name=sd_formula,json=sdFormula,proto3" json:"sd_formula,omitempty"` // The geometric standard deviation (used for log-normal distributions). GeomSd float64 `protobuf:"fixed64,10,opt,name=geom_sd,json=geomSd,proto3" json:"geom_sd,omitempty"` // A mathematical formula for the geometric standard deviation. GeomSdFormula string `protobuf:"bytes,11,opt,name=geom_sd_formula,json=geomSdFormula,proto3" json:"geom_sd_formula,omitempty"` // The most likely value (used for triangle distributions). Mode float64 `protobuf:"fixed64,12,opt,name=mode,proto3" json:"mode,omitempty"` // A mathematical formula for the most likely value. ModeFormula string `protobuf:"bytes,13,opt,name=mode_formula,json=modeFormula,proto3" json:"mode_formula,omitempty"` // The maximum value (used for uniform and triangle distributions). Maximum float64 `protobuf:"fixed64,14,opt,name=maximum,proto3" json:"maximum,omitempty"` // A mathematical formula for the maximum value. MaximumFormula string `protobuf:"bytes,15,opt,name=maximum_formula,json=maximumFormula,proto3" json:"maximum_formula,omitempty"` // contains filtered or unexported fields }
Defines the parameter values of an uncertainty distribution. Depending on the uncertainty distribution type different parameters could be used.
func (*Uncertainty) Descriptor
deprecated
func (*Uncertainty) Descriptor() ([]byte, []int)
Deprecated: Use Uncertainty.ProtoReflect.Descriptor instead.
func (*Uncertainty) GetDistributionType ¶
func (x *Uncertainty) GetDistributionType() UncertaintyType
func (*Uncertainty) GetGeomMean ¶
func (x *Uncertainty) GetGeomMean() float64
func (*Uncertainty) GetGeomMeanFormula ¶
func (x *Uncertainty) GetGeomMeanFormula() string
func (*Uncertainty) GetGeomSd ¶
func (x *Uncertainty) GetGeomSd() float64
func (*Uncertainty) GetGeomSdFormula ¶
func (x *Uncertainty) GetGeomSdFormula() string
func (*Uncertainty) GetMaximum ¶
func (x *Uncertainty) GetMaximum() float64
func (*Uncertainty) GetMaximumFormula ¶
func (x *Uncertainty) GetMaximumFormula() string
func (*Uncertainty) GetMean ¶
func (x *Uncertainty) GetMean() float64
func (*Uncertainty) GetMeanFormula ¶
func (x *Uncertainty) GetMeanFormula() string
func (*Uncertainty) GetMinimum ¶
func (x *Uncertainty) GetMinimum() float64
func (*Uncertainty) GetMinimumFormula ¶
func (x *Uncertainty) GetMinimumFormula() string
func (*Uncertainty) GetMode ¶
func (x *Uncertainty) GetMode() float64
func (*Uncertainty) GetModeFormula ¶
func (x *Uncertainty) GetModeFormula() string
func (*Uncertainty) GetSd ¶
func (x *Uncertainty) GetSd() float64
func (*Uncertainty) GetSdFormula ¶
func (x *Uncertainty) GetSdFormula() string
func (*Uncertainty) ProtoMessage ¶
func (*Uncertainty) ProtoMessage()
func (*Uncertainty) ProtoReflect ¶
func (x *Uncertainty) ProtoReflect() protoreflect.Message
func (*Uncertainty) Reset ¶
func (x *Uncertainty) Reset()
func (*Uncertainty) String ¶
func (x *Uncertainty) String() string
type UncertaintyType ¶
type UncertaintyType int32
Enumeration of uncertainty distribution types that can be used in exchanges, parameters, LCIA factors, etc.
const ( // This default option was added automatically // and means that no values was set. UncertaintyType_UNDEFINED_UNCERTAINTY_TYPE UncertaintyType = 0 UncertaintyType_LOG_NORMAL_DISTRIBUTION UncertaintyType = 1 UncertaintyType_NORMAL_DISTRIBUTION UncertaintyType = 2 UncertaintyType_TRIANGLE_DISTRIBUTION UncertaintyType = 3 UncertaintyType_UNIFORM_DISTRIBUTION UncertaintyType = 4 )
func (UncertaintyType) Descriptor ¶
func (UncertaintyType) Descriptor() protoreflect.EnumDescriptor
func (UncertaintyType) Enum ¶
func (x UncertaintyType) Enum() *UncertaintyType
func (UncertaintyType) EnumDescriptor
deprecated
func (UncertaintyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UncertaintyType.Descriptor instead.
func (UncertaintyType) Number ¶
func (x UncertaintyType) Number() protoreflect.EnumNumber
func (UncertaintyType) String ¶
func (x UncertaintyType) String() string
func (UncertaintyType) Type ¶
func (UncertaintyType) Type() protoreflect.EnumType
type UnimplementedAboutServiceServer ¶ added in v0.0.3
type UnimplementedAboutServiceServer struct { }
UnimplementedAboutServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAboutServiceServer) About ¶ added in v0.0.3
func (UnimplementedAboutServiceServer) About(context.Context, *empty.Empty) (*AboutResponse, error)
type UnimplementedDataFetchServiceServer ¶
type UnimplementedDataFetchServiceServer struct { }
UnimplementedDataFetchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDataFetchServiceServer) Find ¶
func (UnimplementedDataFetchServiceServer) Find(context.Context, *FindRequest) (*DataSet, error)
func (UnimplementedDataFetchServiceServer) Get ¶
func (UnimplementedDataFetchServiceServer) Get(context.Context, *GetRequest) (*DataSet, error)
func (UnimplementedDataFetchServiceServer) GetAll ¶
func (UnimplementedDataFetchServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
func (UnimplementedDataFetchServiceServer) GetCategoryContent ¶
func (UnimplementedDataFetchServiceServer) GetCategoryContent(*GetCategoryContentRequest, DataFetchService_GetCategoryContentServer) error
func (UnimplementedDataFetchServiceServer) GetCategoryTree ¶
func (UnimplementedDataFetchServiceServer) GetCategoryTree(context.Context, *GetCategoryTreeRequest) (*CategoryTree, error)
func (UnimplementedDataFetchServiceServer) GetDescriptors ¶
func (UnimplementedDataFetchServiceServer) GetDescriptors(*GetDescriptorsRequest, DataFetchService_GetDescriptorsServer) error
func (UnimplementedDataFetchServiceServer) GetProvidersFor ¶
func (UnimplementedDataFetchServiceServer) GetProvidersFor(*Ref, DataFetchService_GetProvidersForServer) error
type UnimplementedDataUpdateServiceServer ¶
type UnimplementedDataUpdateServiceServer struct { }
UnimplementedDataUpdateServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDataUpdateServiceServer) CreateProductSystem ¶
func (UnimplementedDataUpdateServiceServer) CreateProductSystem(context.Context, *CreateSystemRequest) (*Ref, error)
func (UnimplementedDataUpdateServiceServer) Delete ¶
func (UnimplementedDataUpdateServiceServer) Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
type UnimplementedFlowMapServiceServer ¶
type UnimplementedFlowMapServiceServer struct { }
UnimplementedFlowMapServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFlowMapServiceServer) Delete ¶
func (UnimplementedFlowMapServiceServer) Delete(context.Context, *FlowMapInfo) (*empty.Empty, error)
func (UnimplementedFlowMapServiceServer) Get ¶
func (UnimplementedFlowMapServiceServer) Get(context.Context, *FlowMapInfo) (*FlowMap, error)
func (UnimplementedFlowMapServiceServer) GetAll ¶
func (UnimplementedFlowMapServiceServer) GetAll(*empty.Empty, FlowMapService_GetAllServer) error
type UnimplementedResultServiceServer ¶
type UnimplementedResultServiceServer struct { }
UnimplementedResultServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedResultServiceServer) Calculate ¶
func (UnimplementedResultServiceServer) Calculate(context.Context, *CalculationSetup) (*Result, error)
func (UnimplementedResultServiceServer) GetDirectContribution ¶
func (UnimplementedResultServiceServer) GetDirectContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
func (UnimplementedResultServiceServer) GetEnviFlows ¶
func (UnimplementedResultServiceServer) GetEnviFlows(*Result, ResultService_GetEnviFlowsServer) error
func (UnimplementedResultServiceServer) GetImpactCategories ¶
func (UnimplementedResultServiceServer) GetImpactCategories(*Result, ResultService_GetImpactCategoriesServer) error
func (UnimplementedResultServiceServer) GetImpactFactors ¶
func (UnimplementedResultServiceServer) GetImpactFactors(*ImpactFactorRequest, ResultService_GetImpactFactorsServer) error
func (UnimplementedResultServiceServer) GetTechFlows ¶
func (UnimplementedResultServiceServer) GetTechFlows(*Result, ResultService_GetTechFlowsServer) error
func (UnimplementedResultServiceServer) GetTotalContribution ¶
func (UnimplementedResultServiceServer) GetTotalContribution(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
func (UnimplementedResultServiceServer) GetTotalContributionOfOne ¶
func (UnimplementedResultServiceServer) GetTotalContributionOfOne(context.Context, *TechFlowContributionRequest) (*ResultValue, error)
func (UnimplementedResultServiceServer) GetTotalImpacts ¶
func (UnimplementedResultServiceServer) GetTotalImpacts(*Result, ResultService_GetTotalImpactsServer) error
func (UnimplementedResultServiceServer) GetTotalInventory ¶
func (UnimplementedResultServiceServer) GetTotalInventory(*Result, ResultService_GetTotalInventoryServer) error
type Unit ¶
type Unit struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The conversion factor to the reference unit of the unit group to which // this unit belongs. ConversionFactor float64 `protobuf:"fixed64,6,opt,name=conversion_factor,json=conversionFactor,proto3" json:"conversion_factor,omitempty"` // Indicates whether the unit is the reference unit of the unit group to // which this unit belongs. If it is the reference unit the conversion factor // must be 1.0. There should be always only one reference unit in a unit // group. The reference unit is used to convert amounts given in one unit to // amounts given in another unit of the respective unit group. ReferenceUnit bool `protobuf:"varint,7,opt,name=reference_unit,json=referenceUnit,proto3" json:"reference_unit,omitempty"` // A list of synonyms for the unit. Synonyms []string `protobuf:"bytes,8,rep,name=synonyms,proto3" json:"synonyms,omitempty"` // contains filtered or unexported fields }
An unit of measure
func (*Unit) Descriptor
deprecated
func (*Unit) GetConversionFactor ¶
func (*Unit) GetDescription ¶
func (*Unit) GetLastChange ¶
func (*Unit) GetReferenceUnit ¶
func (*Unit) GetSynonyms ¶
func (*Unit) GetVersion ¶
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
func (*Unit) ProtoReflect ¶
func (x *Unit) ProtoReflect() protoreflect.Message
type UnitGroup ¶
type UnitGroup struct { // The reference ID (typically an UUID) of the entity. Id string `protobuf:"bytes,1,opt,name=id,json=@id,proto3" json:"id,omitempty"` // The name of the entity. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the entity. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // A version number in MAJOR.MINOR.PATCH format where the MINOR and PATCH // fields are optional and the fields may have leading zeros (so 01.00.00 is // the same as 1.0.0 or 1). Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // The timestamp when the entity was changed the last time. LastChange string `protobuf:"bytes,5,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"` // The type name of the respective entity. EntityType EntityType `protobuf:"varint,6,opt,name=entity_type,json=@type,proto3,enum=protolca.commons.EntityType" json:"entity_type,omitempty"` // The category of the entity. Category *Ref `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"` // A list of optional tags. A tag is just a string which should not contain // commas (and other special characters). Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // If this entity is part of a library, this field contains the identifier of // that library. The identifier is typically just the combination of the // library name and version. Library string `protobuf:"bytes,9,opt,name=library,proto3" json:"library,omitempty"` // Some LCA data formats do not have the concept of flow properties or // quantities. This field provides a default link to a flow property for // units that are contained in this group. DefaultFlowProperty *Ref `protobuf:"bytes,10,opt,name=default_flow_property,json=defaultFlowProperty,proto3" json:"default_flow_property,omitempty"` // The units of the unit group. Units []*Unit `protobuf:"bytes,11,rep,name=units,proto3" json:"units,omitempty"` // contains filtered or unexported fields }
A group of units that can be converted into each other.
func (*UnitGroup) Descriptor
deprecated
func (*UnitGroup) GetCategory ¶
func (*UnitGroup) GetDefaultFlowProperty ¶
func (*UnitGroup) GetDescription ¶
func (*UnitGroup) GetEntityType ¶
func (x *UnitGroup) GetEntityType() EntityType
func (*UnitGroup) GetLastChange ¶
func (*UnitGroup) GetLibrary ¶
func (*UnitGroup) GetVersion ¶
func (*UnitGroup) ProtoMessage ¶
func (*UnitGroup) ProtoMessage()
func (*UnitGroup) ProtoReflect ¶
func (x *UnitGroup) ProtoReflect() protoreflect.Message
type UnsafeAboutServiceServer ¶ added in v0.0.3
type UnsafeAboutServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAboutServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AboutServiceServer will result in compilation errors.
type UnsafeDataFetchServiceServer ¶
type UnsafeDataFetchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDataFetchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataFetchServiceServer will result in compilation errors.
type UnsafeDataUpdateServiceServer ¶
type UnsafeDataUpdateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDataUpdateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataUpdateServiceServer will result in compilation errors.
type UnsafeFlowMapServiceServer ¶
type UnsafeFlowMapServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFlowMapServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlowMapServiceServer will result in compilation errors.
type UnsafeResultServiceServer ¶
type UnsafeResultServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResultServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResultServiceServer will result in compilation errors.
Source Files ¶
- about_service.pb.go
- about_service_grpc.pb.go
- client.go
- commons.pb.go
- data_fetch_service.pb.go
- data_fetch_service_grpc.pb.go
- data_update_service.pb.go
- data_update_service_grpc.pb.go
- entity_type.pb.go
- flow_map_service.pb.go
- flow_map_service_grpc.pb.go
- olca.pb.go
- result_service.pb.go
- result_service_grpc.pb.go
- result_types.pb.go