Class RangeInfo.Builder (0.26.0)

public static final class RangeInfo.Builder extends GeneratedMessage.Builder<RangeInfo.Builder> implements RangeInfoOrBuilder

Half-open range interval [start, end)

Protobuf type google.cloud.modelarmor.v1.RangeInfo

Implements

RangeInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RangeInfo build()
Returns
Type Description
RangeInfo

buildPartial()

public RangeInfo buildPartial()
Returns
Type Description
RangeInfo

clear()

public RangeInfo.Builder clear()
Returns
Type Description
RangeInfo.Builder
Overrides

clearEnd()

public RangeInfo.Builder clearEnd()

Index of last character (exclusive).

optional int64 end = 2;

Returns
Type Description
RangeInfo.Builder

This builder for chaining.

clearStart()

public RangeInfo.Builder clearStart()

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

optional int64 start = 1;

Returns
Type Description
RangeInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public RangeInfo getDefaultInstanceForType()
Returns
Type Description
RangeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnd()

public long getEnd()

Index of last character (exclusive).

optional int64 end = 2;

Returns
Type Description
long

The end.

getStart()

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

optional int64 start = 1;

Returns
Type Description
long

The start.

hasEnd()

public boolean hasEnd()

Index of last character (exclusive).

optional int64 end = 2;

Returns
Type Description
boolean

Whether the end field is set.

hasStart()

public boolean hasStart()

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

optional int64 start = 1;

Returns
Type Description
boolean

Whether the start field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RangeInfo other)

public RangeInfo.Builder mergeFrom(RangeInfo other)
Parameter
Name Description
other RangeInfo
Returns
Type Description
RangeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RangeInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RangeInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RangeInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RangeInfo.Builder
Overrides

setEnd(long value)

public RangeInfo.Builder setEnd(long value)

Index of last character (exclusive).

optional int64 end = 2;

Parameter
Name Description
value long

The end to set.

Returns
Type Description
RangeInfo.Builder

This builder for chaining.

setStart(long value)

public RangeInfo.Builder setStart(long value)

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

optional int64 start = 1;

Parameter
Name Description
value long

The start to set.

Returns
Type Description
RangeInfo.Builder

This builder for chaining.