Documentation ¶
Index ¶
- Variables
- func RegisterCityAQServer(s *grpc.Server, srv CityAQServer)
- type CitiesRequest
- type CitiesResponse
- type CityAQClient
- type CityAQServer
- type CityGeometryRequest
- func (*CityGeometryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CityGeometryRequest) GetCityName() string
- func (*CityGeometryRequest) ProtoMessage()
- func (x *CityGeometryRequest) ProtoReflect() protoreflect.Message
- func (x *CityGeometryRequest) Reset()
- func (x *CityGeometryRequest) String() string
- type CityGeometryResponse
- func (*CityGeometryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CityGeometryResponse) GetPolygons() []*Polygon
- func (*CityGeometryResponse) ProtoMessage()
- func (x *CityGeometryResponse) ProtoReflect() protoreflect.Message
- func (x *CityGeometryResponse) Reset()
- func (x *CityGeometryResponse) String() string
- type Emission
- type EmissionsGridBoundsRequest
- func (*EmissionsGridBoundsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmissionsGridBoundsRequest) GetCityName() string
- func (x *EmissionsGridBoundsRequest) GetSourceType() string
- func (*EmissionsGridBoundsRequest) ProtoMessage()
- func (x *EmissionsGridBoundsRequest) ProtoReflect() protoreflect.Message
- func (x *EmissionsGridBoundsRequest) Reset()
- func (x *EmissionsGridBoundsRequest) String() string
- type EmissionsGridBoundsResponse
- func (*EmissionsGridBoundsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmissionsGridBoundsResponse) GetMax() *Point
- func (x *EmissionsGridBoundsResponse) GetMin() *Point
- func (*EmissionsGridBoundsResponse) ProtoMessage()
- func (x *EmissionsGridBoundsResponse) ProtoReflect() protoreflect.Message
- func (x *EmissionsGridBoundsResponse) Reset()
- func (x *EmissionsGridBoundsResponse) String() string
- type EmissionsInventorySectorsRequest
- func (*EmissionsInventorySectorsRequest) Descriptor() ([]byte, []int)deprecated
- func (*EmissionsInventorySectorsRequest) ProtoMessage()
- func (x *EmissionsInventorySectorsRequest) ProtoReflect() protoreflect.Message
- func (x *EmissionsInventorySectorsRequest) Reset()
- func (x *EmissionsInventorySectorsRequest) String() string
- type EmissionsInventorySectorsResponse
- func (*EmissionsInventorySectorsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmissionsInventorySectorsResponse) GetSectors() []string
- func (*EmissionsInventorySectorsResponse) ProtoMessage()
- func (x *EmissionsInventorySectorsResponse) ProtoReflect() protoreflect.Message
- func (x *EmissionsInventorySectorsResponse) Reset()
- func (x *EmissionsInventorySectorsResponse) String() string
- type GriddedConcentrationsRequest
- func (*GriddedConcentrationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedConcentrationsRequest) GetCityName() string
- func (x *GriddedConcentrationsRequest) GetEmission() Emission
- func (x *GriddedConcentrationsRequest) GetSimulationType() SimulationType
- func (x *GriddedConcentrationsRequest) GetSourceType() string
- func (*GriddedConcentrationsRequest) ProtoMessage()
- func (x *GriddedConcentrationsRequest) ProtoReflect() protoreflect.Message
- func (x *GriddedConcentrationsRequest) Reset()
- func (x *GriddedConcentrationsRequest) String() string
- type GriddedConcentrationsResponse
- func (*GriddedConcentrationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedConcentrationsResponse) GetConcentrations() []float64
- func (x *GriddedConcentrationsResponse) GetPolygons() []*Polygon
- func (*GriddedConcentrationsResponse) ProtoMessage()
- func (x *GriddedConcentrationsResponse) ProtoReflect() protoreflect.Message
- func (x *GriddedConcentrationsResponse) Reset()
- func (x *GriddedConcentrationsResponse) String() string
- type GriddedEmissionsRequest
- func (*GriddedEmissionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedEmissionsRequest) GetCityName() string
- func (x *GriddedEmissionsRequest) GetEmission() Emission
- func (x *GriddedEmissionsRequest) GetSimulationType() SimulationType
- func (x *GriddedEmissionsRequest) GetSourceType() string
- func (*GriddedEmissionsRequest) ProtoMessage()
- func (x *GriddedEmissionsRequest) ProtoReflect() protoreflect.Message
- func (x *GriddedEmissionsRequest) Reset()
- func (x *GriddedEmissionsRequest) String() string
- type GriddedEmissionsResponse
- func (*GriddedEmissionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedEmissionsResponse) GetEmissions() []float64
- func (x *GriddedEmissionsResponse) GetPolygons() []*Polygon
- func (*GriddedEmissionsResponse) ProtoMessage()
- func (x *GriddedEmissionsResponse) ProtoReflect() protoreflect.Message
- func (x *GriddedEmissionsResponse) Reset()
- func (x *GriddedEmissionsResponse) String() string
- type GriddedPopulationRequest
- func (*GriddedPopulationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedPopulationRequest) GetCityName() string
- func (x *GriddedPopulationRequest) GetEmission() Emission
- func (x *GriddedPopulationRequest) GetSimulationType() SimulationType
- func (x *GriddedPopulationRequest) GetSourceType() string
- func (*GriddedPopulationRequest) ProtoMessage()
- func (x *GriddedPopulationRequest) ProtoReflect() protoreflect.Message
- func (x *GriddedPopulationRequest) Reset()
- func (x *GriddedPopulationRequest) String() string
- type GriddedPopulationResponse
- func (*GriddedPopulationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GriddedPopulationResponse) GetPolygons() []*Polygon
- func (x *GriddedPopulationResponse) GetPopulation() []float64
- func (*GriddedPopulationResponse) ProtoMessage()
- func (x *GriddedPopulationResponse) ProtoReflect() protoreflect.Message
- func (x *GriddedPopulationResponse) Reset()
- func (x *GriddedPopulationResponse) String() string
- type ImpactSummaryRequest
- func (*ImpactSummaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactSummaryRequest) GetCityName() string
- func (x *ImpactSummaryRequest) GetEmission() Emission
- func (x *ImpactSummaryRequest) GetSimulationType() SimulationType
- func (x *ImpactSummaryRequest) GetSourceType() string
- func (*ImpactSummaryRequest) ProtoMessage()
- func (x *ImpactSummaryRequest) ProtoReflect() protoreflect.Message
- func (x *ImpactSummaryRequest) Reset()
- func (x *ImpactSummaryRequest) String() string
- type ImpactSummaryResponse
- func (*ImpactSummaryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ImpactSummaryResponse) GetCityExposure() float64
- func (x *ImpactSummaryResponse) GetCityIF() float64
- func (x *ImpactSummaryResponse) GetCityPopulation() float64
- func (x *ImpactSummaryResponse) GetPopulation() float64
- func (x *ImpactSummaryResponse) GetTotalExposure() float64
- func (x *ImpactSummaryResponse) GetTotalIF() float64
- func (*ImpactSummaryResponse) ProtoMessage()
- func (x *ImpactSummaryResponse) ProtoReflect() protoreflect.Message
- func (x *ImpactSummaryResponse) Reset()
- func (x *ImpactSummaryResponse) String() string
- type ImpactType
- type MapScaleRequest
- func (*MapScaleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MapScaleRequest) GetCityName() string
- func (x *MapScaleRequest) GetEmission() Emission
- func (x *MapScaleRequest) GetImpactType() ImpactType
- func (x *MapScaleRequest) GetSimulationType() SimulationType
- func (x *MapScaleRequest) GetSourceType() string
- func (*MapScaleRequest) ProtoMessage()
- func (x *MapScaleRequest) ProtoReflect() protoreflect.Message
- func (x *MapScaleRequest) Reset()
- func (x *MapScaleRequest) String() string
- type MapScaleResponse
- func (*MapScaleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MapScaleResponse) GetCutPt() float64
- func (x *MapScaleResponse) GetMax() float64
- func (x *MapScaleResponse) GetMin() float64
- func (*MapScaleResponse) ProtoMessage()
- func (x *MapScaleResponse) ProtoReflect() protoreflect.Message
- func (x *MapScaleResponse) Reset()
- func (x *MapScaleResponse) String() string
- type Path
- type Point
- type Polygon
- type SimulationType
- func (SimulationType) Descriptor() protoreflect.EnumDescriptor
- func (x SimulationType) Enum() *SimulationType
- func (SimulationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SimulationType) Number() protoreflect.EnumNumber
- func (x SimulationType) String() string
- func (SimulationType) Type() protoreflect.EnumType
- type UnimplementedCityAQServer
- func (*UnimplementedCityAQServer) Cities(context.Context, *CitiesRequest) (*CitiesResponse, error)
- func (*UnimplementedCityAQServer) CityGeometry(context.Context, *CityGeometryRequest) (*CityGeometryResponse, error)
- func (*UnimplementedCityAQServer) EmissionsGridBounds(context.Context, *EmissionsGridBoundsRequest) (*EmissionsGridBoundsResponse, error)
- func (*UnimplementedCityAQServer) EmissionsInventorySectors(context.Context, *EmissionsInventorySectorsRequest) (*EmissionsInventorySectorsResponse, error)
- func (*UnimplementedCityAQServer) GriddedConcentrations(context.Context, *GriddedConcentrationsRequest) (*GriddedConcentrationsResponse, error)
- func (*UnimplementedCityAQServer) GriddedEmissions(context.Context, *GriddedEmissionsRequest) (*GriddedEmissionsResponse, error)
- func (*UnimplementedCityAQServer) GriddedPopulation(context.Context, *GriddedPopulationRequest) (*GriddedPopulationResponse, error)
- func (*UnimplementedCityAQServer) ImpactSummary(context.Context, *ImpactSummaryRequest) (*ImpactSummaryResponse, error)
- func (*UnimplementedCityAQServer) MapScale(context.Context, *MapScaleRequest) (*MapScaleResponse, error)
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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
func (Emission) Descriptor ¶
func (Emission) Descriptor() protoreflect.EnumDescriptor
func (Emission) EnumDescriptor
deprecated
func (Emission) Number ¶
func (x Emission) Number() protoreflect.EnumNumber
func (Emission) Type ¶
func (Emission) Type() protoreflect.EnumType
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 (x *EmissionsGridBoundsRequest) ProtoReflect() protoreflect.Message
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 (x *EmissionsGridBoundsResponse) ProtoReflect() protoreflect.Message
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 (x *EmissionsInventorySectorsRequest) ProtoReflect() protoreflect.Message
func (*EmissionsInventorySectorsRequest) Reset ¶
func (x *EmissionsInventorySectorsRequest) Reset()
func (*EmissionsInventorySectorsRequest) String ¶
func (x *EmissionsInventorySectorsRequest) String() 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 (x *EmissionsInventorySectorsResponse) ProtoReflect() protoreflect.Message
func (*EmissionsInventorySectorsResponse) Reset ¶
func (x *EmissionsInventorySectorsResponse) Reset()
func (*EmissionsInventorySectorsResponse) String ¶
func (x *EmissionsInventorySectorsResponse) String() 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 (x *GriddedConcentrationsRequest) ProtoReflect() protoreflect.Message
func (*GriddedConcentrationsRequest) Reset ¶
func (x *GriddedConcentrationsRequest) Reset()
func (*GriddedConcentrationsRequest) String ¶
func (x *GriddedConcentrationsRequest) String() 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 (x *GriddedConcentrationsResponse) ProtoReflect() protoreflect.Message
func (*GriddedConcentrationsResponse) Reset ¶
func (x *GriddedConcentrationsResponse) Reset()
func (*GriddedConcentrationsResponse) String ¶
func (x *GriddedConcentrationsResponse) String() 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 (x *GriddedPopulationResponse) ProtoReflect() protoreflect.Message
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 ¶
func (ImpactType) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶
func (x *Path) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Polygon) ProtoMessage()
func (*Polygon) ProtoReflect ¶
func (x *Polygon) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x SimulationType) Number() protoreflect.EnumNumber
func (SimulationType) String ¶
func (x SimulationType) String() string
func (SimulationType) Type ¶
func (SimulationType) Type() protoreflect.EnumType
type UnimplementedCityAQServer ¶
type UnimplementedCityAQServer struct { }
UnimplementedCityAQServer can be embedded to have forward compatible implementations.
func (*UnimplementedCityAQServer) Cities ¶
func (*UnimplementedCityAQServer) Cities(context.Context, *CitiesRequest) (*CitiesResponse, error)
func (*UnimplementedCityAQServer) CityGeometry ¶
func (*UnimplementedCityAQServer) CityGeometry(context.Context, *CityGeometryRequest) (*CityGeometryResponse, error)
func (*UnimplementedCityAQServer) EmissionsGridBounds ¶
func (*UnimplementedCityAQServer) EmissionsGridBounds(context.Context, *EmissionsGridBoundsRequest) (*EmissionsGridBoundsResponse, error)
func (*UnimplementedCityAQServer) EmissionsInventorySectors ¶
func (*UnimplementedCityAQServer) EmissionsInventorySectors(context.Context, *EmissionsInventorySectorsRequest) (*EmissionsInventorySectorsResponse, error)
func (*UnimplementedCityAQServer) GriddedConcentrations ¶
func (*UnimplementedCityAQServer) GriddedConcentrations(context.Context, *GriddedConcentrationsRequest) (*GriddedConcentrationsResponse, error)
func (*UnimplementedCityAQServer) GriddedEmissions ¶
func (*UnimplementedCityAQServer) GriddedEmissions(context.Context, *GriddedEmissionsRequest) (*GriddedEmissionsResponse, error)
func (*UnimplementedCityAQServer) GriddedPopulation ¶
func (*UnimplementedCityAQServer) GriddedPopulation(context.Context, *GriddedPopulationRequest) (*GriddedPopulationResponse, error)
func (*UnimplementedCityAQServer) ImpactSummary ¶
func (*UnimplementedCityAQServer) ImpactSummary(context.Context, *ImpactSummaryRequest) (*ImpactSummaryResponse, error)
func (*UnimplementedCityAQServer) MapScale ¶
func (*UnimplementedCityAQServer) MapScale(context.Context, *MapScaleRequest) (*MapScaleResponse, error)
Directories ¶
Path | Synopsis |
---|---|
Package mock_cityaqrpc is a generated GoMock package.
|
Package mock_cityaqrpc is a generated GoMock package. |