Tabnine Logo
Internal.getDefaultInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultInstance
method
in
org.apache.hbase.thirdparty.com.google.protobuf.Internal

Best Java code snippets using org.apache.hbase.thirdparty.com.google.protobuf.Internal.getDefaultInstance (Showing top 6 results out of 315)

origin: apache/hbase

 @SuppressWarnings("unchecked")
 @Override
 public <M extends Message> M deserialize(Class<M> clazz)
   throws IOException {
  Parser<M> parser = (Parser<M>) Internal.getDefaultInstance(clazz).getParserForType();
  try {
   return parser.parseDelimitedFrom(inputStream);
  } catch (InvalidProtocolBufferException e) {
   throw e.unwrapIOException();
  }
 }
}
origin: org.apache.hbase.thirdparty/hbase-shaded-miscellaneous

/**
 * Checks whether paths in a given fields mask are valid.
 */
public static boolean isValid(Class<? extends Message> type, FieldMask fieldMask) {
 Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType();
 return isValid(descriptor, fieldMask);
}
origin: org.apache.hbase.thirdparty/hbase-shaded-miscellaneous

/**
 * Checks whether a given field path is valid.
 */
public static boolean isValid(Class<? extends Message> type, String path) {
 Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType();
 return isValid(descriptor, path);
}
origin: org.apache.hbase/hbase-procedure

 @SuppressWarnings("unchecked")
 @Override
 public <M extends Message> M deserialize(Class<M> clazz)
   throws IOException {
  Parser<M> parser = (Parser<M>) Internal.getDefaultInstance(clazz).getParserForType();
  try {
   return parser.parseDelimitedFrom(inputStream);
  } catch (InvalidProtocolBufferException e) {
   throw e.unwrapIOException();
  }
 }
}
origin: com.aliyun.hbase/alihbase-procedure

 @SuppressWarnings("unchecked")
 @Override
 public <M extends Message> M deserialize(Class<M> clazz)
   throws IOException {
  Parser<M> parser = (Parser<M>) Internal.getDefaultInstance(clazz).getParserForType();
  try {
   return parser.parseDelimitedFrom(inputStream);
  } catch (InvalidProtocolBufferException e) {
   throw e.unwrapIOException();
  }
 }
}
origin: org.apache.hbase.thirdparty/hbase-shaded-miscellaneous

/**
 * Constructs a FieldMask from the passed field numbers.
 *
 * @throws IllegalArgumentException if any of the fields are invalid for the message.
 */
public static FieldMask fromFieldNumbers(
  Class<? extends Message> type, Iterable<Integer> fieldNumbers) {
 Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType();
 FieldMask.Builder builder = FieldMask.newBuilder();
 for (Integer fieldNumber : fieldNumbers) {
  FieldDescriptor field = descriptor.findFieldByNumber(fieldNumber);
  checkArgument(
    field != null,
    String.format("%s is not a valid field number for %s.", fieldNumber, type));
  builder.addPaths(field.getName());
 }
 return builder.build();
}
org.apache.hbase.thirdparty.com.google.protobufInternalgetDefaultInstance

Popular methods of Internal

  • hashBoolean
  • hashLong

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • JButton (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Vim plugins
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