/** * <code>repeated string type_list = 4;</code> */ public Builder addTypeListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypeListIsMutable(); typeList_.add(value); onChanged(); return this; }
@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.TablesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.TablesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
@java.lang.Override public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); onChanged(); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTypeListIsMutable(); typeList_.addAll(other.typeList_); onChanged(); setHasTypeList(other.getHasTypeList()); onChanged(); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); onChanged(); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTypeListIsMutable(); typeList_.addAll(other.typeList_); onChanged(); setHasTypeList(other.getHasTypeList()); onChanged(); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); onChanged(); onChanged(); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTypeListIsMutable(); typeList_.addAll(other.typeList_); onChanged(); setHasTypeList(other.getHasTypeList()); onChanged(); onChanged(); return this;
@Override Requests.TablesRequest serialize() { Requests.TablesRequest.Builder builder = Requests.TablesRequest.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 != typeList) { builder.setHasTypeList(true); builder.addAllTypeList(typeList); } else { builder.setHasTypeList(false); } return builder.build(); }
@Override Requests.TablesRequest serialize() { Requests.TablesRequest.Builder builder = Requests.TablesRequest.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 != typeList) { builder.setHasTypeList(true); builder.addAllTypeList(typeList); } else { builder.setHasTypeList(false); } return builder.build(); }
@Override Requests.TablesRequest serialize() { Requests.TablesRequest.Builder builder = Requests.TablesRequest.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 != typeList) { builder.setHasTypeList(true); builder.addAllTypeList(typeList); } else { builder.setHasTypeList(false); } return builder.build(); }
@java.lang.Override public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@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.TablesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.TablesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Requests.TablesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Requests.TablesRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public org.apache.calcite.avatica.proto.Requests.TablesRequest buildPartial() { org.apache.calcite.avatica.proto.Requests.TablesRequest result = new org.apache.calcite.avatica.proto.Requests.TablesRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.catalog_ = catalog_; result.schemaPattern_ = schemaPattern_; result.tableNamePattern_ = tableNamePattern_; if (((bitField0_ & 0x00000008) == 0x00000008)) { typeList_ = typeList_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.typeList_ = typeList_; result.hasTypeList_ = hasTypeList_; result.connectionId_ = connectionId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>string connection_id = 7;</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
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated string type_list = 4;</code> */ public Builder addTypeList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeListIsMutable(); typeList_.add(value); onChanged(); return this; } /**
/** * <code>repeated string type_list = 4;</code> */ public Builder setTypeList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTypeListIsMutable(); typeList_.set(index, value); onChanged(); return this; } /**
/** * <code>string connection_id = 7;</code> */ public Builder setConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } connectionId_ = value; onChanged(); return this; } /**
/** * <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; }