cityaqrpc

package
v0.0.0-...-be1e2e0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Emission_name = map[int32]string{
		0: "UNKNOWN_EMISSION",
		1: "PM2_5",
		2: "NH3",
		3: "NOx",
		4: "SOx",
		5: "VOC",
	}
	Emission_value = map[string]int32{
		"UNKNOWN_EMISSION": 0,
		"PM2_5":            1,
		"NH3":              2,
		"NOx":              3,
		"SOx":              4,
		"VOC":              5,
	}
)

Enum value maps for Emission.

View Source
var (
	ImpactType_name = map[int32]string{
		0: "UNKNOWN_IMPACTTYPE",
		1: "Emissions",
		2: "Concentrations",
	}
	ImpactType_value = map[string]int32{
		"UNKNOWN_IMPACTTYPE": 0,
		"Emissions":          1,
		"Concentrations":     2,
	}
)

Enum value maps for ImpactType.

View Source
var (
	SimulationType_name = map[int32]string{
		0: "UNKNOWN_SIMULATIONTYPE",
		1: "Total",
		2: "CityTotal",
		3: "CityMarginal",
	}
	SimulationType_value = map[string]int32{
		"UNKNOWN_SIMULATIONTYPE": 0,
		"Total":                  1,
		"CityTotal":              2,
		"CityMarginal":           3,
	}
)

Enum value maps for SimulationType.

View Source
var File_cityaq_proto protoreflect.FileDescriptor

Functions

func RegisterCityAQServer

func RegisterCityAQServer(s *grpc.Server, srv CityAQServer)

Types

type CitiesRequest

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

func (*CitiesRequest) Descriptor deprecated

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

Deprecated: Use CitiesRequest.ProtoReflect.Descriptor instead.

func (*CitiesRequest) ProtoMessage

func (*CitiesRequest) ProtoMessage()

func (*CitiesRequest) ProtoReflect

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

func (*CitiesRequest) Reset

func (x *CitiesRequest) Reset()

func (*CitiesRequest) String

func (x *CitiesRequest) String() string

type CitiesResponse

type CitiesResponse struct {

	// The names of the cities
	Names []string `protobuf:"bytes,1,rep,name=Names,proto3" json:"Names,omitempty"`
	// contains filtered or unexported fields
}

func (*CitiesResponse) Descriptor deprecated

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

Deprecated: Use CitiesResponse.ProtoReflect.Descriptor instead.

func (*CitiesResponse) GetNames

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

func (*CitiesResponse) ProtoMessage

func (*CitiesResponse) ProtoMessage()

func (*CitiesResponse) ProtoReflect

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

func (*CitiesResponse) Reset

func (x *CitiesResponse) Reset()

func (*CitiesResponse) String

func (x *CitiesResponse) String() string

type CityAQClient

type CityAQClient interface {
	// Cities returns the available cities.
	Cities(ctx context.Context, in *CitiesRequest, opts ...grpc.CallOption) (*CitiesResponse, error)
	// CityGeometry returns the boundary of the specified city.
	CityGeometry(ctx context.Context, in *CityGeometryRequest, opts ...grpc.CallOption) (*CityGeometryResponse, error)
	// GriddedEmissions returns the distribution within the city of
	// 1 kilotonne of emissions.
	GriddedEmissions(ctx context.Context, in *GriddedEmissionsRequest, opts ...grpc.CallOption) (*GriddedEmissionsResponse, error)
	// EmissionsGridBounds returns the bounds of the grid used in GriddedEmissions.
	EmissionsGridBounds(ctx context.Context, in *EmissionsGridBoundsRequest, opts ...grpc.CallOption) (*EmissionsGridBoundsResponse, error)
	// GriddedConcentrations returns the concentrations resulting from the
	// corresponding GriddedEmissions.
	GriddedConcentrations(ctx context.Context, in *GriddedConcentrationsRequest, opts ...grpc.CallOption) (*GriddedConcentrationsResponse, error)
	// MapScale returns the minimum and maximum values of the result
	// of the given request.
	MapScale(ctx context.Context, in *MapScaleRequest, opts ...grpc.CallOption) (*MapScaleResponse, error)
	// GriddedPopulation returns the population counts---gridded to the
	// concentration grid---associated with the given request.
	GriddedPopulation(ctx context.Context, in *GriddedPopulationRequest, opts ...grpc.CallOption) (*GriddedPopulationResponse, error)
	// ImpactSummary returns a summary of the impacts from the given request.
	ImpactSummary(ctx context.Context, in *ImpactSummaryRequest, opts ...grpc.CallOption) (*ImpactSummaryResponse, error)
	EmissionsInventorySectors(ctx context.Context, in *EmissionsInventorySectorsRequest, opts ...grpc.CallOption) (*EmissionsInventorySectorsResponse, error)
}

CityAQClient is the client API for CityAQ service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCityAQClient

func NewCityAQClient(cc grpc.ClientConnInterface) CityAQClient

type CityAQServer

type CityAQServer interface {
	// Cities returns the available cities.
	Cities(context.Context, *CitiesRequest) (*CitiesResponse, error)
	// CityGeometry returns the boundary of the specified city.
	CityGeometry(context.Context, *CityGeometryRequest) (*CityGeometryResponse, error)
	// GriddedEmissions returns the distribution within the city of
	// 1 kilotonne of emissions.
	GriddedEmissions(context.Context, *GriddedEmissionsRequest) (*GriddedEmissionsResponse, error)
	// EmissionsGridBounds returns the bounds of the grid used in GriddedEmissions.
	EmissionsGridBounds(context.Context, *EmissionsGridBoundsRequest) (*EmissionsGridBoundsResponse, error)
	// GriddedConcentrations returns the concentrations resulting from the
	// corresponding GriddedEmissions.
	GriddedConcentrations(context.Context, *GriddedConcentrationsRequest) (*GriddedConcentrationsResponse, error)
	// MapScale returns the minimum and maximum values of the result
	// of the given request.
	MapScale(context.Context, *MapScaleRequest) (*MapScaleResponse, error)
	// GriddedPopulation returns the population counts---gridded to the
	// concentration grid---associated with the given request.
	GriddedPopulation(context.Context, *GriddedPopulationRequest) (*GriddedPopulationResponse, error)
	// ImpactSummary returns a summary of the impacts from the given request.
	ImpactSummary(context.Context, *ImpactSummaryRequest) (*ImpactSummaryResponse, error)
	EmissionsInventorySectors(context.Context, *EmissionsInventorySectorsRequest) (*EmissionsInventorySectorsResponse, error)
}

CityAQServer is the server API for CityAQ service.

type CityGeometryRequest

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

func (*CityGeometryRequest) Descriptor deprecated

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

Deprecated: Use CityGeometryRequest.ProtoReflect.Descriptor instead.

func (*CityGeometryRequest) GetCityName

func (x *CityGeometryRequest) GetCityName() string

func (*CityGeometryRequest) ProtoMessage

func (*CityGeometryRequest) ProtoMessage()

func (*CityGeometryRequest) ProtoReflect

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

func (*CityGeometryRequest) Reset

func (x *CityGeometryRequest) Reset()

func (*CityGeometryRequest) String

func (x *CityGeometryRequest) String() string

type CityGeometryResponse

type CityGeometryResponse struct {
	Polygons []*Polygon `protobuf:"bytes,1,rep,name=Polygons,proto3" json:"Polygons,omitempty"`
	// contains filtered or unexported fields
}

func (*CityGeometryResponse) Descriptor deprecated

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

Deprecated: Use CityGeometryResponse.ProtoReflect.Descriptor instead.

func (*CityGeometryResponse) GetPolygons

func (x *CityGeometryResponse) GetPolygons() []*Polygon

func (*CityGeometryResponse) ProtoMessage

func (*CityGeometryResponse) ProtoMessage()

func (*CityGeometryResponse) ProtoReflect

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

func (*CityGeometryResponse) Reset

func (x *CityGeometryResponse) Reset()

func (*CityGeometryResponse) String

func (x *CityGeometryResponse) String() string

type Emission

type Emission int32
const (
	Emission_UNKNOWN_EMISSION Emission = 0
	Emission_PM2_5            Emission = 1
	Emission_NH3              Emission = 2
	Emission_NOx              Emission = 3
	Emission_SOx              Emission = 4
	Emission_VOC              Emission = 5
)

func (Emission) Descriptor

func (Emission) Descriptor() protoreflect.EnumDescriptor

func (Emission) Enum

func (x Emission) Enum() *Emission

func (Emission) EnumDescriptor deprecated

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

Deprecated: Use Emission.Descriptor instead.

func (Emission) Number

func (x Emission) Number() protoreflect.EnumNumber

func (Emission) String

func (x Emission) String() string

func (Emission) Type

type EmissionsGridBoundsRequest

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

func (*EmissionsGridBoundsRequest) Descriptor deprecated

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

Deprecated: Use EmissionsGridBoundsRequest.ProtoReflect.Descriptor instead.

func (*EmissionsGridBoundsRequest) GetCityName

func (x *EmissionsGridBoundsRequest) GetCityName() string

func (*EmissionsGridBoundsRequest) GetSourceType

func (x *EmissionsGridBoundsRequest) GetSourceType() string

func (*EmissionsGridBoundsRequest) ProtoMessage

func (*EmissionsGridBoundsRequest) ProtoMessage()

func (*EmissionsGridBoundsRequest) ProtoReflect

func (*EmissionsGridBoundsRequest) Reset

func (x *EmissionsGridBoundsRequest) Reset()

func (*EmissionsGridBoundsRequest) String

func (x *EmissionsGridBoundsRequest) String() string

type EmissionsGridBoundsResponse

type EmissionsGridBoundsResponse struct {
	Min *Point `protobuf:"bytes,1,opt,name=Min,proto3" json:"Min,omitempty"`
	Max *Point `protobuf:"bytes,2,opt,name=Max,proto3" json:"Max,omitempty"`
	// contains filtered or unexported fields
}

func (*EmissionsGridBoundsResponse) Descriptor deprecated

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

Deprecated: Use EmissionsGridBoundsResponse.ProtoReflect.Descriptor instead.

func (*EmissionsGridBoundsResponse) GetMax

func (x *EmissionsGridBoundsResponse) GetMax() *Point

func (*EmissionsGridBoundsResponse) GetMin

func (x *EmissionsGridBoundsResponse) GetMin() *Point

func (*EmissionsGridBoundsResponse) ProtoMessage

func (*EmissionsGridBoundsResponse) ProtoMessage()

func (*EmissionsGridBoundsResponse) ProtoReflect

func (*EmissionsGridBoundsResponse) Reset

func (x *EmissionsGridBoundsResponse) Reset()

func (*EmissionsGridBoundsResponse) String

func (x *EmissionsGridBoundsResponse) String() string

type EmissionsInventorySectorsRequest

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

func (*EmissionsInventorySectorsRequest) Descriptor deprecated

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

Deprecated: Use EmissionsInventorySectorsRequest.ProtoReflect.Descriptor instead.

func (*EmissionsInventorySectorsRequest) ProtoMessage

func (*EmissionsInventorySectorsRequest) ProtoMessage()

func (*EmissionsInventorySectorsRequest) ProtoReflect

func (*EmissionsInventorySectorsRequest) Reset

func (*EmissionsInventorySectorsRequest) String

type EmissionsInventorySectorsResponse

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

func (*EmissionsInventorySectorsResponse) Descriptor deprecated

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

Deprecated: Use EmissionsInventorySectorsResponse.ProtoReflect.Descriptor instead.

func (*EmissionsInventorySectorsResponse) GetSectors

func (x *EmissionsInventorySectorsResponse) GetSectors() []string

func (*EmissionsInventorySectorsResponse) ProtoMessage

func (*EmissionsInventorySectorsResponse) ProtoMessage()

func (*EmissionsInventorySectorsResponse) ProtoReflect

func (*EmissionsInventorySectorsResponse) Reset

func (*EmissionsInventorySectorsResponse) String

type GriddedConcentrationsRequest

type GriddedConcentrationsRequest struct {
	CityName       string         `protobuf:"bytes,1,opt,name=CityName,proto3" json:"CityName,omitempty"`
	SourceType     string         `protobuf:"bytes,2,opt,name=SourceType,proto3" json:"SourceType,omitempty"`
	Emission       Emission       `protobuf:"varint,3,opt,name=Emission,proto3,enum=cityaqrpc.Emission" json:"Emission,omitempty"`
	SimulationType SimulationType `protobuf:"varint,4,opt,name=SimulationType,proto3,enum=cityaqrpc.SimulationType" json:"SimulationType,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedConcentrationsRequest) Descriptor deprecated

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

Deprecated: Use GriddedConcentrationsRequest.ProtoReflect.Descriptor instead.

func (*GriddedConcentrationsRequest) GetCityName

func (x *GriddedConcentrationsRequest) GetCityName() string

func (*GriddedConcentrationsRequest) GetEmission

func (x *GriddedConcentrationsRequest) GetEmission() Emission

func (*GriddedConcentrationsRequest) GetSimulationType

func (x *GriddedConcentrationsRequest) GetSimulationType() SimulationType

func (*GriddedConcentrationsRequest) GetSourceType

func (x *GriddedConcentrationsRequest) GetSourceType() string

func (*GriddedConcentrationsRequest) ProtoMessage

func (*GriddedConcentrationsRequest) ProtoMessage()

func (*GriddedConcentrationsRequest) ProtoReflect

func (*GriddedConcentrationsRequest) Reset

func (x *GriddedConcentrationsRequest) Reset()

func (*GriddedConcentrationsRequest) String

type GriddedConcentrationsResponse

type GriddedConcentrationsResponse struct {
	Polygons       []*Polygon `protobuf:"bytes,1,rep,name=Polygons,proto3" json:"Polygons,omitempty"`
	Concentrations []float64  `protobuf:"fixed64,2,rep,packed,name=Concentrations,proto3" json:"Concentrations,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedConcentrationsResponse) Descriptor deprecated

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

Deprecated: Use GriddedConcentrationsResponse.ProtoReflect.Descriptor instead.

func (*GriddedConcentrationsResponse) GetConcentrations

func (x *GriddedConcentrationsResponse) GetConcentrations() []float64

func (*GriddedConcentrationsResponse) GetPolygons

func (x *GriddedConcentrationsResponse) GetPolygons() []*Polygon

func (*GriddedConcentrationsResponse) ProtoMessage

func (*GriddedConcentrationsResponse) ProtoMessage()

func (*GriddedConcentrationsResponse) ProtoReflect

func (*GriddedConcentrationsResponse) Reset

func (x *GriddedConcentrationsResponse) Reset()

func (*GriddedConcentrationsResponse) String

type GriddedEmissionsRequest

type GriddedEmissionsRequest struct {
	CityName       string         `protobuf:"bytes,1,opt,name=CityName,proto3" json:"CityName,omitempty"`
	SourceType     string         `protobuf:"bytes,2,opt,name=SourceType,proto3" json:"SourceType,omitempty"`
	Emission       Emission       `protobuf:"varint,3,opt,name=Emission,proto3,enum=cityaqrpc.Emission" json:"Emission,omitempty"`
	SimulationType SimulationType `protobuf:"varint,4,opt,name=SimulationType,proto3,enum=cityaqrpc.SimulationType" json:"SimulationType,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedEmissionsRequest) Descriptor deprecated

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

Deprecated: Use GriddedEmissionsRequest.ProtoReflect.Descriptor instead.

func (*GriddedEmissionsRequest) GetCityName

func (x *GriddedEmissionsRequest) GetCityName() string

func (*GriddedEmissionsRequest) GetEmission

func (x *GriddedEmissionsRequest) GetEmission() Emission

func (*GriddedEmissionsRequest) GetSimulationType

func (x *GriddedEmissionsRequest) GetSimulationType() SimulationType

func (*GriddedEmissionsRequest) GetSourceType

func (x *GriddedEmissionsRequest) GetSourceType() string

func (*GriddedEmissionsRequest) ProtoMessage

func (*GriddedEmissionsRequest) ProtoMessage()

func (*GriddedEmissionsRequest) ProtoReflect

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

func (*GriddedEmissionsRequest) Reset

func (x *GriddedEmissionsRequest) Reset()

func (*GriddedEmissionsRequest) String

func (x *GriddedEmissionsRequest) String() string

type GriddedEmissionsResponse

type GriddedEmissionsResponse struct {
	Polygons  []*Polygon `protobuf:"bytes,1,rep,name=Polygons,proto3" json:"Polygons,omitempty"`
	Emissions []float64  `protobuf:"fixed64,2,rep,packed,name=Emissions,proto3" json:"Emissions,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedEmissionsResponse) Descriptor deprecated

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

Deprecated: Use GriddedEmissionsResponse.ProtoReflect.Descriptor instead.

func (*GriddedEmissionsResponse) GetEmissions

func (x *GriddedEmissionsResponse) GetEmissions() []float64

func (*GriddedEmissionsResponse) GetPolygons

func (x *GriddedEmissionsResponse) GetPolygons() []*Polygon

func (*GriddedEmissionsResponse) ProtoMessage

func (*GriddedEmissionsResponse) ProtoMessage()

func (*GriddedEmissionsResponse) ProtoReflect

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

func (*GriddedEmissionsResponse) Reset

func (x *GriddedEmissionsResponse) Reset()

func (*GriddedEmissionsResponse) String

func (x *GriddedEmissionsResponse) String() string

type GriddedPopulationRequest

type GriddedPopulationRequest struct {
	CityName       string         `protobuf:"bytes,1,opt,name=CityName,proto3" json:"CityName,omitempty"`
	SourceType     string         `protobuf:"bytes,2,opt,name=SourceType,proto3" json:"SourceType,omitempty"`
	Emission       Emission       `protobuf:"varint,3,opt,name=Emission,proto3,enum=cityaqrpc.Emission" json:"Emission,omitempty"`
	SimulationType SimulationType `protobuf:"varint,4,opt,name=SimulationType,proto3,enum=cityaqrpc.SimulationType" json:"SimulationType,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedPopulationRequest) Descriptor deprecated

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

Deprecated: Use GriddedPopulationRequest.ProtoReflect.Descriptor instead.

func (*GriddedPopulationRequest) GetCityName

func (x *GriddedPopulationRequest) GetCityName() string

func (*GriddedPopulationRequest) GetEmission

func (x *GriddedPopulationRequest) GetEmission() Emission

func (*GriddedPopulationRequest) GetSimulationType

func (x *GriddedPopulationRequest) GetSimulationType() SimulationType

func (*GriddedPopulationRequest) GetSourceType

func (x *GriddedPopulationRequest) GetSourceType() string

func (*GriddedPopulationRequest) ProtoMessage

func (*GriddedPopulationRequest) ProtoMessage()

func (*GriddedPopulationRequest) ProtoReflect

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

func (*GriddedPopulationRequest) Reset

func (x *GriddedPopulationRequest) Reset()

func (*GriddedPopulationRequest) String

func (x *GriddedPopulationRequest) String() string

type GriddedPopulationResponse

type GriddedPopulationResponse struct {
	Polygons   []*Polygon `protobuf:"bytes,1,rep,name=Polygons,proto3" json:"Polygons,omitempty"`
	Population []float64  `protobuf:"fixed64,2,rep,packed,name=Population,proto3" json:"Population,omitempty"`
	// contains filtered or unexported fields
}

func (*GriddedPopulationResponse) Descriptor deprecated

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

Deprecated: Use GriddedPopulationResponse.ProtoReflect.Descriptor instead.

func (*GriddedPopulationResponse) GetPolygons

func (x *GriddedPopulationResponse) GetPolygons() []*Polygon

func (*GriddedPopulationResponse) GetPopulation

func (x *GriddedPopulationResponse) GetPopulation() []float64

func (*GriddedPopulationResponse) ProtoMessage

func (*GriddedPopulationResponse) ProtoMessage()

func (*GriddedPopulationResponse) ProtoReflect

func (*GriddedPopulationResponse) Reset

func (x *GriddedPopulationResponse) Reset()

func (*GriddedPopulationResponse) String

func (x *GriddedPopulationResponse) String() string

type ImpactSummaryRequest

type ImpactSummaryRequest struct {
	CityName       string         `protobuf:"bytes,1,opt,name=CityName,proto3" json:"CityName,omitempty"`
	SourceType     string         `protobuf:"bytes,2,opt,name=SourceType,proto3" json:"SourceType,omitempty"`
	Emission       Emission       `protobuf:"varint,3,opt,name=Emission,proto3,enum=cityaqrpc.Emission" json:"Emission,omitempty"`
	SimulationType SimulationType `protobuf:"varint,4,opt,name=SimulationType,proto3,enum=cityaqrpc.SimulationType" json:"SimulationType,omitempty"`
	// contains filtered or unexported fields
}

func (*ImpactSummaryRequest) Descriptor deprecated

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

Deprecated: Use ImpactSummaryRequest.ProtoReflect.Descriptor instead.

func (*ImpactSummaryRequest) GetCityName

func (x *ImpactSummaryRequest) GetCityName() string

func (*ImpactSummaryRequest) GetEmission

func (x *ImpactSummaryRequest) GetEmission() Emission

func (*ImpactSummaryRequest) GetSimulationType

func (x *ImpactSummaryRequest) GetSimulationType() SimulationType

func (*ImpactSummaryRequest) GetSourceType

func (x *ImpactSummaryRequest) GetSourceType() string

func (*ImpactSummaryRequest) ProtoMessage

func (*ImpactSummaryRequest) ProtoMessage()

func (*ImpactSummaryRequest) ProtoReflect

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

func (*ImpactSummaryRequest) Reset

func (x *ImpactSummaryRequest) Reset()

func (*ImpactSummaryRequest) String

func (x *ImpactSummaryRequest) String() string

type ImpactSummaryResponse

type ImpactSummaryResponse struct {

	// Population is the total population.
	Population float64 `protobuf:"fixed64,1,opt,name=Population,proto3" json:"Population,omitempty"`
	// CityPopulation is the total population in the city.
	CityPopulation float64 `protobuf:"fixed64,2,opt,name=CityPopulation,proto3" json:"CityPopulation,omitempty"`
	// CityExposure is the population-weighted average
	// concentration in the city.
	CityExposure float64 `protobuf:"fixed64,3,opt,name=CityExposure,proto3" json:"CityExposure,omitempty"`
	// TotalExposure is the overall population-weighted average
	// concentration.
	TotalExposure float64 `protobuf:"fixed64,4,opt,name=TotalExposure,proto3" json:"TotalExposure,omitempty"`
	// CityIF is the intake fraction in the city.
	CityIF float64 `protobuf:"fixed64,5,opt,name=CityIF,proto3" json:"CityIF,omitempty"`
	// TotalIF is the total intake fraction.
	TotalIF float64 `protobuf:"fixed64,6,opt,name=TotalIF,proto3" json:"TotalIF,omitempty"`
	// contains filtered or unexported fields
}

func (*ImpactSummaryResponse) Descriptor deprecated

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

Deprecated: Use ImpactSummaryResponse.ProtoReflect.Descriptor instead.

func (*ImpactSummaryResponse) GetCityExposure

func (x *ImpactSummaryResponse) GetCityExposure() float64

func (*ImpactSummaryResponse) GetCityIF

func (x *ImpactSummaryResponse) GetCityIF() float64

func (*ImpactSummaryResponse) GetCityPopulation

func (x *ImpactSummaryResponse) GetCityPopulation() float64

func (*ImpactSummaryResponse) GetPopulation

func (x *ImpactSummaryResponse) GetPopulation() float64

func (*ImpactSummaryResponse) GetTotalExposure

func (x *ImpactSummaryResponse) GetTotalExposure() float64

func (*ImpactSummaryResponse) GetTotalIF

func (x *ImpactSummaryResponse) GetTotalIF() float64

func (*ImpactSummaryResponse) ProtoMessage

func (*ImpactSummaryResponse) ProtoMessage()

func (*ImpactSummaryResponse) ProtoReflect

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

func (*ImpactSummaryResponse) Reset

func (x *ImpactSummaryResponse) Reset()

func (*ImpactSummaryResponse) String

func (x *ImpactSummaryResponse) String() string

type ImpactType

type ImpactType int32
const (
	ImpactType_UNKNOWN_IMPACTTYPE ImpactType = 0
	ImpactType_Emissions          ImpactType = 1
	ImpactType_Concentrations     ImpactType = 2
)

func (ImpactType) Descriptor

func (ImpactType) Descriptor() protoreflect.EnumDescriptor

func (ImpactType) Enum

func (x ImpactType) Enum() *ImpactType

func (ImpactType) EnumDescriptor deprecated

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

Deprecated: Use ImpactType.Descriptor instead.

func (ImpactType) Number

func (x ImpactType) Number() protoreflect.EnumNumber

func (ImpactType) String

func (x ImpactType) String() string

func (ImpactType) Type

type MapScaleRequest

type MapScaleRequest struct {
	CityName       string         `protobuf:"bytes,1,opt,name=CityName,proto3" json:"CityName,omitempty"`
	ImpactType     ImpactType     `protobuf:"varint,2,opt,name=ImpactType,proto3,enum=cityaqrpc.ImpactType" json:"ImpactType,omitempty"`
	Emission       Emission       `protobuf:"varint,3,opt,name=Emission,proto3,enum=cityaqrpc.Emission" json:"Emission,omitempty"`
	SourceType     string         `protobuf:"bytes,4,opt,name=SourceType,proto3" json:"SourceType,omitempty"`
	SimulationType SimulationType `protobuf:"varint,5,opt,name=SimulationType,proto3,enum=cityaqrpc.SimulationType" json:"SimulationType,omitempty"`
	// contains filtered or unexported fields
}

func (*MapScaleRequest) Descriptor deprecated

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

Deprecated: Use MapScaleRequest.ProtoReflect.Descriptor instead.

func (*MapScaleRequest) GetCityName

func (x *MapScaleRequest) GetCityName() string

func (*MapScaleRequest) GetEmission

func (x *MapScaleRequest) GetEmission() Emission

func (*MapScaleRequest) GetImpactType

func (x *MapScaleRequest) GetImpactType() ImpactType

func (*MapScaleRequest) GetSimulationType

func (x *MapScaleRequest) GetSimulationType() SimulationType

func (*MapScaleRequest) GetSourceType

func (x *MapScaleRequest) GetSourceType() string

func (*MapScaleRequest) ProtoMessage

func (*MapScaleRequest) ProtoMessage()

func (*MapScaleRequest) ProtoReflect

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

func (*MapScaleRequest) Reset

func (x *MapScaleRequest) Reset()

func (*MapScaleRequest) String

func (x *MapScaleRequest) String() string

type MapScaleResponse

type MapScaleResponse struct {
	Min   float64 `protobuf:"fixed64,1,opt,name=Min,proto3" json:"Min,omitempty"`
	Max   float64 `protobuf:"fixed64,2,opt,name=Max,proto3" json:"Max,omitempty"`
	CutPt float64 `protobuf:"fixed64,3,opt,name=CutPt,proto3" json:"CutPt,omitempty"`
	// contains filtered or unexported fields
}

func (*MapScaleResponse) Descriptor deprecated

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

Deprecated: Use MapScaleResponse.ProtoReflect.Descriptor instead.

func (*MapScaleResponse) GetCutPt

func (x *MapScaleResponse) GetCutPt() float64

func (*MapScaleResponse) GetMax

func (x *MapScaleResponse) GetMax() float64

func (*MapScaleResponse) GetMin

func (x *MapScaleResponse) GetMin() float64

func (*MapScaleResponse) ProtoMessage

func (*MapScaleResponse) ProtoMessage()

func (*MapScaleResponse) ProtoReflect

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

func (*MapScaleResponse) Reset

func (x *MapScaleResponse) Reset()

func (*MapScaleResponse) String

func (x *MapScaleResponse) String() string

type Path

type Path struct {
	Points []*Point `protobuf:"bytes,1,rep,name=Points,proto3" json:"Points,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor deprecated

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

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetPoints

func (x *Path) GetPoints() []*Point

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

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

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

type Point

type Point struct {
	X float64 `protobuf:"fixed64,1,opt,name=X,proto3" json:"X,omitempty"`
	Y float64 `protobuf:"fixed64,2,opt,name=Y,proto3" json:"Y,omitempty"`
	// contains filtered or unexported fields
}

func (*Point) Descriptor deprecated

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

Deprecated: Use Point.ProtoReflect.Descriptor instead.

func (*Point) GetX

func (x *Point) GetX() float64

func (*Point) GetY

func (x *Point) GetY() float64

func (*Point) ProtoMessage

func (*Point) ProtoMessage()

func (*Point) ProtoReflect

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

func (*Point) Reset

func (x *Point) Reset()

func (*Point) String

func (x *Point) String() string

type Polygon

type Polygon struct {
	Paths []*Path `protobuf:"bytes,1,rep,name=Paths,proto3" json:"Paths,omitempty"`
	// contains filtered or unexported fields
}

func (*Polygon) Descriptor deprecated

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

Deprecated: Use Polygon.ProtoReflect.Descriptor instead.

func (*Polygon) GetPaths

func (x *Polygon) GetPaths() []*Path

func (*Polygon) ProtoMessage

func (*Polygon) ProtoMessage()

func (*Polygon) ProtoReflect

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

func (*Polygon) Reset

func (x *Polygon) Reset()

func (*Polygon) String

func (x *Polygon) String() string

type SimulationType

type SimulationType int32
const (
	SimulationType_UNKNOWN_SIMULATIONTYPE SimulationType = 0
	SimulationType_Total                  SimulationType = 1
	SimulationType_CityTotal              SimulationType = 2
	SimulationType_CityMarginal           SimulationType = 3
)

func (SimulationType) Descriptor

func (SimulationType) Enum

func (x SimulationType) Enum() *SimulationType

func (SimulationType) EnumDescriptor deprecated

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

Deprecated: Use SimulationType.Descriptor instead.

func (SimulationType) Number

func (SimulationType) String

func (x SimulationType) String() string

func (SimulationType) Type

type UnimplementedCityAQServer

type UnimplementedCityAQServer struct {
}

UnimplementedCityAQServer can be embedded to have forward compatible implementations.

func (*UnimplementedCityAQServer) Cities

func (*UnimplementedCityAQServer) CityGeometry

func (*UnimplementedCityAQServer) GriddedEmissions

func (*UnimplementedCityAQServer) GriddedPopulation

func (*UnimplementedCityAQServer) ImpactSummary

func (*UnimplementedCityAQServer) MapScale

Directories

Path Synopsis
Package mock_cityaqrpc is a generated GoMock package.
Package mock_cityaqrpc is a generated GoMock package.

Jump to

Keyboard shortcuts

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