// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file geo-identifier/v1/models.proto (package geoidentifier.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from message geoidentifier.v1.Country */ export class Country extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: string country_code = 2; */ countryCode = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.Country"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Country { return new Country().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Country { return new Country().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Country { return new Country().fromJsonString(jsonString, options); } static equals(a: Country | PlainMessage | undefined, b: Country | PlainMessage | undefined): boolean { return proto3.util.equals(Country, a, b); } } /** * @generated from message geoidentifier.v1.Region */ export class Region extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: string code = 2; */ code = ""; /** * @generated from field: string country_code = 3; */ countryCode = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.Region"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Region { return new Region().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Region { return new Region().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Region { return new Region().fromJsonString(jsonString, options); } static equals(a: Region | PlainMessage | undefined, b: Region | PlainMessage | undefined): boolean { return proto3.util.equals(Region, a, b); } } /** * @generated from message geoidentifier.v1.GetCountriesRequest */ export class GetCountriesRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetCountriesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCountriesRequest { return new GetCountriesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCountriesRequest { return new GetCountriesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCountriesRequest { return new GetCountriesRequest().fromJsonString(jsonString, options); } static equals(a: GetCountriesRequest | PlainMessage | undefined, b: GetCountriesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetCountriesRequest, a, b); } } /** * @generated from message geoidentifier.v1.GetCountriesResponse */ export class GetCountriesResponse extends Message { /** * @generated from field: repeated geoidentifier.v1.Country countries = 1; */ countries: Country[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetCountriesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "countries", kind: "message", T: Country, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCountriesResponse { return new GetCountriesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCountriesResponse { return new GetCountriesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCountriesResponse { return new GetCountriesResponse().fromJsonString(jsonString, options); } static equals(a: GetCountriesResponse | PlainMessage | undefined, b: GetCountriesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetCountriesResponse, a, b); } } /** * @generated from message geoidentifier.v1.GetCountryRegionsRequest */ export class GetCountryRegionsRequest extends Message { /** * @generated from field: string country_code = 1; */ countryCode = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetCountryRegionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "country_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCountryRegionsRequest { return new GetCountryRegionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCountryRegionsRequest { return new GetCountryRegionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCountryRegionsRequest { return new GetCountryRegionsRequest().fromJsonString(jsonString, options); } static equals(a: GetCountryRegionsRequest | PlainMessage | undefined, b: GetCountryRegionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetCountryRegionsRequest, a, b); } } /** * @generated from message geoidentifier.v1.GetCountryRegionsResponse */ export class GetCountryRegionsResponse extends Message { /** * @generated from field: repeated geoidentifier.v1.Region regions = 1; */ regions: Region[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetCountryRegionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "regions", kind: "message", T: Region, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCountryRegionsResponse { return new GetCountryRegionsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCountryRegionsResponse { return new GetCountryRegionsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCountryRegionsResponse { return new GetCountryRegionsResponse().fromJsonString(jsonString, options); } static equals(a: GetCountryRegionsResponse | PlainMessage | undefined, b: GetCountryRegionsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetCountryRegionsResponse, a, b); } } /** * @generated from message geoidentifier.v1.GetAvailableTimezonesRequest */ export class GetAvailableTimezonesRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetAvailableTimezonesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableTimezonesRequest { return new GetAvailableTimezonesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableTimezonesRequest { return new GetAvailableTimezonesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableTimezonesRequest { return new GetAvailableTimezonesRequest().fromJsonString(jsonString, options); } static equals(a: GetAvailableTimezonesRequest | PlainMessage | undefined, b: GetAvailableTimezonesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableTimezonesRequest, a, b); } } /** * @generated from message geoidentifier.v1.GetAvailableTimezonesResponse */ export class GetAvailableTimezonesResponse extends Message { /** * @generated from field: repeated string timezones = 1; */ timezones: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetAvailableTimezonesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "timezones", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableTimezonesResponse { return new GetAvailableTimezonesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableTimezonesResponse { return new GetAvailableTimezonesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableTimezonesResponse { return new GetAvailableTimezonesResponse().fromJsonString(jsonString, options); } static equals(a: GetAvailableTimezonesResponse | PlainMessage | undefined, b: GetAvailableTimezonesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableTimezonesResponse, a, b); } } /** * @generated from message geoidentifier.v1.GetAvailableTimezonesWithOffsetRequest */ export class GetAvailableTimezonesWithOffsetRequest extends Message { /** * @generated from field: int32 offset = 1; */ offset = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetAvailableTimezonesWithOffsetRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableTimezonesWithOffsetRequest { return new GetAvailableTimezonesWithOffsetRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableTimezonesWithOffsetRequest { return new GetAvailableTimezonesWithOffsetRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableTimezonesWithOffsetRequest { return new GetAvailableTimezonesWithOffsetRequest().fromJsonString(jsonString, options); } static equals(a: GetAvailableTimezonesWithOffsetRequest | PlainMessage | undefined, b: GetAvailableTimezonesWithOffsetRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableTimezonesWithOffsetRequest, a, b); } } /** * @generated from message geoidentifier.v1.GetAvailableTimezonesWithOffsetResponse */ export class GetAvailableTimezonesWithOffsetResponse extends Message { /** * @generated from field: repeated string timezones = 1; */ timezones: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.GetAvailableTimezonesWithOffsetResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "timezones", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableTimezonesWithOffsetResponse { return new GetAvailableTimezonesWithOffsetResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableTimezonesWithOffsetResponse { return new GetAvailableTimezonesWithOffsetResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableTimezonesWithOffsetResponse { return new GetAvailableTimezonesWithOffsetResponse().fromJsonString(jsonString, options); } static equals(a: GetAvailableTimezonesWithOffsetResponse | PlainMessage | undefined, b: GetAvailableTimezonesWithOffsetResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableTimezonesWithOffsetResponse, a, b); } } /** * @generated from message geoidentifier.v1.PredictTimezoneRequest */ export class PredictTimezoneRequest extends Message { /** * @generated from field: string query = 1; */ query = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.PredictTimezoneRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PredictTimezoneRequest { return new PredictTimezoneRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PredictTimezoneRequest { return new PredictTimezoneRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PredictTimezoneRequest { return new PredictTimezoneRequest().fromJsonString(jsonString, options); } static equals(a: PredictTimezoneRequest | PlainMessage | undefined, b: PredictTimezoneRequest | PlainMessage | undefined): boolean { return proto3.util.equals(PredictTimezoneRequest, a, b); } } /** * @generated from message geoidentifier.v1.PredictTimezoneResponse */ export class PredictTimezoneResponse extends Message { /** * @generated from field: string timezone = 1; */ timezone = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "geoidentifier.v1.PredictTimezoneResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "timezone", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PredictTimezoneResponse { return new PredictTimezoneResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PredictTimezoneResponse { return new PredictTimezoneResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PredictTimezoneResponse { return new PredictTimezoneResponse().fromJsonString(jsonString, options); } static equals(a: PredictTimezoneResponse | PlainMessage | undefined, b: PredictTimezoneResponse | PlainMessage | undefined): boolean { return proto3.util.equals(PredictTimezoneResponse, a, b); } }