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
NameDescription
otherTimeZone

Fields

IdFieldNumber

public const int IdFieldNumber = 1

Field number for the "id" field.

Field Value
TypeDescription
Int32

VersionFieldNumber

public const int VersionFieldNumber = 2

Field number for the "version" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

Id

public string Id { get; set; }

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

Property Value
TypeDescription
String

Parser

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

Version

public string Version { get; set; }

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

Property Value
TypeDescription
String

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public TimeZone Clone()
Returns
TypeDescription
TimeZone

Equals(TimeZone)

public bool Equals(TimeZone other)
Parameter
NameDescription
otherTimeZone
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
NameDescription
inputProtobuf.CodedInputStream

MergeFrom(TimeZone)

public void MergeFrom(TimeZone other)
Parameter
NameDescription
otherTimeZone

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
NameDescription
outputProtobuf.CodedOutputStream