Class Context.SchemaRelationship (0.9.0)

public static final class Context.SchemaRelationship extends GeneratedMessageV3 implements Context.SchemaRelationshipOrBuilder

The relationship between two tables, including referencing and referenced columns. This is a derived context retrieved from Dataplex Dataset Insights.

Protobuf type google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship

Static Fields

CONFIDENCE_SCORE_FIELD_NUMBER

public static final int CONFIDENCE_SCORE_FIELD_NUMBER
Field Value
Type Description
int

LEFT_SCHEMA_PATHS_FIELD_NUMBER

public static final int LEFT_SCHEMA_PATHS_FIELD_NUMBER
Field Value
Type Description
int

RIGHT_SCHEMA_PATHS_FIELD_NUMBER

public static final int RIGHT_SCHEMA_PATHS_FIELD_NUMBER
Field Value
Type Description
int

SOURCES_FIELD_NUMBER

public static final int SOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Context.SchemaRelationship getDefaultInstance()
Returns
Type Description
Context.SchemaRelationship

getDescriptor()

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

newBuilder()

public static Context.SchemaRelationship.Builder newBuilder()
Returns
Type Description
Context.SchemaRelationship.Builder

newBuilder(Context.SchemaRelationship prototype)

public static Context.SchemaRelationship.Builder newBuilder(Context.SchemaRelationship prototype)
Parameter
Name Description
prototype Context.SchemaRelationship
Returns
Type Description
Context.SchemaRelationship.Builder

parseDelimitedFrom(InputStream input)

public static Context.SchemaRelationship parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Context.SchemaRelationship
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Context.SchemaRelationship parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Context.SchemaRelationship
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Context.SchemaRelationship parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Context.SchemaRelationship
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Context.SchemaRelationship parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Context.SchemaRelationship
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Context.SchemaRelationship parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Context.SchemaRelationship
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Context.SchemaRelationship> parser()
Returns
Type Description
Parser<SchemaRelationship>

Methods

equals(Object obj)

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

getConfidenceScore()

public float getConfidenceScore()

A confidence score for the suggested relationship. Manually added edges have the highest confidence score.

float confidence_score = 4;

Returns
Type Description
float

The confidenceScore.

getDefaultInstanceForType()

public Context.SchemaRelationship getDefaultInstanceForType()
Returns
Type Description
Context.SchemaRelationship

getLeftSchemaPaths()

public Context.SchemaRelationship.SchemaPaths getLeftSchemaPaths()

An ordered list of fields for the join from the first table. The size of this list must be the same as right_schema_paths. Each field at index i in this list must correspond to a field at the same index in the right_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1;

Returns
Type Description
Context.SchemaRelationship.SchemaPaths

The leftSchemaPaths.

getLeftSchemaPathsOrBuilder()

public Context.SchemaRelationship.SchemaPathsOrBuilder getLeftSchemaPathsOrBuilder()

An ordered list of fields for the join from the first table. The size of this list must be the same as right_schema_paths. Each field at index i in this list must correspond to a field at the same index in the right_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1;

Returns
Type Description
Context.SchemaRelationship.SchemaPathsOrBuilder

getParserForType()

public Parser<Context.SchemaRelationship> getParserForType()
Returns
Type Description
Parser<SchemaRelationship>
Overrides

getRightSchemaPaths()

public Context.SchemaRelationship.SchemaPaths getRightSchemaPaths()

An ordered list of fields for the join from the second table. The size of this list must be the same as left_schema_paths. Each field at index i in this list must correspond to a field at the same index in the left_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2;

Returns
Type Description
Context.SchemaRelationship.SchemaPaths

The rightSchemaPaths.

getRightSchemaPathsOrBuilder()

public Context.SchemaRelationship.SchemaPathsOrBuilder getRightSchemaPathsOrBuilder()

An ordered list of fields for the join from the second table. The size of this list must be the same as left_schema_paths. Each field at index i in this list must correspond to a field at the same index in the left_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2;

Returns
Type Description
Context.SchemaRelationship.SchemaPathsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSources(int index)

public Context.SchemaRelationship.Source getSources(int index)

Sources which generated the schema relation edge.

repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Context.SchemaRelationship.Source

The sources at the given index.

getSourcesCount()

public int getSourcesCount()

Sources which generated the schema relation edge.

repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3;

Returns
Type Description
int

The count of sources.

getSourcesList()

public List<Context.SchemaRelationship.Source> getSourcesList()

Sources which generated the schema relation edge.

repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3;

Returns
Type Description
List<Source>

A list containing the sources.

getSourcesValue(int index)

public int getSourcesValue(int index)

Sources which generated the schema relation edge.

repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of sources at the given index.

getSourcesValueList()

public List<Integer> getSourcesValueList()

Sources which generated the schema relation edge.

repeated .google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source sources = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for sources.

hasLeftSchemaPaths()

public boolean hasLeftSchemaPaths()

An ordered list of fields for the join from the first table. The size of this list must be the same as right_schema_paths. Each field at index i in this list must correspond to a field at the same index in the right_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths left_schema_paths = 1;

Returns
Type Description
boolean

Whether the leftSchemaPaths field is set.

hasRightSchemaPaths()

public boolean hasRightSchemaPaths()

An ordered list of fields for the join from the second table. The size of this list must be the same as left_schema_paths. Each field at index i in this list must correspond to a field at the same index in the left_schema_paths list.

.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths right_schema_paths = 2;

Returns
Type Description
boolean

Whether the rightSchemaPaths field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Context.SchemaRelationship.Builder newBuilderForType()
Returns
Type Description
Context.SchemaRelationship.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Context.SchemaRelationship.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Context.SchemaRelationship.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Context.SchemaRelationship.Builder toBuilder()
Returns
Type Description
Context.SchemaRelationship.Builder

writeTo(CodedOutputStream output)

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