Class MillisecondRange.Builder (0.5.0)

public static final class MillisecondRange.Builder extends GeneratedMessage.Builder<MillisecondRange.Builder> implements MillisecondRangeOrBuilder

Represents a range of latency values in milliseconds.

Protobuf type google.cloud.gkerecommender.v1.MillisecondRange

Static Methods

getDescriptor()

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

Methods

build()

public MillisecondRange build()
Returns
Type Description
MillisecondRange

buildPartial()

public MillisecondRange buildPartial()
Returns
Type Description
MillisecondRange

clear()

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

clearMax()

public MillisecondRange.Builder clearMax()

Output only. The maximum value of the range.

int32 max = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MillisecondRange.Builder

This builder for chaining.

clearMin()

public MillisecondRange.Builder clearMin()

Output only. The minimum value of the range.

int32 min = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MillisecondRange.Builder

This builder for chaining.

getDefaultInstanceForType()

public MillisecondRange getDefaultInstanceForType()
Returns
Type Description
MillisecondRange

getDescriptorForType()

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

getMax()

public int getMax()

Output only. The maximum value of the range.

int32 max = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The max.

getMin()

public int getMin()

Output only. The minimum value of the range.

int32 min = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The min.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MillisecondRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMax(int value)

public MillisecondRange.Builder setMax(int value)

Output only. The maximum value of the range.

int32 max = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The max to set.

Returns
Type Description
MillisecondRange.Builder

This builder for chaining.

setMin(int value)

public MillisecondRange.Builder setMin(int value)

Output only. The minimum value of the range.

int32 min = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The min to set.

Returns
Type Description
MillisecondRange.Builder

This builder for chaining.