Class TimeZone (2.2.0)

public sealed class TimeZone : Protobuf.IMessage<TimeZone>, Protobuf.IBufferMessage

Represents a time zone from the IANA Time Zone Database.

Inheritance

Object > TimeZone

Namespace

Google.Type

Assembly

Google.Api.CommonProtos.dll

Constructors

TimeZone()

public TimeZone()

TimeZone(TimeZone)

public TimeZone(TimeZone other)
Parameter
Name Description
other TimeZone

Fields

IdFieldNumber

public const int IdFieldNumber = 1

Field number for the "id" field.

Field Value
Type Description
Int32

VersionFieldNumber

public const int VersionFieldNumber = 2

Field number for the "version" field.

Field Value
Type Description
Int32

Properties

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type Description
Protobuf.Reflection.MessageDescriptor

Id

public string Id { get; set; }

IANA Time Zone Database time zone, e.g. "America/New_York".

Property Value
Type Description
String

Parser

public static Protobuf.MessageParser<TimeZone> Parser { get; }
Property Value
Type Description
Protobuf.MessageParser<TimeZone>

Version

public string Version { get; set; }

Optional. IANA Time Zone Database version number, e.g. "2019a".

Property Value
Type Description
String

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public TimeZone Clone()
Returns
Type Description
TimeZone

Equals(TimeZone)

public bool Equals(TimeZone other)
Parameter
Name Description
other TimeZone
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
Name Description
input Protobuf.CodedInputStream

MergeFrom(TimeZone)

public void MergeFrom(TimeZone other)
Parameter
Name Description
other TimeZone

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
Name Description
output Protobuf.CodedOutputStream