Tabnine Logo
ClientProtos$RegionActionResult$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
ClientProtos$RegionActionResult$Builder
in
org.apache.hadoop.hbase.protobuf.generated

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.ClientProtos$RegionActionResult$Builder (Showing top 20 results out of 315)

origin: apache/hbase

 checkCallingUserAuth();
RegionActionResult successResult = RegionActionResult.newBuilder().build();
for (VisibilityLabel visLabel : visLabels) {
 byte[] label = visLabel.getLabel().toByteArray();
   failureResultBuilder.setException(buildException(new DoNotRetryIOException(
     status.getExceptionMsg())));
   response.setResult(i, failureResultBuilder.build());
origin: apache/hbase

   bitField0_ = (bitField0_ & ~0x00000001);
  } else {
   ensureResultOrExceptionIsMutable();
   resultOrException_.addAll(other.resultOrException_);
  onChanged();
   resultOrExceptionBuilder_ = 
    com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
      getResultOrExceptionFieldBuilder() : null;
  } else {
   resultOrExceptionBuilder_.addAllMessages(other.resultOrException_);
 mergeException(other.getException());
this.mergeUnknownFields(other.getUnknownFields());
return this;
origin: apache/hbase

/**
 * <code>optional .hbase.pb.NameBytesPair exception = 2;</code>
 *
 * <pre>
 * If the operation failed globally for this region, this exception is set
 * </pre>
 */
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder getExceptionBuilder() {
 bitField0_ |= 0x00000002;
 onChanged();
 return getExceptionFieldBuilder().getBuilder();
}
/**
origin: harbby/presto-connectors

 checkCallingUserAuth();
RegionActionResult successResult = RegionActionResult.newBuilder().build();
for (VisibilityLabel visLabel : visLabels) {
 byte[] label = visLabel.getLabel().toByteArray();
  if (status.getOperationStatusCode() != SUCCESS) {
   RegionActionResult.Builder failureResultBuilder = RegionActionResult.newBuilder();
   failureResultBuilder.setException(ResponseConverter
     .buildException(new DoNotRetryIOException(status.getExceptionMsg())));
   response.setResult(i, failureResultBuilder.build());
origin: harbby/presto-connectors

logResult(true, "clearAuths", "Removing authorization for labels allowed", requestUser,
 labelAuths, null);
RegionActionResult successResult = RegionActionResult.newBuilder().build();
for (OperationStatus status : opStatus) {
 if (status.getOperationStatusCode() == SUCCESS) {
 } else {
  RegionActionResult.Builder failureResultBuilder = RegionActionResult.newBuilder();
  failureResultBuilder.setException(ResponseConverter
    .buildException(new DoNotRetryIOException(status.getExceptionMsg())));
  response.addResult(failureResultBuilder.build());
origin: harbby/presto-connectors

logResult(true, "setAuths", "Setting authorization for labels allowed", user, labelAuths,
 null);
RegionActionResult successResult = RegionActionResult.newBuilder().build();
for (OperationStatus status : opStatus) {
 if (status.getOperationStatusCode() == SUCCESS) {
 } else {
  RegionActionResult.Builder failureResultBuilder = RegionActionResult.newBuilder();
  failureResultBuilder.setException(ResponseConverter
    .buildException(new DoNotRetryIOException(status.getExceptionMsg())));
  response.addResult(failureResultBuilder.build());
origin: harbby/presto-connectors

/**
 * <code>optional .NameBytesPair exception = 2;</code>
 *
 * <pre>
 * If the operation failed globally for this region, this exception is set
 * </pre>
 */
private com.facebook.presto.hbase.$internal.com.google.protobuf.SingleFieldBuilder<
  org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder> 
  getExceptionFieldBuilder() {
 if (exceptionBuilder_ == null) {
  exceptionBuilder_ = new com.facebook.presto.hbase.$internal.com.google.protobuf.SingleFieldBuilder<
    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>(
      exception_,
      getParentForChildren(),
      isClean());
  exception_ = null;
 }
 return exceptionBuilder_;
}
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>optional .hbase.pb.NameBytesPair exception = 2;</code>
 *
 * <pre>
 * If the operation failed globally for this region, this exception is set
 * </pre>
 */
private com.google.protobuf.SingleFieldBuilder<
  org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder> 
  getExceptionFieldBuilder() {
 if (exceptionBuilder_ == null) {
  exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>(
      exception_,
      getParentForChildren(),
      isClean());
  exception_ = null;
 }
 return exceptionBuilder_;
}
origin: harbby/presto-connectors

/**
 * <code>repeated .ResultOrException resultOrException = 1;</code>
 */
public Builder addResultOrException(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.add(index, value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addMessage(index, value);
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>optional .hbase.pb.NameBytesPair exception = 2;</code>
 *
 * <pre>
 * If the operation failed globally for this region, this exception is set
 * </pre>
 */
private com.google.protobuf.SingleFieldBuilder<
  org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder> 
  getExceptionFieldBuilder() {
 if (exceptionBuilder_ == null) {
  exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
    org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPair.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.NameBytesPairOrBuilder>(
      exception_,
      getParentForChildren(),
      isClean());
  exception_ = null;
 }
 return exceptionBuilder_;
}
origin: harbby/presto-connectors

/**
 * <code>repeated .ResultOrException resultOrException = 1;</code>
 */
public Builder addResultOrException(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.add(value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addMessage(value);
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>repeated .hbase.pb.ResultOrException resultOrException = 1;</code>
 */
public Builder addResultOrException(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.add(index, value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addMessage(index, value);
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.ResultOrException resultOrException = 1;</code>
 */
public Builder addResultOrException(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.add(index, value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addMessage(index, value);
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .ResultOrException resultOrException = 1;</code>
 */
public Builder addAllResultOrException(
  java.lang.Iterable<? extends org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException> values) {
 if (resultOrExceptionBuilder_ == null) {
  ensureResultOrExceptionIsMutable();
  super.addAll(values, resultOrException_);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addAllMessages(values);
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .RegionActionResult result = 1;</code>
 */
public Builder addResult(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionActionResult.Builder builderForValue) {
 if (resultBuilder_ == null) {
  ensureResultIsMutable();
  result_.add(index, builderForValue.build());
  onChanged();
 } else {
  resultBuilder_.addMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .RegionActionResult result = 1;</code>
 */
public Builder addResult(
  org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionActionResult.Builder builderForValue) {
 if (resultBuilder_ == null) {
  ensureResultIsMutable();
  result_.add(builderForValue.build());
  onChanged();
 } else {
  resultBuilder_.addMessage(builderForValue.build());
 }
 return this;
}
/**
origin: harbby/presto-connectors

/**
 * <code>repeated .RegionActionResult regionActionResult = 1;</code>
 */
public Builder setRegionActionResult(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.RegionActionResult.Builder builderForValue) {
 if (regionActionResultBuilder_ == null) {
  ensureRegionActionResultIsMutable();
  regionActionResult_.set(index, builderForValue.build());
  onChanged();
 } else {
  regionActionResultBuilder_.setMessage(index, builderForValue.build());
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.ResultOrException resultOrException = 1;</code>
 */
public Builder setResultOrException(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.set(index, value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.setMessage(index, value);
 }
 return this;
}
/**
origin: org.apache.hbase/hbase-protocol

/**
 * <code>repeated .hbase.pb.ResultOrException resultOrException = 1;</code>
 */
public Builder setResultOrException(
  int index, org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.set(index, value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.setMessage(index, value);
 }
 return this;
}
/**
origin: com.aliyun.hbase/alihbase-protocol

/**
 * <code>repeated .hbase.pb.ResultOrException resultOrException = 1;</code>
 */
public Builder addResultOrException(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ResultOrException value) {
 if (resultOrExceptionBuilder_ == null) {
  if (value == null) {
   throw new NullPointerException();
  }
  ensureResultOrExceptionIsMutable();
  resultOrException_.add(value);
  onChanged();
 } else {
  resultOrExceptionBuilder_.addMessage(value);
 }
 return this;
}
/**
org.apache.hadoop.hbase.protobuf.generatedClientProtos$RegionActionResult$Builder

Javadoc

Protobuf type RegionActionResult
 
The result of a RegionAction. 

Most used methods

  • build
  • <init>
  • buildPartial
  • create
  • ensureResultOrExceptionIsMutable
  • getException
    optional .hbase.pb.NameBytesPair exception = 2; If the operation failed globally for this region, t
  • getExceptionFieldBuilder
    optional .hbase.pb.NameBytesPair exception = 2; If the operation failed globally for this region, t
  • getParentForChildren
  • getResultOrException
    repeated .hbase.pb.ResultOrException resultOrException = 1;
  • getResultOrExceptionCount
    repeated .hbase.pb.ResultOrException resultOrException = 1;
  • getResultOrExceptionFieldBuilder
  • hasException
    optional .hbase.pb.NameBytesPair exception = 2; If the operation failed globally for this region, t
  • getResultOrExceptionFieldBuilder,
  • hasException,
  • isClean,
  • maybeForceBuilderInitialization,
  • mergeException,
  • mergeFrom,
  • mergeUnknownFields,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Collectors (java.util.stream)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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