sharedstreets
Version:
SharedStreets, a 'digital commons' for the street
666 lines (545 loc) • 26.2 kB
TypeScript
import * as $protobuf from "protobufjs";
/** Properties of a LinearReference. */
export interface ILinearReference {
/** LinearReference startDistance */
startDistance?: (number|Long|null);
/** LinearReference endDistance */
endDistance?: (number|Long|null);
}
/** Represents a LinearReference. */
export class LinearReference implements ILinearReference {
/**
* Constructs a new LinearReference.
* @param [properties] Properties to set
*/
constructor(properties?: ILinearReference);
/** LinearReference startDistance. */
public startDistance: (number|Long);
/** LinearReference endDistance. */
public endDistance: (number|Long);
/** LinearReference endDistancePresent. */
public endDistancePresent?: "endDistance";
/**
* Creates a new LinearReference instance using the specified properties.
* @param [properties] Properties to set
* @returns LinearReference instance
*/
public static create(properties?: ILinearReference): LinearReference;
/**
* Encodes the specified LinearReference message. Does not implicitly {@link LinearReference.verify|verify} messages.
* @param message LinearReference message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ILinearReference, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LinearReference message, length delimited. Does not implicitly {@link LinearReference.verify|verify} messages.
* @param message LinearReference message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ILinearReference, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LinearReference message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LinearReference
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): LinearReference;
/**
* Decodes a LinearReference message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LinearReference
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): LinearReference;
/**
* Verifies a LinearReference message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a LinearReference message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LinearReference
*/
public static fromObject(object: { [k: string]: any }): LinearReference;
/**
* Creates a plain object from a LinearReference message. Also converts values to other types if specified.
* @param message LinearReference
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: LinearReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LinearReference to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a SharedStreetsLinearReferences. */
export interface ISharedStreetsLinearReferences {
/** SharedStreetsLinearReferences referenceId */
referenceId?: (string|null);
/** SharedStreetsLinearReferences referenceLength */
referenceLength?: (number|Long|null);
/** SharedStreetsLinearReferences references */
references?: (ILinearReference[]|null);
}
/** Represents a SharedStreetsLinearReferences. */
export class SharedStreetsLinearReferences implements ISharedStreetsLinearReferences {
/**
* Constructs a new SharedStreetsLinearReferences.
* @param [properties] Properties to set
*/
constructor(properties?: ISharedStreetsLinearReferences);
/** SharedStreetsLinearReferences referenceId. */
public referenceId: string;
/** SharedStreetsLinearReferences referenceLength. */
public referenceLength: (number|Long);
/** SharedStreetsLinearReferences references. */
public references: ILinearReference[];
/**
* Creates a new SharedStreetsLinearReferences instance using the specified properties.
* @param [properties] Properties to set
* @returns SharedStreetsLinearReferences instance
*/
public static create(properties?: ISharedStreetsLinearReferences): SharedStreetsLinearReferences;
/**
* Encodes the specified SharedStreetsLinearReferences message. Does not implicitly {@link SharedStreetsLinearReferences.verify|verify} messages.
* @param message SharedStreetsLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ISharedStreetsLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SharedStreetsLinearReferences message, length delimited. Does not implicitly {@link SharedStreetsLinearReferences.verify|verify} messages.
* @param message SharedStreetsLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ISharedStreetsLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SharedStreetsLinearReferences message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SharedStreetsLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SharedStreetsLinearReferences;
/**
* Decodes a SharedStreetsLinearReferences message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SharedStreetsLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SharedStreetsLinearReferences;
/**
* Verifies a SharedStreetsLinearReferences message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SharedStreetsLinearReferences message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SharedStreetsLinearReferences
*/
public static fromObject(object: { [k: string]: any }): SharedStreetsLinearReferences;
/**
* Creates a plain object from a SharedStreetsLinearReferences message. Also converts values to other types if specified.
* @param message SharedStreetsLinearReferences
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: SharedStreetsLinearReferences, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SharedStreetsLinearReferences to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a DataBin. */
export interface IDataBin {
/** DataBin dataType */
dataType?: (string[]|null);
/** DataBin count */
count?: ((number|Long)[]|null);
/** DataBin value */
value?: (number[]|null);
}
/** Represents a DataBin. */
export class DataBin implements IDataBin {
/**
* Constructs a new DataBin.
* @param [properties] Properties to set
*/
constructor(properties?: IDataBin);
/** DataBin dataType. */
public dataType: string[];
/** DataBin count. */
public count: (number|Long)[];
/** DataBin value. */
public value: number[];
/**
* Creates a new DataBin instance using the specified properties.
* @param [properties] Properties to set
* @returns DataBin instance
*/
public static create(properties?: IDataBin): DataBin;
/**
* Encodes the specified DataBin message. Does not implicitly {@link DataBin.verify|verify} messages.
* @param message DataBin message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IDataBin, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DataBin message, length delimited. Does not implicitly {@link DataBin.verify|verify} messages.
* @param message DataBin message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IDataBin, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DataBin message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DataBin
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): DataBin;
/**
* Decodes a DataBin message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DataBin
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): DataBin;
/**
* Verifies a DataBin message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DataBin message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DataBin
*/
public static fromObject(object: { [k: string]: any }): DataBin;
/**
* Creates a plain object from a DataBin message. Also converts values to other types if specified.
* @param message DataBin
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: DataBin, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DataBin to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a BinnedPeriodicData. */
export interface IBinnedPeriodicData {
/** BinnedPeriodicData periodOffset */
periodOffset?: (number[]|null);
/** BinnedPeriodicData bins */
bins?: (IDataBin[]|null);
}
/** Represents a BinnedPeriodicData. */
export class BinnedPeriodicData implements IBinnedPeriodicData {
/**
* Constructs a new BinnedPeriodicData.
* @param [properties] Properties to set
*/
constructor(properties?: IBinnedPeriodicData);
/** BinnedPeriodicData periodOffset. */
public periodOffset: number[];
/** BinnedPeriodicData bins. */
public bins: IDataBin[];
/**
* Creates a new BinnedPeriodicData instance using the specified properties.
* @param [properties] Properties to set
* @returns BinnedPeriodicData instance
*/
public static create(properties?: IBinnedPeriodicData): BinnedPeriodicData;
/**
* Encodes the specified BinnedPeriodicData message. Does not implicitly {@link BinnedPeriodicData.verify|verify} messages.
* @param message BinnedPeriodicData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: IBinnedPeriodicData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified BinnedPeriodicData message, length delimited. Does not implicitly {@link BinnedPeriodicData.verify|verify} messages.
* @param message BinnedPeriodicData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: IBinnedPeriodicData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a BinnedPeriodicData message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns BinnedPeriodicData
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BinnedPeriodicData;
/**
* Decodes a BinnedPeriodicData message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns BinnedPeriodicData
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BinnedPeriodicData;
/**
* Verifies a BinnedPeriodicData message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a BinnedPeriodicData message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns BinnedPeriodicData
*/
public static fromObject(object: { [k: string]: any }): BinnedPeriodicData;
/**
* Creates a plain object from a BinnedPeriodicData message. Also converts values to other types if specified.
* @param message BinnedPeriodicData
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: BinnedPeriodicData, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this BinnedPeriodicData to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a SharedStreetsBinnedLinearReferences. */
export interface ISharedStreetsBinnedLinearReferences {
/** SharedStreetsBinnedLinearReferences referenceId */
referenceId?: (string|null);
/** SharedStreetsBinnedLinearReferences scaledCounts */
scaledCounts?: (boolean|null);
/** SharedStreetsBinnedLinearReferences referenceLength */
referenceLength?: (number|Long|null);
/** SharedStreetsBinnedLinearReferences numberOfBins */
numberOfBins?: (number|null);
/** SharedStreetsBinnedLinearReferences binPosition */
binPosition?: (number[]|null);
/** SharedStreetsBinnedLinearReferences bins */
bins?: (IDataBin[]|null);
}
/** Represents a SharedStreetsBinnedLinearReferences. */
export class SharedStreetsBinnedLinearReferences implements ISharedStreetsBinnedLinearReferences {
/**
* Constructs a new SharedStreetsBinnedLinearReferences.
* @param [properties] Properties to set
*/
constructor(properties?: ISharedStreetsBinnedLinearReferences);
/** SharedStreetsBinnedLinearReferences referenceId. */
public referenceId: string;
/** SharedStreetsBinnedLinearReferences scaledCounts. */
public scaledCounts: boolean;
/** SharedStreetsBinnedLinearReferences referenceLength. */
public referenceLength: (number|Long);
/** SharedStreetsBinnedLinearReferences numberOfBins. */
public numberOfBins: number;
/** SharedStreetsBinnedLinearReferences binPosition. */
public binPosition: number[];
/** SharedStreetsBinnedLinearReferences bins. */
public bins: IDataBin[];
/**
* Creates a new SharedStreetsBinnedLinearReferences instance using the specified properties.
* @param [properties] Properties to set
* @returns SharedStreetsBinnedLinearReferences instance
*/
public static create(properties?: ISharedStreetsBinnedLinearReferences): SharedStreetsBinnedLinearReferences;
/**
* Encodes the specified SharedStreetsBinnedLinearReferences message. Does not implicitly {@link SharedStreetsBinnedLinearReferences.verify|verify} messages.
* @param message SharedStreetsBinnedLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ISharedStreetsBinnedLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SharedStreetsBinnedLinearReferences message, length delimited. Does not implicitly {@link SharedStreetsBinnedLinearReferences.verify|verify} messages.
* @param message SharedStreetsBinnedLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ISharedStreetsBinnedLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SharedStreetsBinnedLinearReferences message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SharedStreetsBinnedLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SharedStreetsBinnedLinearReferences;
/**
* Decodes a SharedStreetsBinnedLinearReferences message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SharedStreetsBinnedLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SharedStreetsBinnedLinearReferences;
/**
* Verifies a SharedStreetsBinnedLinearReferences message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SharedStreetsBinnedLinearReferences message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SharedStreetsBinnedLinearReferences
*/
public static fromObject(object: { [k: string]: any }): SharedStreetsBinnedLinearReferences;
/**
* Creates a plain object from a SharedStreetsBinnedLinearReferences message. Also converts values to other types if specified.
* @param message SharedStreetsBinnedLinearReferences
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: SharedStreetsBinnedLinearReferences, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SharedStreetsBinnedLinearReferences to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** PeriodSize enum. */
export enum PeriodSize {
OneSecond = 0,
FiveSeconds = 1,
TenSeconds = 2,
FifteenSeconds = 3,
ThirtySeconds = 4,
OneMinute = 5,
FiveMinutes = 6,
TenMinutes = 7,
FifteenMinutes = 8,
ThirtyMinutes = 9,
OneHour = 10,
OneDay = 11,
OneWeek = 12,
OneMonth = 13,
OneYear = 14
}
/** Properties of a SharedStreetsWeeklyBinnedLinearReferences. */
export interface ISharedStreetsWeeklyBinnedLinearReferences {
/** SharedStreetsWeeklyBinnedLinearReferences referenceId */
referenceId?: (string|null);
/** SharedStreetsWeeklyBinnedLinearReferences periodSize */
periodSize?: (PeriodSize|null);
/** SharedStreetsWeeklyBinnedLinearReferences scaledCounts */
scaledCounts?: (boolean|null);
/** SharedStreetsWeeklyBinnedLinearReferences referenceLength */
referenceLength?: (number|Long|null);
/** SharedStreetsWeeklyBinnedLinearReferences numberOfBins */
numberOfBins?: (number|null);
/** SharedStreetsWeeklyBinnedLinearReferences binPosition */
binPosition?: (number[]|null);
/** SharedStreetsWeeklyBinnedLinearReferences binnedPeriodicData */
binnedPeriodicData?: (IBinnedPeriodicData[]|null);
}
/** Represents a SharedStreetsWeeklyBinnedLinearReferences. */
export class SharedStreetsWeeklyBinnedLinearReferences implements ISharedStreetsWeeklyBinnedLinearReferences {
/**
* Constructs a new SharedStreetsWeeklyBinnedLinearReferences.
* @param [properties] Properties to set
*/
constructor(properties?: ISharedStreetsWeeklyBinnedLinearReferences);
/** SharedStreetsWeeklyBinnedLinearReferences referenceId. */
public referenceId: string;
/** SharedStreetsWeeklyBinnedLinearReferences periodSize. */
public periodSize: PeriodSize;
/** SharedStreetsWeeklyBinnedLinearReferences scaledCounts. */
public scaledCounts: boolean;
/** SharedStreetsWeeklyBinnedLinearReferences referenceLength. */
public referenceLength: (number|Long);
/** SharedStreetsWeeklyBinnedLinearReferences numberOfBins. */
public numberOfBins: number;
/** SharedStreetsWeeklyBinnedLinearReferences binPosition. */
public binPosition: number[];
/** SharedStreetsWeeklyBinnedLinearReferences binnedPeriodicData. */
public binnedPeriodicData: IBinnedPeriodicData[];
/**
* Creates a new SharedStreetsWeeklyBinnedLinearReferences instance using the specified properties.
* @param [properties] Properties to set
* @returns SharedStreetsWeeklyBinnedLinearReferences instance
*/
public static create(properties?: ISharedStreetsWeeklyBinnedLinearReferences): SharedStreetsWeeklyBinnedLinearReferences;
/**
* Encodes the specified SharedStreetsWeeklyBinnedLinearReferences message. Does not implicitly {@link SharedStreetsWeeklyBinnedLinearReferences.verify|verify} messages.
* @param message SharedStreetsWeeklyBinnedLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ISharedStreetsWeeklyBinnedLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified SharedStreetsWeeklyBinnedLinearReferences message, length delimited. Does not implicitly {@link SharedStreetsWeeklyBinnedLinearReferences.verify|verify} messages.
* @param message SharedStreetsWeeklyBinnedLinearReferences message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ISharedStreetsWeeklyBinnedLinearReferences, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a SharedStreetsWeeklyBinnedLinearReferences message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns SharedStreetsWeeklyBinnedLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SharedStreetsWeeklyBinnedLinearReferences;
/**
* Decodes a SharedStreetsWeeklyBinnedLinearReferences message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns SharedStreetsWeeklyBinnedLinearReferences
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SharedStreetsWeeklyBinnedLinearReferences;
/**
* Verifies a SharedStreetsWeeklyBinnedLinearReferences message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a SharedStreetsWeeklyBinnedLinearReferences message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns SharedStreetsWeeklyBinnedLinearReferences
*/
public static fromObject(object: { [k: string]: any }): SharedStreetsWeeklyBinnedLinearReferences;
/**
* Creates a plain object from a SharedStreetsWeeklyBinnedLinearReferences message. Also converts values to other types if specified.
* @param message SharedStreetsWeeklyBinnedLinearReferences
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: SharedStreetsWeeklyBinnedLinearReferences, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this SharedStreetsWeeklyBinnedLinearReferences to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}