Class RelationshipInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RelationshipInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
ai.pipestream.parsed.data.database.v1.RelationshipInfo.Builder
- All Implemented Interfaces:
RelationshipInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
RelationshipInfo
public static final class RelationshipInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
implements RelationshipInfoOrBuilder
Database relationship/foreign key informationProtobuf type
ai.pipestream.parsed.data.database.v1.RelationshipInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllFromColumns(Iterable<String> values) Source columnsaddAllToColumns(Iterable<String> values) Target columnsaddFromColumns(String value) Source columnsaddFromColumnsBytes(com.google.protobuf.ByteString value) Source columnsaddToColumns(String value) Target columnsaddToColumnsBytes(com.google.protobuf.ByteString value) Target columnsbuild()clear()Source columnsSource tableRelationship nameAction on delete (CASCADE, RESTRICT, etc.)Action on update (CASCADE, RESTRICT, etc.)Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)Target columnsTarget tablestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFromColumns(int index) Source columnscom.google.protobuf.ByteStringgetFromColumnsBytes(int index) Source columnsintSource columnscom.google.protobuf.ProtocolStringListSource columnsSource tablecom.google.protobuf.ByteStringSource tablegetName()Relationship namecom.google.protobuf.ByteStringRelationship nameAction on delete (CASCADE, RESTRICT, etc.)com.google.protobuf.ByteStringAction on delete (CASCADE, RESTRICT, etc.)Action on update (CASCADE, RESTRICT, etc.)com.google.protobuf.ByteStringAction on update (CASCADE, RESTRICT, etc.)Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)com.google.protobuf.ByteStringType of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)getToColumns(int index) Target columnscom.google.protobuf.ByteStringgetToColumnsBytes(int index) Target columnsintTarget columnscom.google.protobuf.ProtocolStringListTarget columnsTarget tablecom.google.protobuf.ByteStringTarget tablebooleanSource tablebooleanhasName()Relationship namebooleanAction on delete (CASCADE, RESTRICT, etc.)booleanAction on update (CASCADE, RESTRICT, etc.)booleanType of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)booleanTarget tableprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RelationshipInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFromColumns(int index, String value) Source columnssetFromTable(String value) Source tablesetFromTableBytes(com.google.protobuf.ByteString value) Source tableRelationship namesetNameBytes(com.google.protobuf.ByteString value) Relationship namesetOnDelete(String value) Action on delete (CASCADE, RESTRICT, etc.)setOnDeleteBytes(com.google.protobuf.ByteString value) Action on delete (CASCADE, RESTRICT, etc.)setOnUpdate(String value) Action on update (CASCADE, RESTRICT, etc.)setOnUpdateBytes(com.google.protobuf.ByteString value) Action on update (CASCADE, RESTRICT, etc.)setRelationshipType(String value) Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)setRelationshipTypeBytes(com.google.protobuf.ByteString value) Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)setToColumns(int index, String value) Target columnssetToTable(String value) Target tablesetToTableBytes(com.google.protobuf.ByteString value) Target tableMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RelationshipInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
-
mergeFrom
public RelationshipInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RelationshipInfo.Builder>- Throws:
IOException
-
hasName
public boolean hasName()Relationship name
optional string name = 1 [json_name = "name"];- Specified by:
hasNamein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the name field is set.
-
getName
Relationship name
optional string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceRelationshipInfoOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Relationship name
optional string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for name.
-
setName
Relationship name
optional string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Relationship name
optional string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
Relationship name
optional string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasFromTable
public boolean hasFromTable()Source table
optional string from_table = 2 [json_name = "fromTable"];- Specified by:
hasFromTablein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the fromTable field is set.
-
getFromTable
Source table
optional string from_table = 2 [json_name = "fromTable"];- Specified by:
getFromTablein interfaceRelationshipInfoOrBuilder- Returns:
- The fromTable.
-
getFromTableBytes
public com.google.protobuf.ByteString getFromTableBytes()Source table
optional string from_table = 2 [json_name = "fromTable"];- Specified by:
getFromTableBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for fromTable.
-
setFromTable
Source table
optional string from_table = 2 [json_name = "fromTable"];- Parameters:
value- The fromTable to set.- Returns:
- This builder for chaining.
-
clearFromTable
Source table
optional string from_table = 2 [json_name = "fromTable"];- Returns:
- This builder for chaining.
-
setFromTableBytes
Source table
optional string from_table = 2 [json_name = "fromTable"];- Parameters:
value- The bytes for fromTable to set.- Returns:
- This builder for chaining.
-
hasToTable
public boolean hasToTable()Target table
optional string to_table = 3 [json_name = "toTable"];- Specified by:
hasToTablein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the toTable field is set.
-
getToTable
Target table
optional string to_table = 3 [json_name = "toTable"];- Specified by:
getToTablein interfaceRelationshipInfoOrBuilder- Returns:
- The toTable.
-
getToTableBytes
public com.google.protobuf.ByteString getToTableBytes()Target table
optional string to_table = 3 [json_name = "toTable"];- Specified by:
getToTableBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for toTable.
-
setToTable
Target table
optional string to_table = 3 [json_name = "toTable"];- Parameters:
value- The toTable to set.- Returns:
- This builder for chaining.
-
clearToTable
Target table
optional string to_table = 3 [json_name = "toTable"];- Returns:
- This builder for chaining.
-
setToTableBytes
Target table
optional string to_table = 3 [json_name = "toTable"];- Parameters:
value- The bytes for toTable to set.- Returns:
- This builder for chaining.
-
getFromColumnsList
public com.google.protobuf.ProtocolStringList getFromColumnsList()Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Specified by:
getFromColumnsListin interfaceRelationshipInfoOrBuilder- Returns:
- A list containing the fromColumns.
-
getFromColumnsCount
public int getFromColumnsCount()Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Specified by:
getFromColumnsCountin interfaceRelationshipInfoOrBuilder- Returns:
- The count of fromColumns.
-
getFromColumns
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Specified by:
getFromColumnsin interfaceRelationshipInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fromColumns at the given index.
-
getFromColumnsBytes
public com.google.protobuf.ByteString getFromColumnsBytes(int index) Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Specified by:
getFromColumnsBytesin interfaceRelationshipInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the fromColumns at the given index.
-
setFromColumns
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Parameters:
index- The index to set the value at.value- The fromColumns to set.- Returns:
- This builder for chaining.
-
addFromColumns
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Parameters:
value- The fromColumns to add.- Returns:
- This builder for chaining.
-
addAllFromColumns
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Parameters:
values- The fromColumns to add.- Returns:
- This builder for chaining.
-
clearFromColumns
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Returns:
- This builder for chaining.
-
addFromColumnsBytes
Source columns
repeated string from_columns = 4 [json_name = "fromColumns"];- Parameters:
value- The bytes of the fromColumns to add.- Returns:
- This builder for chaining.
-
getToColumnsList
public com.google.protobuf.ProtocolStringList getToColumnsList()Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Specified by:
getToColumnsListin interfaceRelationshipInfoOrBuilder- Returns:
- A list containing the toColumns.
-
getToColumnsCount
public int getToColumnsCount()Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Specified by:
getToColumnsCountin interfaceRelationshipInfoOrBuilder- Returns:
- The count of toColumns.
-
getToColumns
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Specified by:
getToColumnsin interfaceRelationshipInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The toColumns at the given index.
-
getToColumnsBytes
public com.google.protobuf.ByteString getToColumnsBytes(int index) Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Specified by:
getToColumnsBytesin interfaceRelationshipInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the toColumns at the given index.
-
setToColumns
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Parameters:
index- The index to set the value at.value- The toColumns to set.- Returns:
- This builder for chaining.
-
addToColumns
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Parameters:
value- The toColumns to add.- Returns:
- This builder for chaining.
-
addAllToColumns
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Parameters:
values- The toColumns to add.- Returns:
- This builder for chaining.
-
clearToColumns
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Returns:
- This builder for chaining.
-
addToColumnsBytes
Target columns
repeated string to_columns = 5 [json_name = "toColumns"];- Parameters:
value- The bytes of the toColumns to add.- Returns:
- This builder for chaining.
-
hasRelationshipType
public boolean hasRelationshipType()Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Specified by:
hasRelationshipTypein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the relationshipType field is set.
-
getRelationshipType
Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Specified by:
getRelationshipTypein interfaceRelationshipInfoOrBuilder- Returns:
- The relationshipType.
-
getRelationshipTypeBytes
public com.google.protobuf.ByteString getRelationshipTypeBytes()Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Specified by:
getRelationshipTypeBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for relationshipType.
-
setRelationshipType
Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Parameters:
value- The relationshipType to set.- Returns:
- This builder for chaining.
-
clearRelationshipType
Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Returns:
- This builder for chaining.
-
setRelationshipTypeBytes
Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
optional string relationship_type = 6 [json_name = "relationshipType"];- Parameters:
value- The bytes for relationshipType to set.- Returns:
- This builder for chaining.
-
hasOnDelete
public boolean hasOnDelete()Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Specified by:
hasOnDeletein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the onDelete field is set.
-
getOnDelete
Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Specified by:
getOnDeletein interfaceRelationshipInfoOrBuilder- Returns:
- The onDelete.
-
getOnDeleteBytes
public com.google.protobuf.ByteString getOnDeleteBytes()Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Specified by:
getOnDeleteBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for onDelete.
-
setOnDelete
Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Parameters:
value- The onDelete to set.- Returns:
- This builder for chaining.
-
clearOnDelete
Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Returns:
- This builder for chaining.
-
setOnDeleteBytes
Action on delete (CASCADE, RESTRICT, etc.)
optional string on_delete = 7 [json_name = "onDelete"];- Parameters:
value- The bytes for onDelete to set.- Returns:
- This builder for chaining.
-
hasOnUpdate
public boolean hasOnUpdate()Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Specified by:
hasOnUpdatein interfaceRelationshipInfoOrBuilder- Returns:
- Whether the onUpdate field is set.
-
getOnUpdate
Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Specified by:
getOnUpdatein interfaceRelationshipInfoOrBuilder- Returns:
- The onUpdate.
-
getOnUpdateBytes
public com.google.protobuf.ByteString getOnUpdateBytes()Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Specified by:
getOnUpdateBytesin interfaceRelationshipInfoOrBuilder- Returns:
- The bytes for onUpdate.
-
setOnUpdate
Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Parameters:
value- The onUpdate to set.- Returns:
- This builder for chaining.
-
clearOnUpdate
Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Returns:
- This builder for chaining.
-
setOnUpdateBytes
Action on update (CASCADE, RESTRICT, etc.)
optional string on_update = 8 [json_name = "onUpdate"];- Parameters:
value- The bytes for onUpdate to set.- Returns:
- This builder for chaining.
-