Google Cloud Model Armor V1beta Client - Class RangeInfo (0.4.0)

Reference documentation and code samples for the Google Cloud Model Armor V1beta Client class RangeInfo.

Half-open range interval [start, end)

Generated from protobuf message google.cloud.modelarmor.v1beta.RangeInfo

Namespace

Google \ Cloud \ ModelArmor \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start int|string

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).

↳ end int|string

Index of last character (exclusive).

getStart

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).

Returns
Type Description
int|string

hasStart

clearStart

setStart

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).

Parameter
Name Description
var int|string
Returns
Type Description
$this

getEnd

Index of last character (exclusive).

Returns
Type Description
int|string

hasEnd

clearEnd

setEnd

Index of last character (exclusive).

Parameter
Name Description
var int|string
Returns
Type Description
$this