Class IntRange.Builder (0.40.0)

public static final class IntRange.Builder extends GeneratedMessage.Builder<IntRange.Builder> implements IntRangeOrBuilder

Integer range type.

Protobuf type google.cloud.visionai.v1.IntRange

Implements

IntRangeOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public IntRange build()
Returns
Type Description
IntRange

buildPartial()

public IntRange buildPartial()
Returns
Type Description
IntRange

clear()

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

clearEnd()

public IntRange.Builder clearEnd()

End of the int range.

optional int64 end = 2;

Returns
Type Description
IntRange.Builder

This builder for chaining.

clearStart()

public IntRange.Builder clearStart()

Start of the int range.

optional int64 start = 1;

Returns
Type Description
IntRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public IntRange getDefaultInstanceForType()
Returns
Type Description
IntRange

getDescriptorForType()

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

getEnd()

public long getEnd()

End of the int range.

optional int64 end = 2;

Returns
Type Description
long

The end.

getStart()

public long getStart()

Start of the int range.

optional int64 start = 1;

Returns
Type Description
long

The start.

hasEnd()

public boolean hasEnd()

End of the int range.

optional int64 end = 2;

Returns
Type Description
boolean

Whether the end field is set.

hasStart()

public boolean hasStart()

Start of the int range.

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(IntRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnd(long value)

public IntRange.Builder setEnd(long value)

End of the int range.

optional int64 end = 2;

Parameter
Name Description
value long

The end to set.

Returns
Type Description
IntRange.Builder

This builder for chaining.

setStart(long value)

public IntRange.Builder setStart(long value)

Start of the int range.

optional int64 start = 1;

Parameter
Name Description
value long

The start to set.

Returns
Type Description
IntRange.Builder

This builder for chaining.