@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Requests.ColumnsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.ColumnsRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.ColumnsRequest.getDefaultInstance()) return this; if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchemaPattern().isEmpty()) { schemaPattern_ = other.schemaPattern_; onChanged(); } if (!other.getTableNamePattern().isEmpty()) { tableNamePattern_ = other.tableNamePattern_; onChanged(); } if (!other.getColumnNamePattern().isEmpty()) { columnNamePattern_ = other.columnNamePattern_; onChanged(); } if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override Requests.ColumnsRequest serialize() { Requests.ColumnsRequest.Builder builder = Requests.ColumnsRequest.newBuilder(); if (null != connectionId) { builder.setConnectionId(connectionId); } if (null != catalog) { builder.setCatalog(catalog); } if (null != schemaPattern) { builder.setSchemaPattern(schemaPattern); } if (null != tableNamePattern) { builder.setTableNamePattern(tableNamePattern); } if (null != columnNamePattern) { builder.setColumnNamePattern(columnNamePattern); } return builder.build(); }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Requests.ColumnsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
@Override Requests.ColumnsRequest serialize() { Requests.ColumnsRequest.Builder builder = Requests.ColumnsRequest.newBuilder(); if (null != connectionId) { builder.setConnectionId(connectionId); } if (null != catalog) { builder.setCatalog(catalog); } if (null != schemaPattern) { builder.setSchemaPattern(schemaPattern); } if (null != tableNamePattern) { builder.setTableNamePattern(tableNamePattern); } if (null != columnNamePattern) { builder.setColumnNamePattern(columnNamePattern); } return builder.build(); }
@Override Requests.ColumnsRequest serialize() { Requests.ColumnsRequest.Builder builder = Requests.ColumnsRequest.newBuilder(); if (null != connectionId) { builder.setConnectionId(connectionId); } if (null != catalog) { builder.setCatalog(catalog); } if (null != schemaPattern) { builder.setSchemaPattern(schemaPattern); } if (null != tableNamePattern) { builder.setTableNamePattern(tableNamePattern); } if (null != columnNamePattern) { builder.setColumnNamePattern(columnNamePattern); } return builder.build(); }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Requests.ColumnsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.ColumnsRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>string connection_id = 5;</code> */ public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; onChanged(); return this; } @java.lang.Override
/** * <code>string connection_id = 5;</code> */ public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; onChanged(); return this; } @java.lang.Override
/** * <code>string table_name_pattern = 3;</code> */ public Builder setTableNamePatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableNamePattern_ = value; onChanged(); return this; }
public static Builder newBuilder(org.apache.calcite.avatica.proto.Requests.ColumnsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
/** * <code>optional string connection_id = 5;</code> */ public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>optional string schema_pattern = 2;</code> */ public Builder setSchemaPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaPattern_ = value; onChanged(); return this; } /**
/** * <code>optional string catalog = 1;</code> */ public Builder setCatalog( java.lang.String value) { if (value == null) { throw new NullPointerException(); } catalog_ = value; onChanged(); return this; } /**
/** * <code>string schema_pattern = 2;</code> */ public Builder setSchemaPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaPattern_ = value; onChanged(); return this; }
/** * <code>string catalog = 1;</code> */ public Builder setCatalogBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); catalog_ = value; onChanged(); return this; }