Class RoundToScale.Builder (2.33.0)

public static final class RoundToScale.Builder extends GeneratedMessageV3.Builder<RoundToScale.Builder> implements RoundToScaleOrBuilder

This allows the data to change scale, for example if the source is 2 digits after the decimal point, specify round to scale value = 2. If for example the value needs to be converted to an integer, use round to scale value = 0.

Protobuf type google.cloud.clouddms.v1.RoundToScale

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RoundToScale.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RoundToScale.Builder
Overrides

build()

public RoundToScale build()
Returns
TypeDescription
RoundToScale

buildPartial()

public RoundToScale buildPartial()
Returns
TypeDescription
RoundToScale

clear()

public RoundToScale.Builder clear()
Returns
TypeDescription
RoundToScale.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RoundToScale.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RoundToScale.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RoundToScale.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RoundToScale.Builder
Overrides

clearScale()

public RoundToScale.Builder clearScale()

Required. Scale value to be used

int32 scale = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RoundToScale.Builder

This builder for chaining.

clone()

public RoundToScale.Builder clone()
Returns
TypeDescription
RoundToScale.Builder
Overrides

getDefaultInstanceForType()

public RoundToScale getDefaultInstanceForType()
Returns
TypeDescription
RoundToScale

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getScale()

public int getScale()

Required. Scale value to be used

int32 scale = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The scale.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RoundToScale other)

public RoundToScale.Builder mergeFrom(RoundToScale other)
Parameter
NameDescription
otherRoundToScale
Returns
TypeDescription
RoundToScale.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RoundToScale.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RoundToScale.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RoundToScale.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RoundToScale.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RoundToScale.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RoundToScale.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RoundToScale.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RoundToScale.Builder
Overrides

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

public RoundToScale.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RoundToScale.Builder
Overrides

setScale(int value)

public RoundToScale.Builder setScale(int value)

Required. Scale value to be used

int32 scale = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The scale to set.

Returns
TypeDescription
RoundToScale.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RoundToScale.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RoundToScale.Builder
Overrides