Class IntRange.Builder (0.8.0)

public static final class IntRange.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IntRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IntRange.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public IntRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IntRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IntRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IntRange.Builder
Overrides

clearStart()

public IntRange.Builder clearStart()

Start of the int range.

optional int64 start = 1;

Returns
Type Description
IntRange.Builder

This builder for chaining.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IntRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public IntRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
IntRange.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IntRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IntRange.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final IntRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IntRange.Builder
Overrides