congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UserBitShared$DrillPBError.newBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
newBuilder
method
in
org.apache.drill.exec.proto.UserBitShared$DrillPBError

Best Java code snippets using org.apache.drill.exec.proto.UserBitShared$DrillPBError.newBuilder (Showing top 20 results out of 315)

origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 2;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000002) == 0x00000002) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000002;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.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.setServerMeta(input.mergeObject(org.apache.drill.exec.proto.UserProtos.ServerMeta.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.ServerMeta.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.GetServerMetaResp.Builder builder)
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.GetSchemasResp.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.addSchemas(input.mergeObject(org.apache.drill.exec.proto.UserProtos.SchemaMetadata.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.SchemaMetadata.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.GetSchemasResp.Builder builder)
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.QueryResult.Builder builder) throws java.io.IOException
{
  for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
  {
    switch(number)
    {
      case 0:
        return;
      case 1:
        builder.setQueryState(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(input.readEnum()));
        break;
      case 2:
        builder.setQueryId(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.QueryId.MERGE));
        break;
      case 3:
        builder.addError(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.UserBitShared.QueryResult.Builder builder)
origin: apache/drill

/**
 * returns or creates a DrillPBError object corresponding to this user exception.
 *
 * @param verbose should the error object contain the verbose error message ?
 * @return protobuf error object
 */
public DrillPBError getOrCreatePBError(final boolean verbose) {
 final String message = verbose ? getVerboseMessage() : getMessage();
 final DrillPBError.Builder builder = DrillPBError.newBuilder();
 builder.setErrorType(errorType);
 builder.setErrorId(context.getErrorId());
 if (context.getEndpoint() != null) {
  builder.setEndpoint(context.getEndpoint());
 }
 builder.setMessage(message);
 if (getCause() != null) {
  // some unit tests use this information to make sure a specific exception was thrown in the server
  builder.setException(ErrorHelper.getWrapper(getCause()));
 } else {
  // not a wrapper exception
  builder.setException(ErrorHelper.getWrapper(this));
 }
 return builder.build();
}
origin: apache/drill

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)
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.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.addCatalogs(input.mergeObject(org.apache.drill.exec.proto.UserProtos.CatalogMetadata.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.CatalogMetadata.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.GetCatalogsResp.Builder builder)
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.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.setPreparedStatement(input.mergeObject(org.apache.drill.exec.proto.UserProtos.PreparedStatement.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.PreparedStatement.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.CreatePreparedStatementResp.Builder builder)
origin: apache/drill

public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserProtos.GetColumnsResp.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.addColumns(input.mergeObject(org.apache.drill.exec.proto.UserProtos.ColumnMetadata.newBuilder(), org.apache.drill.exec.proto.SchemaUserProtos.ColumnMetadata.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.GetColumnsResp.Builder builder)
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 4;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000008) == 0x00000008) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000008;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

/**
 * <code>optional .exec.shared.DrillPBError error = 3;</code>
 */
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
 if (errorBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) {
   error_ =
    org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial();
  } else {
   error_ = value;
  }
  onChanged();
 } else {
  errorBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: apache/drill

public Builder toBuilder() { return newBuilder(this); }
origin: apache/drill

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.DrillPBError prototype) {
origin: apache/drill

public static Builder newBuilder(org.apache.drill.exec.proto.UserBitShared.DrillPBError prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: apache/drill

public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder newMessage()
{
  return org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder();
}
public java.lang.String getFieldName(int number)
org.apache.drill.exec.protoUserBitShared$DrillPBErrornewBuilder

Popular methods of UserBitShared$DrillPBError

  • getMessage
    optional string message = 4;
  • getErrorType
    optional .exec.shared.DrillPBError.ErrorType error_type = 3;
  • getException
    optional .exec.shared.ExceptionWrapper exception = 5;
  • <init>
  • getDefaultInstance
  • getDescriptor
  • getEndpoint
    optional .exec.DrillbitEndpoint endpoint = 2;
  • getErrorId
    optional string error_id = 1; for debug tracing purposes
  • getErrorIdBytes
    optional string error_id = 1; for debug tracing purposes
  • getMessageBytes
    optional string message = 4;
  • getParsingErrorList
    repeated .exec.shared.ParsingError parsing_error = 6; optional, used when providing location of err
  • getSerializedSize
  • getParsingErrorList,
  • getSerializedSize,
  • getUnknownFields,
  • hasEndpoint,
  • hasErrorId,
  • hasErrorType,
  • hasException,
  • hasMessage,
  • initFields

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now