public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
/** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder( int index) { return getTablesFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()); } /**
final TableMetadata.Builder tableBuilder = TableMetadata.newBuilder(); tableBuilder.setCatalogName(t.TABLE_CATALOG); tableBuilder.setSchemaName(t.TABLE_SCHEMA);
public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.TableMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasSchemaName()) { bitField0_ |= 0x00000002; schemaName_ = other.schemaName_; onChanged(); } if (other.hasTableName()) { bitField0_ |= 0x00000004; tableName_ = other.tableName_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000008; type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public org.apache.drill.exec.proto.UserProtos.TableMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.TableMetadata result = new org.apache.drill.exec.proto.UserProtos.TableMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schemaName_ = schemaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tableName_ = tableName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.GetTablesResp.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(input.readEnum())); break; case 2: builder.addTables(input.mergeObject(org.apache.drill.exec.proto.UserProtos.TableMetadata.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.TableMetadata.MERGE)); break; case 3: builder.setError(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.DrillPBError.MERGE)); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.GetTablesResp.Builder builder)
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getTypeBytes()); } getUnknownFields().writeTo(output); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.TableMetadata prototype) {
public Builder toBuilder() { return newBuilder(this); }
public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance(); }
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.TableMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
/** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); onChanged(); return this; } /**
/** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder( int index) { return getTablesFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()); } /**
/** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder() { return getTablesFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()); } /**
/** * <code>optional string schema_name = 2;</code> */ public Builder clearSchemaName() { bitField0_ = (bitField0_ & ~0x00000002); schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /**
/** * <code>optional string table_name = 3;</code> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000004); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /**
public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder newMessage() { return org.apache.drill.exec.proto.UserProtos.TableMetadata.newBuilder(); } public java.lang.String getFieldName(int number)
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.TableMetadata message) throws java.io.IOException { if(message.hasCatalogName()) output.writeString(1, message.getCatalogName(), false); if(message.hasSchemaName()) output.writeString(2, message.getSchemaName(), false); if(message.hasTableName()) output.writeString(3, message.getTableName(), false); if(message.hasType()) output.writeString(4, message.getType(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.TableMetadata message)
/** * <code>optional string catalog_name = 1;</code> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /**