Class ConnectedComponentsConfig.Builder (0.50.0)

public static final class ConnectedComponentsConfig.Builder extends GeneratedMessageV3.Builder<ConnectedComponentsConfig.Builder> implements ConnectedComponentsConfigOrBuilder

Options for connected components.

Protobuf type google.cloud.enterpriseknowledgegraph.v1.ConnectedComponentsConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectedComponentsConfig build()
Returns
Type Description
ConnectedComponentsConfig

buildPartial()

public ConnectedComponentsConfig buildPartial()
Returns
Type Description
ConnectedComponentsConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWeightThreshold()

public ConnectedComponentsConfig.Builder clearWeightThreshold()

Threshold used for connected components. Default value is 0.85.

float weight_threshold = 1;

Returns
Type Description
ConnectedComponentsConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ConnectedComponentsConfig getDefaultInstanceForType()
Returns
Type Description
ConnectedComponentsConfig

getDescriptorForType()

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

getWeightThreshold()

public float getWeightThreshold()

Threshold used for connected components. Default value is 0.85.

float weight_threshold = 1;

Returns
Type Description
float

The weightThreshold.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConnectedComponentsConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConnectedComponentsConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConnectedComponentsConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWeightThreshold(float value)

public ConnectedComponentsConfig.Builder setWeightThreshold(float value)

Threshold used for connected components. Default value is 0.85.

float weight_threshold = 1;

Parameter
Name Description
value float

The weightThreshold to set.

Returns
Type Description
ConnectedComponentsConfig.Builder

This builder for chaining.