Source code for

# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# See the License for the specific language governing permissions and
# limitations under the License.
import proto  # type: ignore

from google.protobuf import wrappers_pb2  # type: ignore

__protobuf__ = proto.module(

[docs]class CustomPolygonRequest(proto.Message): r"""Request object for GetPolygonCounts Attributes: geojson (str): GeoJSON formatted string with polygon data laden_status (Sequence[str]): Laden status to filter on. Allowed values are ['laden', 'ballast'] segment (Sequence[str]): List of vessel segments to filter on. Allowed values can be obtained from the **/entities/segments** endpoint. Cannot be supplied alongside subSegment sub_segment (Sequence[str]): List of vessel sub segments to filter on. Allowed values can be obtained from the **/entities/segments** endpoint. Cannot be supplied alongside segment start_date (str): The UTC start date of the date filter end_date (str): The UTC end date of the date filter """ geojson = proto.Field( proto.STRING, number=1, ) laden_status = proto.RepeatedField( proto.STRING, number=2, ) segment = proto.RepeatedField( proto.STRING, number=3, ) sub_segment = proto.RepeatedField( proto.STRING, number=6, ) start_date = proto.Field( proto.STRING, number=4, ) end_date = proto.Field( proto.STRING, number=5, )
[docs]class CustomPolygonResponse(proto.Message): r"""Response object for GetPolygonCounts Attributes: timeseries (Sequence[]): Timeseries rows """ timeseries = proto.RepeatedField( proto.MESSAGE, number=1, message='TimeseriesGroup', )
[docs]class TimeseriesGroup(proto.Message): r"""Generic tonnage timeseries group Attributes: group (str): Name of the group. This will be "default", if no grouping was specified in the query. rows (Sequence[]): Rows of timeseries data """ group = proto.Field( proto.STRING, number=1, ) rows = proto.RepeatedField( proto.MESSAGE, number=2, message='TimeseriesRow', )
[docs]class TimeseriesRow(proto.Message): r"""Generic tonnage timeseries row Attributes: date (str): UTC date timestamp of the timeseries row value (google.protobuf.wrappers_pb2.DoubleValue): Value of the timeseries row """ date = proto.Field( proto.STRING, number=1, ) value = proto.Field( proto.MESSAGE, number=2, message=wrappers_pb2.DoubleValue, )
__all__ = tuple(sorted(__protobuf__.manifest))