Class ConnectedComponentsConfig.Builder (0.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConnectedComponentsConfig build()
Returns
TypeDescription
ConnectedComponentsConfig

buildPartial()

public ConnectedComponentsConfig buildPartial()
Returns
TypeDescription
ConnectedComponentsConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWeightThreshold()

public ConnectedComponentsConfig.Builder clearWeightThreshold()

Threshold used for connected components. Default value is 0.85.

float weight_threshold = 1;

Returns
TypeDescription
ConnectedComponentsConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ConnectedComponentsConfig getDefaultInstanceForType()
Returns
TypeDescription
ConnectedComponentsConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getWeightThreshold()

public float getWeightThreshold()

Threshold used for connected components. Default value is 0.85.

float weight_threshold = 1;

Returns
TypeDescription
float

The weightThreshold.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConnectedComponentsConfig other)

public ConnectedComponentsConfig.Builder mergeFrom(ConnectedComponentsConfig other)
Parameter
NameDescription
otherConnectedComponentsConfig
Returns
TypeDescription
ConnectedComponentsConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ConnectedComponentsConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuefloat

The weightThreshold to set.

Returns
TypeDescription
ConnectedComponentsConfig.Builder

This builder for chaining.