All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.polypheny.prism.ColumnMeta Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: org/polypheny/prism/relational_frame.proto

package org.polypheny.prism;

/**
 * 
 *
 *The ColumnMeta message holds metadata related to a specific column within a relational table.
 * 
* * Protobuf type {@code org.polypheny.prism.ColumnMeta} */ public final class ColumnMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.polypheny.prism.ColumnMeta) ColumnMetaOrBuilder { private static final long serialVersionUID = 0L; // Use ColumnMeta.newBuilder() to construct. private ColumnMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ColumnMeta() { columnLabel_ = ""; columnName_ = ""; entityName_ = ""; schemaName_ = ""; namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ColumnMeta(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.RelationalResult.internal_static_org_polypheny_prism_ColumnMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.RelationalResult.internal_static_org_polypheny_prism_ColumnMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ColumnMeta.class, org.polypheny.prism.ColumnMeta.Builder.class); } public static final int COLUMN_INDEX_FIELD_NUMBER = 1; private int columnIndex_ = 0; /** *
   * Index of the column within the table.
   * 
* * int32 column_index = 1; * @return The columnIndex. */ @java.lang.Override public int getColumnIndex() { return columnIndex_; } public static final int IS_NULLABLE_FIELD_NUMBER = 2; private boolean isNullable_ = false; /** *
   * Indicates whether the column can contain null values.
   * 
* * bool is_nullable = 2; * @return The isNullable. */ @java.lang.Override public boolean getIsNullable() { return isNullable_; } public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** *
   * The length of the column values.
   * 
* * int32 length = 3; * @return The length. */ @java.lang.Override public int getLength() { return length_; } public static final int COLUMN_LABEL_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object columnLabel_ = ""; /** *
   * Label associated with the column, if any.
   * 
* * string column_label = 4; * @return The columnLabel. */ @java.lang.Override public java.lang.String getColumnLabel() { java.lang.Object ref = columnLabel_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnLabel_ = s; return s; } } /** *
   * Label associated with the column, if any.
   * 
* * string column_label = 4; * @return The bytes for columnLabel. */ @java.lang.Override public com.google.protobuf.ByteString getColumnLabelBytes() { java.lang.Object ref = columnLabel_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLUMN_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object columnName_ = ""; /** *
   * Name of the column.
   * 
* * string column_name = 5; * @return The columnName. */ @java.lang.Override public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } } /** *
   * Name of the column.
   * 
* * string column_name = 5; * @return The bytes for columnName. */ @java.lang.Override public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRECISION_FIELD_NUMBER = 6; private int precision_ = 0; /** *
   * Precision of the column, usually for numerical values.
   * 
* * int32 precision = 6; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } public static final int ENTITY_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object entityName_ = ""; /** *
   * Name of the entity that the column represents.
   * 
* * string entity_name = 7; * @return The entityName. */ @java.lang.Override public java.lang.String getEntityName() { java.lang.Object ref = entityName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityName_ = s; return s; } } /** *
   * Name of the entity that the column represents.
   * 
* * string entity_name = 7; * @return The bytes for entityName. */ @java.lang.Override public com.google.protobuf.ByteString getEntityNameBytes() { java.lang.Object ref = entityName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entityName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** *
   * Name of the schema that the column belongs to.
   * 
* * string schema_name = 8; * @return The schemaName. */ @java.lang.Override public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** *
   * Name of the schema that the column belongs to.
   * 
* * string schema_name = 8; * @return The bytes for schemaName. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_META_FIELD_NUMBER = 9; private org.polypheny.prism.TypeMeta typeMeta_; /** *
   * Metadata describing the type of the column.
   * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; * @return Whether the typeMeta field is set. */ @java.lang.Override public boolean hasTypeMeta() { return typeMeta_ != null; } /** *
   * Metadata describing the type of the column.
   * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; * @return The typeMeta. */ @java.lang.Override public org.polypheny.prism.TypeMeta getTypeMeta() { return typeMeta_ == null ? org.polypheny.prism.TypeMeta.getDefaultInstance() : typeMeta_; } /** *
   * Metadata describing the type of the column.
   * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ @java.lang.Override public org.polypheny.prism.TypeMetaOrBuilder getTypeMetaOrBuilder() { return typeMeta_ == null ? org.polypheny.prism.TypeMeta.getDefaultInstance() : typeMeta_; } public static final int SCALE_FIELD_NUMBER = 10; private int scale_ = 0; /** *
   * Scale of the column, typically for numerical values.
   * 
* * int32 scale = 10; * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } public static final int NAMESPACE_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; /** *
   * Namespace the column resides in.
   * 
* * string namespace = 11; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** *
   * Namespace the column resides in.
   * 
* * string namespace = 11; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (columnIndex_ != 0) { output.writeInt32(1, columnIndex_); } if (isNullable_ != false) { output.writeBool(2, isNullable_); } if (length_ != 0) { output.writeInt32(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnLabel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, columnLabel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, columnName_); } if (precision_ != 0) { output.writeInt32(6, precision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, entityName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, schemaName_); } if (typeMeta_ != null) { output.writeMessage(9, getTypeMeta()); } if (scale_ != 0) { output.writeInt32(10, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, namespace_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (columnIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, columnIndex_); } if (isNullable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isNullable_); } if (length_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, columnLabel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, columnName_); } if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, precision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, entityName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, schemaName_); } if (typeMeta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getTypeMeta()); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, namespace_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.polypheny.prism.ColumnMeta)) { return super.equals(obj); } org.polypheny.prism.ColumnMeta other = (org.polypheny.prism.ColumnMeta) obj; if (getColumnIndex() != other.getColumnIndex()) return false; if (getIsNullable() != other.getIsNullable()) return false; if (getLength() != other.getLength()) return false; if (!getColumnLabel() .equals(other.getColumnLabel())) return false; if (!getColumnName() .equals(other.getColumnName())) return false; if (getPrecision() != other.getPrecision()) return false; if (!getEntityName() .equals(other.getEntityName())) return false; if (!getSchemaName() .equals(other.getSchemaName())) return false; if (hasTypeMeta() != other.hasTypeMeta()) return false; if (hasTypeMeta()) { if (!getTypeMeta() .equals(other.getTypeMeta())) return false; } if (getScale() != other.getScale()) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMN_INDEX_FIELD_NUMBER; hash = (53 * hash) + getColumnIndex(); hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsNullable()); hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + getLength(); hash = (37 * hash) + COLUMN_LABEL_FIELD_NUMBER; hash = (53 * hash) + getColumnLabel().hashCode(); hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision(); hash = (37 * hash) + ENTITY_NAME_FIELD_NUMBER; hash = (53 * hash) + getEntityName().hashCode(); hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; hash = (53 * hash) + getSchemaName().hashCode(); if (hasTypeMeta()) { hash = (37 * hash) + TYPE_META_FIELD_NUMBER; hash = (53 * hash) + getTypeMeta().hashCode(); } hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.polypheny.prism.ColumnMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ColumnMeta parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ColumnMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ColumnMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ColumnMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.polypheny.prism.ColumnMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.polypheny.prism.ColumnMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ColumnMeta parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.polypheny.prism.ColumnMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.polypheny.prism.ColumnMeta parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.polypheny.prism.ColumnMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.polypheny.prism.ColumnMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.polypheny.prism.ColumnMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   *
   *The ColumnMeta message holds metadata related to a specific column within a relational table.
   * 
* * Protobuf type {@code org.polypheny.prism.ColumnMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.polypheny.prism.ColumnMeta) org.polypheny.prism.ColumnMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.polypheny.prism.RelationalResult.internal_static_org_polypheny_prism_ColumnMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.polypheny.prism.RelationalResult.internal_static_org_polypheny_prism_ColumnMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.polypheny.prism.ColumnMeta.class, org.polypheny.prism.ColumnMeta.Builder.class); } // Construct using org.polypheny.prism.ColumnMeta.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; columnIndex_ = 0; isNullable_ = false; length_ = 0; columnLabel_ = ""; columnName_ = ""; precision_ = 0; entityName_ = ""; schemaName_ = ""; typeMeta_ = null; if (typeMetaBuilder_ != null) { typeMetaBuilder_.dispose(); typeMetaBuilder_ = null; } scale_ = 0; namespace_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.polypheny.prism.RelationalResult.internal_static_org_polypheny_prism_ColumnMeta_descriptor; } @java.lang.Override public org.polypheny.prism.ColumnMeta getDefaultInstanceForType() { return org.polypheny.prism.ColumnMeta.getDefaultInstance(); } @java.lang.Override public org.polypheny.prism.ColumnMeta build() { org.polypheny.prism.ColumnMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.polypheny.prism.ColumnMeta buildPartial() { org.polypheny.prism.ColumnMeta result = new org.polypheny.prism.ColumnMeta(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.polypheny.prism.ColumnMeta result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.columnIndex_ = columnIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isNullable_ = isNullable_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.length_ = length_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.columnLabel_ = columnLabel_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.columnName_ = columnName_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.precision_ = precision_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.entityName_ = entityName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.schemaName_ = schemaName_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.typeMeta_ = typeMetaBuilder_ == null ? typeMeta_ : typeMetaBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.scale_ = scale_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.namespace_ = namespace_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.polypheny.prism.ColumnMeta) { return mergeFrom((org.polypheny.prism.ColumnMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.polypheny.prism.ColumnMeta other) { if (other == org.polypheny.prism.ColumnMeta.getDefaultInstance()) return this; if (other.getColumnIndex() != 0) { setColumnIndex(other.getColumnIndex()); } if (other.getIsNullable() != false) { setIsNullable(other.getIsNullable()); } if (other.getLength() != 0) { setLength(other.getLength()); } if (!other.getColumnLabel().isEmpty()) { columnLabel_ = other.columnLabel_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; bitField0_ |= 0x00000010; onChanged(); } if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (!other.getEntityName().isEmpty()) { entityName_ = other.entityName_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getSchemaName().isEmpty()) { schemaName_ = other.schemaName_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasTypeMeta()) { mergeTypeMeta(other.getTypeMeta()); } if (other.getScale() != 0) { setScale(other.getScale()); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { columnIndex_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { isNullable_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { length_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { columnLabel_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { columnName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { precision_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { entityName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { schemaName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage( getTypeMetaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 80: { scale_ = input.readInt32(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int columnIndex_ ; /** *
     * Index of the column within the table.
     * 
* * int32 column_index = 1; * @return The columnIndex. */ @java.lang.Override public int getColumnIndex() { return columnIndex_; } /** *
     * Index of the column within the table.
     * 
* * int32 column_index = 1; * @param value The columnIndex to set. * @return This builder for chaining. */ public Builder setColumnIndex(int value) { columnIndex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Index of the column within the table.
     * 
* * int32 column_index = 1; * @return This builder for chaining. */ public Builder clearColumnIndex() { bitField0_ = (bitField0_ & ~0x00000001); columnIndex_ = 0; onChanged(); return this; } private boolean isNullable_ ; /** *
     * Indicates whether the column can contain null values.
     * 
* * bool is_nullable = 2; * @return The isNullable. */ @java.lang.Override public boolean getIsNullable() { return isNullable_; } /** *
     * Indicates whether the column can contain null values.
     * 
* * bool is_nullable = 2; * @param value The isNullable to set. * @return This builder for chaining. */ public Builder setIsNullable(boolean value) { isNullable_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Indicates whether the column can contain null values.
     * 
* * bool is_nullable = 2; * @return This builder for chaining. */ public Builder clearIsNullable() { bitField0_ = (bitField0_ & ~0x00000002); isNullable_ = false; onChanged(); return this; } private int length_ ; /** *
     * The length of the column values.
     * 
* * int32 length = 3; * @return The length. */ @java.lang.Override public int getLength() { return length_; } /** *
     * The length of the column values.
     * 
* * int32 length = 3; * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The length of the column values.
     * 
* * int32 length = 3; * @return This builder for chaining. */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000004); length_ = 0; onChanged(); return this; } private java.lang.Object columnLabel_ = ""; /** *
     * Label associated with the column, if any.
     * 
* * string column_label = 4; * @return The columnLabel. */ public java.lang.String getColumnLabel() { java.lang.Object ref = columnLabel_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnLabel_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Label associated with the column, if any.
     * 
* * string column_label = 4; * @return The bytes for columnLabel. */ public com.google.protobuf.ByteString getColumnLabelBytes() { java.lang.Object ref = columnLabel_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnLabel_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Label associated with the column, if any.
     * 
* * string column_label = 4; * @param value The columnLabel to set. * @return This builder for chaining. */ public Builder setColumnLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } columnLabel_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Label associated with the column, if any.
     * 
* * string column_label = 4; * @return This builder for chaining. */ public Builder clearColumnLabel() { columnLabel_ = getDefaultInstance().getColumnLabel(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Label associated with the column, if any.
     * 
* * string column_label = 4; * @param value The bytes for columnLabel to set. * @return This builder for chaining. */ public Builder setColumnLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnLabel_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object columnName_ = ""; /** *
     * Name of the column.
     * 
* * string column_name = 5; * @return The columnName. */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the column.
     * 
* * string column_name = 5; * @return The bytes for columnName. */ public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the column.
     * 
* * string column_name = 5; * @param value The columnName to set. * @return This builder for chaining. */ public Builder setColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } columnName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Name of the column.
     * 
* * string column_name = 5; * @return This builder for chaining. */ public Builder clearColumnName() { columnName_ = getDefaultInstance().getColumnName(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Name of the column.
     * 
* * string column_name = 5; * @param value The bytes for columnName to set. * @return This builder for chaining. */ public Builder setColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private int precision_ ; /** *
     * Precision of the column, usually for numerical values.
     * 
* * int32 precision = 6; * @return The precision. */ @java.lang.Override public int getPrecision() { return precision_; } /** *
     * Precision of the column, usually for numerical values.
     * 
* * int32 precision = 6; * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { precision_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Precision of the column, usually for numerical values.
     * 
* * int32 precision = 6; * @return This builder for chaining. */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000020); precision_ = 0; onChanged(); return this; } private java.lang.Object entityName_ = ""; /** *
     * Name of the entity that the column represents.
     * 
* * string entity_name = 7; * @return The entityName. */ public java.lang.String getEntityName() { java.lang.Object ref = entityName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the entity that the column represents.
     * 
* * string entity_name = 7; * @return The bytes for entityName. */ public com.google.protobuf.ByteString getEntityNameBytes() { java.lang.Object ref = entityName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entityName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the entity that the column represents.
     * 
* * string entity_name = 7; * @param value The entityName to set. * @return This builder for chaining. */ public Builder setEntityName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } entityName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Name of the entity that the column represents.
     * 
* * string entity_name = 7; * @return This builder for chaining. */ public Builder clearEntityName() { entityName_ = getDefaultInstance().getEntityName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Name of the entity that the column represents.
     * 
* * string entity_name = 7; * @param value The bytes for entityName to set. * @return This builder for chaining. */ public Builder setEntityNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object schemaName_ = ""; /** *
     * Name of the schema that the column belongs to.
     * 
* * string schema_name = 8; * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the schema that the column belongs to.
     * 
* * string schema_name = 8; * @return The bytes for schemaName. */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the schema that the column belongs to.
     * 
* * string schema_name = 8; * @param value The schemaName to set. * @return This builder for chaining. */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Name of the schema that the column belongs to.
     * 
* * string schema_name = 8; * @return This builder for chaining. */ public Builder clearSchemaName() { schemaName_ = getDefaultInstance().getSchemaName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Name of the schema that the column belongs to.
     * 
* * string schema_name = 8; * @param value The bytes for schemaName to set. * @return This builder for chaining. */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private org.polypheny.prism.TypeMeta typeMeta_; private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.TypeMeta, org.polypheny.prism.TypeMeta.Builder, org.polypheny.prism.TypeMetaOrBuilder> typeMetaBuilder_; /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; * @return Whether the typeMeta field is set. */ public boolean hasTypeMeta() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; * @return The typeMeta. */ public org.polypheny.prism.TypeMeta getTypeMeta() { if (typeMetaBuilder_ == null) { return typeMeta_ == null ? org.polypheny.prism.TypeMeta.getDefaultInstance() : typeMeta_; } else { return typeMetaBuilder_.getMessage(); } } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public Builder setTypeMeta(org.polypheny.prism.TypeMeta value) { if (typeMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } typeMeta_ = value; } else { typeMetaBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public Builder setTypeMeta( org.polypheny.prism.TypeMeta.Builder builderForValue) { if (typeMetaBuilder_ == null) { typeMeta_ = builderForValue.build(); } else { typeMetaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public Builder mergeTypeMeta(org.polypheny.prism.TypeMeta value) { if (typeMetaBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && typeMeta_ != null && typeMeta_ != org.polypheny.prism.TypeMeta.getDefaultInstance()) { getTypeMetaBuilder().mergeFrom(value); } else { typeMeta_ = value; } } else { typeMetaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public Builder clearTypeMeta() { bitField0_ = (bitField0_ & ~0x00000100); typeMeta_ = null; if (typeMetaBuilder_ != null) { typeMetaBuilder_.dispose(); typeMetaBuilder_ = null; } onChanged(); return this; } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public org.polypheny.prism.TypeMeta.Builder getTypeMetaBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTypeMetaFieldBuilder().getBuilder(); } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ public org.polypheny.prism.TypeMetaOrBuilder getTypeMetaOrBuilder() { if (typeMetaBuilder_ != null) { return typeMetaBuilder_.getMessageOrBuilder(); } else { return typeMeta_ == null ? org.polypheny.prism.TypeMeta.getDefaultInstance() : typeMeta_; } } /** *
     * Metadata describing the type of the column.
     * 
* * .org.polypheny.prism.TypeMeta type_meta = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.TypeMeta, org.polypheny.prism.TypeMeta.Builder, org.polypheny.prism.TypeMetaOrBuilder> getTypeMetaFieldBuilder() { if (typeMetaBuilder_ == null) { typeMetaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.polypheny.prism.TypeMeta, org.polypheny.prism.TypeMeta.Builder, org.polypheny.prism.TypeMetaOrBuilder>( getTypeMeta(), getParentForChildren(), isClean()); typeMeta_ = null; } return typeMetaBuilder_; } private int scale_ ; /** *
     * Scale of the column, typically for numerical values.
     * 
* * int32 scale = 10; * @return The scale. */ @java.lang.Override public int getScale() { return scale_; } /** *
     * Scale of the column, typically for numerical values.
     * 
* * int32 scale = 10; * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { scale_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Scale of the column, typically for numerical values.
     * 
* * int32 scale = 10; * @return This builder for chaining. */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000200); scale_ = 0; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
     * Namespace the column resides in.
     * 
* * string namespace = 11; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Namespace the column resides in.
     * 
* * string namespace = 11; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Namespace the column resides in.
     * 
* * string namespace = 11; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Namespace the column resides in.
     * 
* * string namespace = 11; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     * Namespace the column resides in.
     * 
* * string namespace = 11; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:org.polypheny.prism.ColumnMeta) } // @@protoc_insertion_point(class_scope:org.polypheny.prism.ColumnMeta) private static final org.polypheny.prism.ColumnMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.polypheny.prism.ColumnMeta(); } public static org.polypheny.prism.ColumnMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ColumnMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.polypheny.prism.ColumnMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy