hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_DIRTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDirty()); hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoCommit()); hash = (37 * hash) + HAS_AUTO_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasAutoCommit()); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly()); hash = (37 * hash) + HAS_READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasReadOnly()); hash = (37 * hash) + TRANSACTION_ISOLATION_FIELD_NUMBER; hash = (53 * hash) + getTransactionIsolation(); hash = (37 * hash) + CATALOG_FIELD_NUMBER; hash = (53 * hash) + getCatalog().hashCode(); hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash;
.computeUInt32Size(4, transactionIsolation_); if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, catalog_); if (!getSchemaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, schema_);
/** * <code>.ConnectionProperties conn_props = 1;</code> */ public org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder getConnPropsOrBuilder() { if (connPropsBuilder_ != null) { return connPropsBuilder_.getMessageOrBuilder(); } else { return connProps_ == null ? org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance() : connProps_; } } /**
.computeUInt32Size(4, transactionIsolation_); if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, catalog_); if (!getSchemaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, schema_);
.computeUInt32Size(4, transactionIsolation_); if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, catalog_); if (!getSchemaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, schema_);
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isDirty_ != false) { output.writeBool(1, isDirty_); } if (autoCommit_ != false) { output.writeBool(2, autoCommit_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (transactionIsolation_ != 0) { output.writeUInt32(4, transactionIsolation_); } if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, catalog_); } if (!getSchemaBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, schema_); } if (hasAutoCommit_ != false) { output.writeBool(7, hasAutoCommit_); } if (hasReadOnly_ != false) { output.writeBool(8, hasReadOnly_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isDirty_ != false) { output.writeBool(1, isDirty_); } if (autoCommit_ != false) { output.writeBool(2, autoCommit_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (transactionIsolation_ != 0) { output.writeUInt32(4, transactionIsolation_); } if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, catalog_); } if (!getSchemaBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, schema_); } if (hasAutoCommit_ != false) { output.writeBool(7, hasAutoCommit_); } if (hasReadOnly_ != false) { output.writeBool(8, hasReadOnly_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isDirty_ != false) { output.writeBool(1, isDirty_); } if (autoCommit_ != false) { output.writeBool(2, autoCommit_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (transactionIsolation_ != 0) { output.writeUInt32(4, transactionIsolation_); } if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 5, catalog_); } if (!getSchemaBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 6, schema_); } if (hasAutoCommit_ != false) { output.writeBool(7, hasAutoCommit_); } if (hasReadOnly_ != false) { output.writeBool(8, hasReadOnly_); } }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.ConnectionProperties other) { if (other == org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance()) return this; if (other.getIsDirty() != false) { setIsDirty(other.getIsDirty()); if (other.getAutoCommit() != false) { setAutoCommit(other.getAutoCommit()); if (other.getHasAutoCommit() != false) { setHasAutoCommit(other.getHasAutoCommit()); if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); if (other.getHasReadOnly() != false) { setHasReadOnly(other.getHasReadOnly()); if (other.getTransactionIsolation() != 0) { setTransactionIsolation(other.getTransactionIsolation()); if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); if (!other.getSchema().isEmpty()) { schema_ = other.schema_; onChanged();
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.ConnectionProperties other) { if (other == org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance()) return this; if (other.getIsDirty() != false) { setIsDirty(other.getIsDirty()); if (other.getAutoCommit() != false) { setAutoCommit(other.getAutoCommit()); if (other.getHasAutoCommit() != false) { setHasAutoCommit(other.getHasAutoCommit()); if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); if (other.getHasReadOnly() != false) { setHasReadOnly(other.getHasReadOnly()); if (other.getTransactionIsolation() != 0) { setTransactionIsolation(other.getTransactionIsolation()); if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); if (!other.getSchema().isEmpty()) { schema_ = other.schema_; onChanged();
hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_DIRTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDirty()); hash = (37 * hash) + AUTO_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoCommit()); hash = (37 * hash) + HAS_AUTO_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasAutoCommit()); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly()); hash = (37 * hash) + HAS_READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasReadOnly()); hash = (37 * hash) + TRANSACTION_ISOLATION_FIELD_NUMBER; hash = (53 * hash) + getTransactionIsolation(); hash = (37 * hash) + CATALOG_FIELD_NUMBER; hash = (53 * hash) + getCatalog().hashCode(); hash = (37 * hash) + SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSchema().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.ConnectionProperties)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.ConnectionProperties other = (org.apache.calcite.avatica.proto.Common.ConnectionProperties) obj; boolean result = true; result = result && (getIsDirty() == other.getIsDirty()); result = result && (getAutoCommit() == other.getAutoCommit()); result = result && (getHasAutoCommit() == other.getHasAutoCommit()); result = result && (getReadOnly() == other.getReadOnly()); result = result && (getHasReadOnly() == other.getHasReadOnly()); result = result && (getTransactionIsolation() == other.getTransactionIsolation()); result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchema() .equals(other.getSchema()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.ConnectionProperties other) { if (other == org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance()) return this; if (other.getIsDirty() != false) { setIsDirty(other.getIsDirty()); if (other.getAutoCommit() != false) { setAutoCommit(other.getAutoCommit()); if (other.getHasAutoCommit() != false) { setHasAutoCommit(other.getHasAutoCommit()); if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); if (other.getHasReadOnly() != false) { setHasReadOnly(other.getHasReadOnly()); if (other.getTransactionIsolation() != 0) { setTransactionIsolation(other.getTransactionIsolation()); if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); if (!other.getSchema().isEmpty()) { schema_ = other.schema_; onChanged();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.ConnectionProperties)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.ConnectionProperties other = (org.apache.calcite.avatica.proto.Common.ConnectionProperties) obj; boolean result = true; result = result && (getIsDirty() == other.getIsDirty()); result = result && (getAutoCommit() == other.getAutoCommit()); result = result && (getHasAutoCommit() == other.getHasAutoCommit()); result = result && (getReadOnly() == other.getReadOnly()); result = result && (getHasReadOnly() == other.getHasReadOnly()); result = result && (getTransactionIsolation() == other.getTransactionIsolation()); result = result && getCatalog() .equals(other.getCatalog()); result = result && getSchema() .equals(other.getSchema()); result = result && unknownFields.equals(other.unknownFields); return result; }
public static ConnectionPropertiesImpl fromProto(Common.ConnectionProperties proto) { String catalog = null; if (proto.hasField(CATALOG_DESCRIPTOR)) { catalog = proto.getCatalog(); if (proto.hasField(SCHEMA_DESCRIPTOR)) { schema = proto.getSchema(); if (proto.getHasAutoCommit()) { autoCommit = Boolean.valueOf(proto.getAutoCommit()); if (proto.getHasReadOnly()) { readOnly = Boolean.valueOf(proto.getReadOnly()); if (proto.hasField(TRANSACTION_ISOLATION_DESCRIPTOR)) { transactionIsolation = Integer.valueOf(proto.getTransactionIsolation()); transactionIsolation, catalog, schema); impl.setDirty(proto.getIsDirty());
public static ConnectionPropertiesImpl fromProto(Common.ConnectionProperties proto) { final Descriptor desc = proto.getDescriptorForType(); catalog = proto.getCatalog(); schema = proto.getSchema(); if (proto.getHasAutoCommit()) { autoCommit = Boolean.valueOf(proto.getAutoCommit()); if (proto.getHasReadOnly()) { readOnly = Boolean.valueOf(proto.getReadOnly()); if (ProtobufService.hasField(proto, desc, Common.ConnectionProperties.TRANSACTION_ISOLATION_FIELD_NUMBER)) { transactionIsolation = Integer.valueOf(proto.getTransactionIsolation()); transactionIsolation, catalog, schema); impl.setDirty(proto.getIsDirty());
public static ConnectionPropertiesImpl fromProto(Common.ConnectionProperties proto) { String catalog = null; if (proto.hasField(CATALOG_DESCRIPTOR)) { catalog = proto.getCatalog(); if (proto.hasField(SCHEMA_DESCRIPTOR)) { schema = proto.getSchema(); if (proto.getHasAutoCommit()) { autoCommit = Boolean.valueOf(proto.getAutoCommit()); if (proto.getHasReadOnly()) { readOnly = Boolean.valueOf(proto.getReadOnly()); if (proto.hasField(TRANSACTION_ISOLATION_DESCRIPTOR)) { transactionIsolation = Integer.valueOf(proto.getTransactionIsolation()); transactionIsolation, catalog, schema); impl.setDirty(proto.getIsDirty());
@java.lang.Override public org.apache.calcite.avatica.proto.Common.ConnectionProperties buildPartial() { org.apache.calcite.avatica.proto.Common.ConnectionProperties result = new org.apache.calcite.avatica.proto.Common.ConnectionProperties(this); result.isDirty_ = isDirty_; result.autoCommit_ = autoCommit_; result.hasAutoCommit_ = hasAutoCommit_; result.readOnly_ = readOnly_; result.hasReadOnly_ = hasReadOnly_; result.transactionIsolation_ = transactionIsolation_; result.catalog_ = catalog_; result.schema_ = schema_; onBuilt(); return result; }
@java.lang.Override public org.apache.calcite.avatica.proto.Common.ConnectionProperties buildPartial() { org.apache.calcite.avatica.proto.Common.ConnectionProperties result = new org.apache.calcite.avatica.proto.Common.ConnectionProperties(this); result.isDirty_ = isDirty_; result.autoCommit_ = autoCommit_; result.hasAutoCommit_ = hasAutoCommit_; result.readOnly_ = readOnly_; result.hasReadOnly_ = hasReadOnly_; result.transactionIsolation_ = transactionIsolation_; result.catalog_ = catalog_; result.schema_ = schema_; onBuilt(); return result; }
@java.lang.Override public org.apache.calcite.avatica.proto.Common.ConnectionProperties getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance(); }