Class Engine.KnowledgeGraphConfig (0.90.0)

public static final class Engine.KnowledgeGraphConfig extends GeneratedMessage implements Engine.KnowledgeGraphConfigOrBuilder

Configuration message for the Knowledge Graph.

Protobuf type google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig

Static Fields

CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER

public static final int CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER

public static final int ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER

public static final int ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER
Field Value
Type Description
int

FEATURE_CONFIG_FIELD_NUMBER

public static final int FEATURE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER

public static final int PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Engine.KnowledgeGraphConfig getDefaultInstance()
Returns
Type Description
Engine.KnowledgeGraphConfig

getDescriptor()

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

newBuilder()

public static Engine.KnowledgeGraphConfig.Builder newBuilder()
Returns
Type Description
Engine.KnowledgeGraphConfig.Builder

newBuilder(Engine.KnowledgeGraphConfig prototype)

public static Engine.KnowledgeGraphConfig.Builder newBuilder(Engine.KnowledgeGraphConfig prototype)
Parameter
Name Description
prototype Engine.KnowledgeGraphConfig
Returns
Type Description
Engine.KnowledgeGraphConfig.Builder

parseDelimitedFrom(InputStream input)

public static Engine.KnowledgeGraphConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Engine.KnowledgeGraphConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Engine.KnowledgeGraphConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Engine.KnowledgeGraphConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Engine.KnowledgeGraphConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Engine.KnowledgeGraphConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Engine.KnowledgeGraphConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Engine.KnowledgeGraphConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Engine.KnowledgeGraphConfig> parser()
Returns
Type Description
Parser<KnowledgeGraphConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCloudKnowledgeGraphTypes(int index)

public String getCloudKnowledgeGraphTypes(int index)

Specify entity types to support.

repeated string cloud_knowledge_graph_types = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cloudKnowledgeGraphTypes at the given index.

getCloudKnowledgeGraphTypesBytes(int index)

public ByteString getCloudKnowledgeGraphTypesBytes(int index)

Specify entity types to support.

repeated string cloud_knowledge_graph_types = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cloudKnowledgeGraphTypes at the given index.

getCloudKnowledgeGraphTypesCount()

public int getCloudKnowledgeGraphTypesCount()

Specify entity types to support.

repeated string cloud_knowledge_graph_types = 2;

Returns
Type Description
int

The count of cloudKnowledgeGraphTypes.

getCloudKnowledgeGraphTypesList()

public ProtocolStringList getCloudKnowledgeGraphTypesList()

Specify entity types to support.

repeated string cloud_knowledge_graph_types = 2;

Returns
Type Description
ProtocolStringList

A list containing the cloudKnowledgeGraphTypes.

getDefaultInstanceForType()

public Engine.KnowledgeGraphConfig getDefaultInstanceForType()
Returns
Type Description
Engine.KnowledgeGraphConfig

getEnableCloudKnowledgeGraph()

public boolean getEnableCloudKnowledgeGraph()

Whether to enable the Cloud Knowledge Graph for the engine.

Defaults to false if not specified.

bool enable_cloud_knowledge_graph = 1;

Returns
Type Description
boolean

The enableCloudKnowledgeGraph.

getEnablePrivateKnowledgeGraph()

public boolean getEnablePrivateKnowledgeGraph()

Whether to enable the Private Knowledge Graph for the engine.

Defaults to false if not specified.

bool enable_private_knowledge_graph = 3;

Returns
Type Description
boolean

The enablePrivateKnowledgeGraph.

getFeatureConfig()

public Engine.KnowledgeGraphConfig.FeatureConfig getFeatureConfig()

Optional. Feature config for the Knowledge Graph.

.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Engine.KnowledgeGraphConfig.FeatureConfig

The featureConfig.

getFeatureConfigOrBuilder()

public Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder getFeatureConfigOrBuilder()

Optional. Feature config for the Knowledge Graph.

.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder

getParserForType()

public Parser<Engine.KnowledgeGraphConfig> getParserForType()
Returns
Type Description
Parser<KnowledgeGraphConfig>
Overrides

getPrivateKnowledgeGraphTypes(int index)

public String getPrivateKnowledgeGraphTypes(int index)

Specify entity types to support.

repeated string private_knowledge_graph_types = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The privateKnowledgeGraphTypes at the given index.

getPrivateKnowledgeGraphTypesBytes(int index)

public ByteString getPrivateKnowledgeGraphTypesBytes(int index)

Specify entity types to support.

repeated string private_knowledge_graph_types = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the privateKnowledgeGraphTypes at the given index.

getPrivateKnowledgeGraphTypesCount()

public int getPrivateKnowledgeGraphTypesCount()

Specify entity types to support.

repeated string private_knowledge_graph_types = 4;

Returns
Type Description
int

The count of privateKnowledgeGraphTypes.

getPrivateKnowledgeGraphTypesList()

public ProtocolStringList getPrivateKnowledgeGraphTypesList()

Specify entity types to support.

repeated string private_knowledge_graph_types = 4;

Returns
Type Description
ProtocolStringList

A list containing the privateKnowledgeGraphTypes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasFeatureConfig()

public boolean hasFeatureConfig()

Optional. Feature config for the Knowledge Graph.

.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the featureConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Engine.KnowledgeGraphConfig.Builder newBuilderForType()
Returns
Type Description
Engine.KnowledgeGraphConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Engine.KnowledgeGraphConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Engine.KnowledgeGraphConfig.Builder
Overrides

toBuilder()

public Engine.KnowledgeGraphConfig.Builder toBuilder()
Returns
Type Description
Engine.KnowledgeGraphConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException