Model Armor v1 API - Class RangeInfo (1.0.0-beta01)

public sealed class RangeInfo : IMessage<RangeInfo>, IEquatable<RangeInfo>, IDeepCloneable<RangeInfo>, IBufferMessage, IMessage

Reference documentation and code samples for the Model Armor v1 API class RangeInfo.

Half-open range interval [start, end)

Inheritance

object > RangeInfo

Namespace

Google.Cloud.ModelArmor.V1

Assembly

Google.Cloud.ModelArmor.V1.dll

Constructors

RangeInfo()

public RangeInfo()

RangeInfo(RangeInfo)

public RangeInfo(RangeInfo other)
Parameter
Name Description
other RangeInfo

Properties

End

public long End { get; set; }

Index of last character (exclusive).

Property Value
Type Description
long

HasEnd

public bool HasEnd { get; }

Gets whether the "end" field is set

Property Value
Type Description
bool

HasStart

public bool HasStart { get; }

Gets whether the "start" field is set

Property Value
Type Description
bool

Start

public long Start { get; set; }

For proto3, value cannot be set to 0 unless the field is optional. Ref: https://protobuf.dev/programming-guides/proto3/#default Index of first character (inclusive).

Property Value
Type Description
long