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 information
 
Protobuf type ai.pipestream.parsed.data.database.v1.RelationshipInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
    • clear

      public RelationshipInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RelationshipInfo.Builder>
    • getDefaultInstanceForType

      public RelationshipInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RelationshipInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RelationshipInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RelationshipInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RelationshipInfo.Builder>
    • mergeFrom

      public RelationshipInfo.Builder mergeFrom(RelationshipInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RelationshipInfo.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Relationship name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      hasName in interface RelationshipInfoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Relationship name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      getName in interface RelationshipInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Relationship name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RelationshipInfo.Builder setName(String value)
       Relationship name
       
      optional string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public RelationshipInfo.Builder clearName()
       Relationship name
       
      optional string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public RelationshipInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      hasFromTable in interface RelationshipInfoOrBuilder
      Returns:
      Whether the fromTable field is set.
    • getFromTable

      public String getFromTable()
       Source table
       
      optional string from_table = 2 [json_name = "fromTable"];
      Specified by:
      getFromTable in interface RelationshipInfoOrBuilder
      Returns:
      The fromTable.
    • getFromTableBytes

      public com.google.protobuf.ByteString getFromTableBytes()
       Source table
       
      optional string from_table = 2 [json_name = "fromTable"];
      Specified by:
      getFromTableBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for fromTable.
    • setFromTable

      public RelationshipInfo.Builder setFromTable(String value)
       Source table
       
      optional string from_table = 2 [json_name = "fromTable"];
      Parameters:
      value - The fromTable to set.
      Returns:
      This builder for chaining.
    • clearFromTable

      public RelationshipInfo.Builder clearFromTable()
       Source table
       
      optional string from_table = 2 [json_name = "fromTable"];
      Returns:
      This builder for chaining.
    • setFromTableBytes

      public RelationshipInfo.Builder setFromTableBytes(com.google.protobuf.ByteString value)
       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:
      hasToTable in interface RelationshipInfoOrBuilder
      Returns:
      Whether the toTable field is set.
    • getToTable

      public String getToTable()
       Target table
       
      optional string to_table = 3 [json_name = "toTable"];
      Specified by:
      getToTable in interface RelationshipInfoOrBuilder
      Returns:
      The toTable.
    • getToTableBytes

      public com.google.protobuf.ByteString getToTableBytes()
       Target table
       
      optional string to_table = 3 [json_name = "toTable"];
      Specified by:
      getToTableBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for toTable.
    • setToTable

      public RelationshipInfo.Builder setToTable(String value)
       Target table
       
      optional string to_table = 3 [json_name = "toTable"];
      Parameters:
      value - The toTable to set.
      Returns:
      This builder for chaining.
    • clearToTable

      public RelationshipInfo.Builder clearToTable()
       Target table
       
      optional string to_table = 3 [json_name = "toTable"];
      Returns:
      This builder for chaining.
    • setToTableBytes

      public RelationshipInfo.Builder setToTableBytes(com.google.protobuf.ByteString value)
       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:
      getFromColumnsList in interface RelationshipInfoOrBuilder
      Returns:
      A list containing the fromColumns.
    • getFromColumnsCount

      public int getFromColumnsCount()
       Source columns
       
      repeated string from_columns = 4 [json_name = "fromColumns"];
      Specified by:
      getFromColumnsCount in interface RelationshipInfoOrBuilder
      Returns:
      The count of fromColumns.
    • getFromColumns

      public String getFromColumns(int index)
       Source columns
       
      repeated string from_columns = 4 [json_name = "fromColumns"];
      Specified by:
      getFromColumns in interface RelationshipInfoOrBuilder
      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:
      getFromColumnsBytes in interface RelationshipInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the fromColumns at the given index.
    • setFromColumns

      public RelationshipInfo.Builder setFromColumns(int index, String value)
       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

      public RelationshipInfo.Builder addFromColumns(String value)
       Source columns
       
      repeated string from_columns = 4 [json_name = "fromColumns"];
      Parameters:
      value - The fromColumns to add.
      Returns:
      This builder for chaining.
    • addAllFromColumns

      public RelationshipInfo.Builder addAllFromColumns(Iterable<String> values)
       Source columns
       
      repeated string from_columns = 4 [json_name = "fromColumns"];
      Parameters:
      values - The fromColumns to add.
      Returns:
      This builder for chaining.
    • clearFromColumns

      public RelationshipInfo.Builder clearFromColumns()
       Source columns
       
      repeated string from_columns = 4 [json_name = "fromColumns"];
      Returns:
      This builder for chaining.
    • addFromColumnsBytes

      public RelationshipInfo.Builder addFromColumnsBytes(com.google.protobuf.ByteString value)
       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:
      getToColumnsList in interface RelationshipInfoOrBuilder
      Returns:
      A list containing the toColumns.
    • getToColumnsCount

      public int getToColumnsCount()
       Target columns
       
      repeated string to_columns = 5 [json_name = "toColumns"];
      Specified by:
      getToColumnsCount in interface RelationshipInfoOrBuilder
      Returns:
      The count of toColumns.
    • getToColumns

      public String getToColumns(int index)
       Target columns
       
      repeated string to_columns = 5 [json_name = "toColumns"];
      Specified by:
      getToColumns in interface RelationshipInfoOrBuilder
      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:
      getToColumnsBytes in interface RelationshipInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the toColumns at the given index.
    • setToColumns

      public RelationshipInfo.Builder setToColumns(int index, String value)
       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

      public RelationshipInfo.Builder addToColumns(String value)
       Target columns
       
      repeated string to_columns = 5 [json_name = "toColumns"];
      Parameters:
      value - The toColumns to add.
      Returns:
      This builder for chaining.
    • addAllToColumns

      public RelationshipInfo.Builder addAllToColumns(Iterable<String> values)
       Target columns
       
      repeated string to_columns = 5 [json_name = "toColumns"];
      Parameters:
      values - The toColumns to add.
      Returns:
      This builder for chaining.
    • clearToColumns

      public RelationshipInfo.Builder clearToColumns()
       Target columns
       
      repeated string to_columns = 5 [json_name = "toColumns"];
      Returns:
      This builder for chaining.
    • addToColumnsBytes

      public RelationshipInfo.Builder addToColumnsBytes(com.google.protobuf.ByteString value)
       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:
      hasRelationshipType in interface RelationshipInfoOrBuilder
      Returns:
      Whether the relationshipType field is set.
    • getRelationshipType

      public String getRelationshipType()
       Type of relationship (ONE_TO_ONE, ONE_TO_MANY, etc.)
       
      optional string relationship_type = 6 [json_name = "relationshipType"];
      Specified by:
      getRelationshipType in interface RelationshipInfoOrBuilder
      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:
      getRelationshipTypeBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for relationshipType.
    • setRelationshipType

      public RelationshipInfo.Builder setRelationshipType(String value)
       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

      public RelationshipInfo.Builder 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

      public RelationshipInfo.Builder setRelationshipTypeBytes(com.google.protobuf.ByteString value)
       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:
      hasOnDelete in interface RelationshipInfoOrBuilder
      Returns:
      Whether the onDelete field is set.
    • getOnDelete

      public String getOnDelete()
       Action on delete (CASCADE, RESTRICT, etc.)
       
      optional string on_delete = 7 [json_name = "onDelete"];
      Specified by:
      getOnDelete in interface RelationshipInfoOrBuilder
      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:
      getOnDeleteBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for onDelete.
    • setOnDelete

      public RelationshipInfo.Builder setOnDelete(String value)
       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

      public RelationshipInfo.Builder clearOnDelete()
       Action on delete (CASCADE, RESTRICT, etc.)
       
      optional string on_delete = 7 [json_name = "onDelete"];
      Returns:
      This builder for chaining.
    • setOnDeleteBytes

      public RelationshipInfo.Builder setOnDeleteBytes(com.google.protobuf.ByteString value)
       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:
      hasOnUpdate in interface RelationshipInfoOrBuilder
      Returns:
      Whether the onUpdate field is set.
    • getOnUpdate

      public String getOnUpdate()
       Action on update (CASCADE, RESTRICT, etc.)
       
      optional string on_update = 8 [json_name = "onUpdate"];
      Specified by:
      getOnUpdate in interface RelationshipInfoOrBuilder
      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:
      getOnUpdateBytes in interface RelationshipInfoOrBuilder
      Returns:
      The bytes for onUpdate.
    • setOnUpdate

      public RelationshipInfo.Builder setOnUpdate(String value)
       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

      public RelationshipInfo.Builder clearOnUpdate()
       Action on update (CASCADE, RESTRICT, etc.)
       
      optional string on_update = 8 [json_name = "onUpdate"];
      Returns:
      This builder for chaining.
    • setOnUpdateBytes

      public RelationshipInfo.Builder setOnUpdateBytes(com.google.protobuf.ByteString value)
       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.