protolca

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

README

protolca

protolca is a Go package for calling functions in openLCA from Go.

Usage

Currently there is just a simple example:

go test -run ExampleDataServiceClient_GetDescriptor -v

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
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)

View Source
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)

View Source
var File_about_service_proto protoreflect.FileDescriptor
View Source
var File_commons_proto protoreflect.FileDescriptor
View Source
var File_data_fetch_service_proto protoreflect.FileDescriptor
View Source
var File_data_update_service_proto protoreflect.FileDescriptor
View Source
var File_entity_type_proto protoreflect.FileDescriptor
View Source
var File_flow_map_service_proto protoreflect.FileDescriptor
View Source
var File_result_service_proto protoreflect.FileDescriptor
View Source
var File_result_types_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Actor.ProtoReflect.Descriptor instead.

func (*Actor) GetAddress

func (x *Actor) GetAddress() string

func (*Actor) GetCategory

func (x *Actor) GetCategory() *Ref

func (*Actor) GetCity

func (x *Actor) GetCity() string

func (*Actor) GetCountry

func (x *Actor) GetCountry() string

func (*Actor) GetDescription

func (x *Actor) GetDescription() string

func (*Actor) GetEmail

func (x *Actor) GetEmail() string

func (*Actor) GetEntityType

func (x *Actor) GetEntityType() EntityType

func (*Actor) GetId

func (x *Actor) GetId() string

func (*Actor) GetLastChange

func (x *Actor) GetLastChange() string

func (*Actor) GetLibrary

func (x *Actor) GetLibrary() string

func (*Actor) GetName

func (x *Actor) GetName() string

func (*Actor) GetTags

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

func (*Actor) GetTelefax

func (x *Actor) GetTelefax() string

func (*Actor) GetTelephone

func (x *Actor) GetTelephone() string

func (*Actor) GetVersion

func (x *Actor) GetVersion() string

func (*Actor) GetWebsite

func (x *Actor) GetWebsite() string

func (*Actor) GetZipCode

func (x *Actor) GetZipCode() string

func (*Actor) ProtoMessage

func (*Actor) ProtoMessage()

func (*Actor) ProtoReflect

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

func (*Actor) Reset

func (x *Actor) Reset()

func (*Actor) String

func (x *Actor) String() string

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) Enum

func (x AllocationType) Enum() *AllocationType

func (AllocationType) EnumDescriptor deprecated

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

Deprecated: Use AllocationType.Descriptor instead.

func (AllocationType) Number

func (AllocationType) String

func (x AllocationType) String() string

func (AllocationType) Type

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) Enum

func (x CalculationType) Enum() *CalculationType

func (CalculationType) EnumDescriptor deprecated

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

Deprecated: Use CalculationType.Descriptor instead.

func (CalculationType) Number

func (CalculationType) String

func (x CalculationType) String() string

func (CalculationType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCategory

func (x *Category) GetCategory() *Ref

func (*Category) GetDescription

func (x *Category) GetDescription() string

func (*Category) GetEntityType

func (x *Category) GetEntityType() EntityType

func (*Category) GetId

func (x *Category) GetId() string

func (*Category) GetLastChange

func (x *Category) GetLastChange() string

func (*Category) GetLibrary

func (x *Category) GetLibrary() string

func (*Category) GetModelType

func (x *Category) GetModelType() ModelType

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) GetTags

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

func (*Category) GetVersion

func (x *Category) GetVersion() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

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 NewLocalClient(port int) (*Client, error)

func (*Client) About added in v0.0.3

func (c *Client) About() (*AboutResponse, error)

func (*Client) Close added in v0.0.3

func (c *Client) Close() error

func (*Client) DataFetch added in v0.0.3

func (c *Client) DataFetch() DataFetchServiceClient

func (*Client) EachDescriptor added in v0.0.3

func (c *Client) EachDescriptor(
	modelType ModelType, fn func(ref *Ref) bool) error

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 (*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) Enum

func (CreateSystemRequest_DefaultProviders) EnumDescriptor deprecated

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

Deprecated: Use CreateSystemRequest_DefaultProviders.Descriptor instead.

func (CreateSystemRequest_DefaultProviders) Number

func (CreateSystemRequest_DefaultProviders) String

func (CreateSystemRequest_DefaultProviders) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Currency.ProtoReflect.Descriptor instead.

func (*Currency) GetCategory

func (x *Currency) GetCategory() *Ref

func (*Currency) GetCode

func (x *Currency) GetCode() string

func (*Currency) GetConversionFactor

func (x *Currency) GetConversionFactor() float64

func (*Currency) GetDescription

func (x *Currency) GetDescription() string

func (*Currency) GetEntityType

func (x *Currency) GetEntityType() EntityType

func (*Currency) GetId

func (x *Currency) GetId() string

func (*Currency) GetLastChange

func (x *Currency) GetLastChange() string

func (*Currency) GetLibrary

func (x *Currency) GetLibrary() string

func (*Currency) GetName

func (x *Currency) GetName() string

func (*Currency) GetReferenceCurrency

func (x *Currency) GetReferenceCurrency() *Ref

func (*Currency) GetTags

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

func (*Currency) GetVersion

func (x *Currency) GetVersion() string

func (*Currency) ProtoMessage

func (*Currency) ProtoMessage()

func (*Currency) ProtoReflect

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

func (*Currency) Reset

func (x *Currency) Reset()

func (*Currency) String

func (x *Currency) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DQScore.ProtoReflect.Descriptor instead.

func (*DQScore) GetDescription

func (x *DQScore) GetDescription() string

func (*DQScore) GetLabel

func (x *DQScore) GetLabel() string

func (*DQScore) GetPosition

func (x *DQScore) GetPosition() int32

func (*DQScore) GetUncertainty

func (x *DQScore) GetUncertainty() float64

func (*DQScore) ProtoMessage

func (*DQScore) ProtoMessage()

func (*DQScore) ProtoReflect

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

func (*DQScore) Reset

func (x *DQScore) Reset()

func (*DQScore) String

func (x *DQScore) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DQSystem.ProtoReflect.Descriptor instead.

func (*DQSystem) GetCategory

func (x *DQSystem) GetCategory() *Ref

func (*DQSystem) GetDescription

func (x *DQSystem) GetDescription() string

func (*DQSystem) GetEntityType

func (x *DQSystem) GetEntityType() EntityType

func (*DQSystem) GetHasUncertainties

func (x *DQSystem) GetHasUncertainties() bool

func (*DQSystem) GetId

func (x *DQSystem) GetId() string

func (*DQSystem) GetIndicators

func (x *DQSystem) GetIndicators() []*DQIndicator

func (*DQSystem) GetLastChange

func (x *DQSystem) GetLastChange() string

func (*DQSystem) GetLibrary

func (x *DQSystem) GetLibrary() string

func (*DQSystem) GetName

func (x *DQSystem) GetName() string

func (*DQSystem) GetSource

func (x *DQSystem) GetSource() *Ref

func (*DQSystem) GetTags

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

func (*DQSystem) GetVersion

func (x *DQSystem) GetVersion() string

func (*DQSystem) ProtoMessage

func (*DQSystem) ProtoMessage()

func (*DQSystem) ProtoReflect

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

func (*DQSystem) Reset

func (x *DQSystem) Reset()

func (*DQSystem) String

func (x *DQSystem) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use DataSet.ProtoReflect.Descriptor instead.

func (*DataSet) GetActor

func (x *DataSet) GetActor() *Actor

func (*DataSet) GetCategory

func (x *DataSet) GetCategory() *Category

func (*DataSet) GetCurrency

func (x *DataSet) GetCurrency() *Currency

func (*DataSet) GetDqSystem

func (x *DataSet) GetDqSystem() *DQSystem

func (*DataSet) GetFlow

func (x *DataSet) GetFlow() *Flow

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 (x *DataSet) GetLocation() *Location

func (*DataSet) GetModel

func (m *DataSet) GetModel() isDataSet_Model

func (*DataSet) GetParameter

func (x *DataSet) GetParameter() *Parameter

func (*DataSet) GetProcess

func (x *DataSet) GetProcess() *Process

func (*DataSet) GetProductSystem

func (x *DataSet) GetProductSystem() *ProductSystem

func (*DataSet) GetProject

func (x *DataSet) GetProject() *Project

func (*DataSet) GetSocialIndicator

func (x *DataSet) GetSocialIndicator() *SocialIndicator

func (*DataSet) GetSource

func (x *DataSet) GetSource() *Source

func (*DataSet) GetUnitGroup

func (x *DataSet) GetUnitGroup() *UnitGroup

func (*DataSet) ProtoMessage

func (*DataSet) ProtoMessage()

func (*DataSet) ProtoReflect

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

func (*DataSet) Reset

func (x *DataSet) Reset()

func (*DataSet) String

func (x *DataSet) String() string

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.

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

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) Descriptor() ([]byte, []int)

Deprecated: Use EnviFlow.ProtoReflect.Descriptor instead.

func (*EnviFlow) GetFlow

func (x *EnviFlow) GetFlow() *Ref

func (*EnviFlow) GetIsInput

func (x *EnviFlow) GetIsInput() bool

func (*EnviFlow) GetLocation

func (x *EnviFlow) GetLocation() *Ref

func (*EnviFlow) ProtoMessage

func (*EnviFlow) ProtoMessage()

func (*EnviFlow) ProtoReflect

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

func (*EnviFlow) Reset

func (x *EnviFlow) Reset()

func (*EnviFlow) String

func (x *EnviFlow) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Exchange.ProtoReflect.Descriptor instead.

func (*Exchange) GetAmount

func (x *Exchange) GetAmount() float64

func (*Exchange) GetAmountFormula

func (x *Exchange) GetAmountFormula() string

func (*Exchange) GetAvoidedProduct

func (x *Exchange) GetAvoidedProduct() bool

func (*Exchange) GetBaseUncertainty

func (x *Exchange) GetBaseUncertainty() float64

func (*Exchange) GetCostFormula

func (x *Exchange) GetCostFormula() string

func (*Exchange) GetCostValue

func (x *Exchange) GetCostValue() float64

func (*Exchange) GetCurrency

func (x *Exchange) GetCurrency() *Ref

func (*Exchange) GetDefaultProvider

func (x *Exchange) GetDefaultProvider() *Ref

func (*Exchange) GetDescription

func (x *Exchange) GetDescription() string

func (*Exchange) GetDqEntry

func (x *Exchange) GetDqEntry() string

func (*Exchange) GetFlow

func (x *Exchange) GetFlow() *Ref

func (*Exchange) GetFlowProperty

func (x *Exchange) GetFlowProperty() *Ref

func (*Exchange) GetInput

func (x *Exchange) GetInput() bool

func (*Exchange) GetInternalId

func (x *Exchange) GetInternalId() int32

func (*Exchange) GetQuantitativeReference

func (x *Exchange) GetQuantitativeReference() bool

func (*Exchange) GetUncertainty

func (x *Exchange) GetUncertainty() *Uncertainty

func (*Exchange) GetUnit

func (x *Exchange) GetUnit() *Ref

func (*Exchange) ProtoMessage

func (*Exchange) ProtoMessage()

func (*Exchange) ProtoReflect

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

func (*Exchange) Reset

func (x *Exchange) Reset()

func (*Exchange) String

func (x *Exchange) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Flow.ProtoReflect.Descriptor instead.

func (*Flow) GetCas

func (x *Flow) GetCas() string

func (*Flow) GetCategory

func (x *Flow) GetCategory() *Ref

func (*Flow) GetDescription

func (x *Flow) GetDescription() string

func (*Flow) GetEntityType

func (x *Flow) GetEntityType() EntityType

func (*Flow) GetFlowProperties

func (x *Flow) GetFlowProperties() []*FlowPropertyFactor

func (*Flow) GetFlowType

func (x *Flow) GetFlowType() FlowType

func (*Flow) GetFormula

func (x *Flow) GetFormula() string

func (*Flow) GetId

func (x *Flow) GetId() string

func (*Flow) GetInfrastructureFlow

func (x *Flow) GetInfrastructureFlow() bool

func (*Flow) GetLastChange

func (x *Flow) GetLastChange() string

func (*Flow) GetLibrary

func (x *Flow) GetLibrary() string

func (*Flow) GetLocation

func (x *Flow) GetLocation() *Ref

func (*Flow) GetName

func (x *Flow) GetName() string

func (*Flow) GetSynonyms

func (x *Flow) GetSynonyms() string

func (*Flow) GetTags

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

func (*Flow) GetVersion

func (x *Flow) GetVersion() string

func (*Flow) ProtoMessage

func (*Flow) ProtoMessage()

func (*Flow) ProtoReflect

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

func (*Flow) Reset

func (x *Flow) Reset()

func (*Flow) String

func (x *Flow) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FlowMap.ProtoReflect.Descriptor instead.

func (*FlowMap) GetDescription

func (x *FlowMap) GetDescription() string

func (*FlowMap) GetId

func (x *FlowMap) GetId() string

func (*FlowMap) GetLastChange

func (x *FlowMap) GetLastChange() string

func (*FlowMap) GetMappings

func (x *FlowMap) GetMappings() []*FlowMapEntry

func (*FlowMap) GetName

func (x *FlowMap) GetName() string

func (*FlowMap) GetSource

func (x *FlowMap) GetSource() *Ref

func (*FlowMap) GetTarget

func (x *FlowMap) GetTarget() *Ref

func (*FlowMap) GetVersion

func (x *FlowMap) GetVersion() string

func (*FlowMap) ProtoMessage

func (*FlowMap) ProtoMessage()

func (*FlowMap) ProtoReflect

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

func (*FlowMap) Reset

func (x *FlowMap) Reset()

func (*FlowMap) String

func (x *FlowMap) String() string

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.

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) Enum

func (FlowPropertyType) EnumDescriptor deprecated

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

Deprecated: Use FlowPropertyType.Descriptor instead.

func (FlowPropertyType) Number

func (FlowPropertyType) String

func (x FlowPropertyType) String() string

func (FlowPropertyType) Type

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.

const (
	// This default option was added automatically
	// and means that no values was set.
	FlowType_UNDEFINED_FLOW_TYPE FlowType = 0
	FlowType_ELEMENTARY_FLOW     FlowType = 1
	FlowType_PRODUCT_FLOW        FlowType = 2
	FlowType_WASTE_FLOW          FlowType = 3
)

func (FlowType) Descriptor

func (FlowType) Descriptor() protoreflect.EnumDescriptor

func (FlowType) Enum

func (x FlowType) Enum() *FlowType

func (FlowType) EnumDescriptor deprecated

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

Deprecated: Use FlowType.Descriptor instead.

func (FlowType) Number

func (x FlowType) Number() protoreflect.EnumNumber

func (FlowType) String

func (x FlowType) String() string

func (FlowType) Type

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 (*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 (*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 (*GetDescriptorsRequest_Attributes) ProtoMessage

func (*GetDescriptorsRequest_Attributes) ProtoMessage()

func (*GetDescriptorsRequest_Attributes) ProtoReflect

func (*GetDescriptorsRequest_Attributes) Reset

func (*GetDescriptorsRequest_Attributes) 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) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetCategory

func (x *Location) GetCategory() *Ref

func (*Location) GetCode

func (x *Location) GetCode() string

func (*Location) GetDescription

func (x *Location) GetDescription() string

func (*Location) GetEntityType

func (x *Location) GetEntityType() EntityType

func (*Location) GetGeometryBytes

func (x *Location) GetGeometryBytes() []byte

func (*Location) GetId

func (x *Location) GetId() string

func (*Location) GetLastChange

func (x *Location) GetLastChange() string

func (*Location) GetLatitude

func (x *Location) GetLatitude() float64

func (*Location) GetLibrary

func (x *Location) GetLibrary() string

func (*Location) GetLongitude

func (x *Location) GetLongitude() float64

func (*Location) GetName

func (x *Location) GetName() string

func (*Location) GetTags

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

func (*Location) GetVersion

func (x *Location) GetVersion() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

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) Enum

func (x ModelType) Enum() *ModelType

func (ModelType) EnumDescriptor deprecated

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

Deprecated: Use ModelType.Descriptor instead.

func (ModelType) Number

func (x ModelType) Number() protoreflect.EnumNumber

func (ModelType) String

func (x ModelType) String() string

func (ModelType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use NwFactor.ProtoReflect.Descriptor instead.

func (*NwFactor) GetImpactCategory

func (x *NwFactor) GetImpactCategory() *Ref

func (*NwFactor) GetNormalisationFactor

func (x *NwFactor) GetNormalisationFactor() float64

func (*NwFactor) GetWeightingFactor

func (x *NwFactor) GetWeightingFactor() float64

func (*NwFactor) ProtoMessage

func (*NwFactor) ProtoMessage()

func (*NwFactor) ProtoReflect

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

func (*NwFactor) Reset

func (x *NwFactor) Reset()

func (*NwFactor) String

func (x *NwFactor) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use NwSet.ProtoReflect.Descriptor instead.

func (*NwSet) GetDescription

func (x *NwSet) GetDescription() string

func (*NwSet) GetFactors

func (x *NwSet) GetFactors() []*NwFactor

func (*NwSet) GetId

func (x *NwSet) GetId() string

func (*NwSet) GetLastChange

func (x *NwSet) GetLastChange() string

func (*NwSet) GetName

func (x *NwSet) GetName() string

func (*NwSet) GetVersion

func (x *NwSet) GetVersion() string

func (*NwSet) GetWeightedScoreUnit

func (x *NwSet) GetWeightedScoreUnit() string

func (*NwSet) ProtoMessage

func (*NwSet) ProtoMessage()

func (*NwSet) ProtoReflect

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

func (*NwSet) Reset

func (x *NwSet) Reset()

func (*NwSet) String

func (x *NwSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Parameter.ProtoReflect.Descriptor instead.

func (*Parameter) GetCategory

func (x *Parameter) GetCategory() *Ref

func (*Parameter) GetDescription

func (x *Parameter) GetDescription() string

func (*Parameter) GetEntityType

func (x *Parameter) GetEntityType() EntityType

func (*Parameter) GetFormula

func (x *Parameter) GetFormula() string

func (*Parameter) GetId

func (x *Parameter) GetId() string

func (*Parameter) GetInputParameter

func (x *Parameter) GetInputParameter() bool

func (*Parameter) GetLastChange

func (x *Parameter) GetLastChange() string

func (*Parameter) GetLibrary

func (x *Parameter) GetLibrary() string

func (*Parameter) GetName

func (x *Parameter) GetName() string

func (*Parameter) GetParameterScope

func (x *Parameter) GetParameterScope() ParameterScope

func (*Parameter) GetTags

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

func (*Parameter) GetUncertainty

func (x *Parameter) GetUncertainty() *Uncertainty

func (*Parameter) GetValue

func (x *Parameter) GetValue() float64

func (*Parameter) GetVersion

func (x *Parameter) GetVersion() string

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) ProtoReflect

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

func (*Parameter) Reset

func (x *Parameter) Reset()

func (*Parameter) String

func (x *Parameter) String() string

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) Enum

func (x ParameterScope) Enum() *ParameterScope

func (ParameterScope) EnumDescriptor deprecated

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

Deprecated: Use ParameterScope.Descriptor instead.

func (ParameterScope) Number

func (ParameterScope) String

func (x ParameterScope) String() string

func (ParameterScope) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Process.ProtoReflect.Descriptor instead.

func (*Process) GetAllocationFactors

func (x *Process) GetAllocationFactors() []*AllocationFactor

func (*Process) GetCategory

func (x *Process) GetCategory() *Ref

func (*Process) GetDefaultAllocationMethod

func (x *Process) GetDefaultAllocationMethod() AllocationType

func (*Process) GetDescription

func (x *Process) GetDescription() string

func (*Process) GetDqEntry

func (x *Process) GetDqEntry() string

func (*Process) GetDqSystem

func (x *Process) GetDqSystem() *Ref

func (*Process) GetEntityType

func (x *Process) GetEntityType() EntityType

func (*Process) GetExchangeDqSystem

func (x *Process) GetExchangeDqSystem() *Ref

func (*Process) GetExchanges

func (x *Process) GetExchanges() []*Exchange

func (*Process) GetId

func (x *Process) GetId() string

func (*Process) GetInfrastructureProcess

func (x *Process) GetInfrastructureProcess() bool

func (*Process) GetLastChange

func (x *Process) GetLastChange() string

func (*Process) GetLastInternalId

func (x *Process) GetLastInternalId() int32

func (*Process) GetLibrary

func (x *Process) GetLibrary() string

func (*Process) GetLocation

func (x *Process) GetLocation() *Ref

func (*Process) GetName

func (x *Process) GetName() string

func (*Process) GetParameters

func (x *Process) GetParameters() []*Parameter

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 (x *Process) GetSocialDqSystem() *Ref

func (*Process) GetTags

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

func (*Process) GetVersion

func (x *Process) GetVersion() string

func (*Process) ProtoMessage

func (*Process) ProtoMessage()

func (*Process) ProtoReflect

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

func (*Process) Reset

func (x *Process) Reset()

func (*Process) String

func (x *Process) String() string

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 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) 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

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 (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) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCategory

func (x *Project) GetCategory() *Ref

func (*Project) GetDescription

func (x *Project) GetDescription() string

func (*Project) GetEntityType

func (x *Project) GetEntityType() EntityType

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetImpactMethod

func (x *Project) GetImpactMethod() *Ref

func (*Project) GetLastChange

func (x *Project) GetLastChange() string

func (*Project) GetLibrary

func (x *Project) GetLibrary() string

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetNwSet

func (x *Project) GetNwSet() *NwSet

func (*Project) GetTags

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

func (*Project) GetVersion

func (x *Project) GetVersion() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetCategoryPath

func (x *Ref) GetCategoryPath() []string

func (*Ref) GetDescription

func (x *Ref) GetDescription() string

func (*Ref) GetEntityType

func (x *Ref) GetEntityType() EntityType

func (*Ref) GetFlowType

func (x *Ref) GetFlowType() FlowType

func (*Ref) GetId

func (x *Ref) GetId() string

func (*Ref) GetLastChange

func (x *Ref) GetLastChange() string

func (*Ref) GetLibrary

func (x *Ref) GetLibrary() string

func (*Ref) GetLocation

func (x *Ref) GetLocation() string

func (*Ref) GetName

func (x *Ref) GetName() string

func (*Ref) GetProcessType

func (x *Ref) GetProcessType() ProcessType

func (*Ref) GetRefUnit

func (x *Ref) GetRefUnit() string

func (*Ref) GetVersion

func (x *Ref) GetVersion() string

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect

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

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

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.

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) Enum

func (x RiskLevel) Enum() *RiskLevel

func (RiskLevel) EnumDescriptor deprecated

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

Deprecated: Use RiskLevel.Descriptor instead.

func (RiskLevel) Number

func (x RiskLevel) Number() protoreflect.EnumNumber

func (RiskLevel) String

func (x RiskLevel) String() string

func (RiskLevel) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetCategory

func (x *Source) GetCategory() *Ref

func (*Source) GetDescription

func (x *Source) GetDescription() string

func (*Source) GetEntityType

func (x *Source) GetEntityType() EntityType

func (*Source) GetExternalFile

func (x *Source) GetExternalFile() string

func (*Source) GetId

func (x *Source) GetId() string

func (*Source) GetLastChange

func (x *Source) GetLastChange() string

func (*Source) GetLibrary

func (x *Source) GetLibrary() string

func (*Source) GetName

func (x *Source) GetName() string

func (*Source) GetTags

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

func (*Source) GetTextReference

func (x *Source) GetTextReference() string

func (*Source) GetUrl

func (x *Source) GetUrl() string

func (*Source) GetVersion

func (x *Source) GetVersion() string

func (*Source) GetYear

func (x *Source) GetYear() int32

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TechFlow.ProtoReflect.Descriptor instead.

func (*TechFlow) GetFlow

func (m *TechFlow) GetFlow() isTechFlow_Flow

func (*TechFlow) GetProcess

func (x *TechFlow) GetProcess() *Ref

func (*TechFlow) GetProduct

func (x *TechFlow) GetProduct() *Ref

func (*TechFlow) GetWaste

func (x *TechFlow) GetWaste() *Ref

func (*TechFlow) ProtoMessage

func (*TechFlow) ProtoMessage()

func (*TechFlow) ProtoReflect

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

func (*TechFlow) Reset

func (x *TechFlow) Reset()

func (*TechFlow) String

func (x *TechFlow) String() string

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 (*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) Enum

func (x UncertaintyType) Enum() *UncertaintyType

func (UncertaintyType) EnumDescriptor deprecated

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

Deprecated: Use UncertaintyType.Descriptor instead.

func (UncertaintyType) Number

func (UncertaintyType) String

func (x UncertaintyType) String() string

func (UncertaintyType) Type

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

type UnimplementedDataFetchServiceServer

type UnimplementedDataFetchServiceServer struct {
}

UnimplementedDataFetchServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataFetchServiceServer) Find

func (UnimplementedDataFetchServiceServer) Get

func (UnimplementedDataFetchServiceServer) GetAll

func (UnimplementedDataFetchServiceServer) GetCategoryTree

func (UnimplementedDataFetchServiceServer) GetProvidersFor

func (UnimplementedDataFetchServiceServer) Search

type UnimplementedDataUpdateServiceServer

type UnimplementedDataUpdateServiceServer struct {
}

UnimplementedDataUpdateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataUpdateServiceServer) CreateProductSystem

func (UnimplementedDataUpdateServiceServer) Delete

func (UnimplementedDataUpdateServiceServer) Put

type UnimplementedFlowMapServiceServer

type UnimplementedFlowMapServiceServer struct {
}

UnimplementedFlowMapServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFlowMapServiceServer) Delete

func (UnimplementedFlowMapServiceServer) Get

func (UnimplementedFlowMapServiceServer) GetAll

func (UnimplementedFlowMapServiceServer) Put

type UnimplementedResultServiceServer

type UnimplementedResultServiceServer struct {
}

UnimplementedResultServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedResultServiceServer) Calculate

func (UnimplementedResultServiceServer) Dispose

func (UnimplementedResultServiceServer) GetDirectContribution

func (UnimplementedResultServiceServer) GetEnviFlows

func (UnimplementedResultServiceServer) GetImpactCategories

func (UnimplementedResultServiceServer) GetImpactFactors

func (UnimplementedResultServiceServer) GetTechFlows

func (UnimplementedResultServiceServer) GetTotalContribution

func (UnimplementedResultServiceServer) GetTotalContributionOfOne

func (UnimplementedResultServiceServer) GetTotalImpacts

func (UnimplementedResultServiceServer) GetTotalInventory

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) Descriptor() ([]byte, []int)

Deprecated: Use Unit.ProtoReflect.Descriptor instead.

func (*Unit) GetConversionFactor

func (x *Unit) GetConversionFactor() float64

func (*Unit) GetDescription

func (x *Unit) GetDescription() string

func (*Unit) GetId

func (x *Unit) GetId() string

func (*Unit) GetLastChange

func (x *Unit) GetLastChange() string

func (*Unit) GetName

func (x *Unit) GetName() string

func (*Unit) GetReferenceUnit

func (x *Unit) GetReferenceUnit() bool

func (*Unit) GetSynonyms

func (x *Unit) GetSynonyms() []string

func (*Unit) GetVersion

func (x *Unit) GetVersion() string

func (*Unit) ProtoMessage

func (*Unit) ProtoMessage()

func (*Unit) ProtoReflect

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

func (*Unit) Reset

func (x *Unit) Reset()

func (*Unit) String

func (x *Unit) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UnitGroup.ProtoReflect.Descriptor instead.

func (*UnitGroup) GetCategory

func (x *UnitGroup) GetCategory() *Ref

func (*UnitGroup) GetDefaultFlowProperty

func (x *UnitGroup) GetDefaultFlowProperty() *Ref

func (*UnitGroup) GetDescription

func (x *UnitGroup) GetDescription() string

func (*UnitGroup) GetEntityType

func (x *UnitGroup) GetEntityType() EntityType

func (*UnitGroup) GetId

func (x *UnitGroup) GetId() string

func (*UnitGroup) GetLastChange

func (x *UnitGroup) GetLastChange() string

func (*UnitGroup) GetLibrary

func (x *UnitGroup) GetLibrary() string

func (*UnitGroup) GetName

func (x *UnitGroup) GetName() string

func (*UnitGroup) GetTags

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

func (*UnitGroup) GetUnits

func (x *UnitGroup) GetUnits() []*Unit

func (*UnitGroup) GetVersion

func (x *UnitGroup) GetVersion() string

func (*UnitGroup) ProtoMessage

func (*UnitGroup) ProtoMessage()

func (*UnitGroup) ProtoReflect

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

func (*UnitGroup) Reset

func (x *UnitGroup) Reset()

func (*UnitGroup) String

func (x *UnitGroup) String() string

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.

Jump to

Keyboard shortcuts

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