Codota Logo
Common$WireMessage.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.apache.calcite.avatica.proto.Common$WireMessage

Best Java code snippets using org.apache.calcite.avatica.proto.Common$WireMessage.getName (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.apache.calcite.avatica/avatica-core

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 hash = (37 * hash) + WRAPPED_MESSAGE_FIELD_NUMBER;
 hash = (53 * hash) + getWrappedMessage().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: apache/calcite-avatica

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 hash = (37 * hash) + NAME_FIELD_NUMBER;
 hash = (53 * hash) + getName().hashCode();
 hash = (37 * hash) + WRAPPED_MESSAGE_FIELD_NUMBER;
 hash = (53 * hash) + getWrappedMessage().hashCode();
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.calcite.avatica/avatica-core

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.calcite.avatica.proto.Common.WireMessage)) {
  return super.equals(obj);
 }
 org.apache.calcite.avatica.proto.Common.WireMessage other = (org.apache.calcite.avatica.proto.Common.WireMessage) obj;
 boolean result = true;
 result = result && getName()
   .equals(other.getName());
 result = result && getWrappedMessage()
   .equals(other.getWrappedMessage());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: org.apache.calcite.avatica/avatica-core

/**
 * <code>string name = 1;</code>
 */
public Builder clearName() {
 
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: org.apache.calcite/calcite-avatica

 @Override public Response parseResponse(byte[] bytes) throws InvalidProtocolBufferException {
  WireMessage wireMsg = WireMessage.parseFrom(bytes);

  String serializedMessageClassName = wireMsg.getName();
  ResponseTranslator translator = getParserForResponse(serializedMessageClassName);

  return translator.transform(wireMsg.getWrappedMessage());
 }
}
origin: org.apache.calcite/calcite-avatica

/**
 * <code>optional string name = 1;</code>
 */
public Builder clearName() {
 
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: org.apache.calcite.avatica/avatica-core

public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.WireMessage other) {
 if (other == org.apache.calcite.avatica.proto.Common.WireMessage.getDefaultInstance()) return this;
 if (!other.getName().isEmpty()) {
  name_ = other.name_;
  onChanged();
 }
 if (other.getWrappedMessage() != com.google.protobuf.ByteString.EMPTY) {
  setWrappedMessage(other.getWrappedMessage());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/calcite-avatica

public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.WireMessage other) {
 if (other == org.apache.calcite.avatica.proto.Common.WireMessage.getDefaultInstance()) return this;
 if (!other.getName().isEmpty()) {
  name_ = other.name_;
  onChanged();
 }
 if (other.getWrappedMessage() != com.google.protobuf.ByteString.EMPTY) {
  setWrappedMessage(other.getWrappedMessage());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: org.apache.calcite/calcite-avatica

@Override public Request parseRequest(byte[] bytes) throws InvalidProtocolBufferException {
 WireMessage wireMsg = WireMessage.parseFrom(bytes);
 String serializedMessageClassName = wireMsg.getName();
 RequestTranslator translator = getParserForRequest(serializedMessageClassName);
 return translator.transform(wireMsg.getWrappedMessage());
}
origin: apache/calcite-avatica

 @Override public Response parseResponse(byte[] bytes) throws IOException {
  ByteString byteString = UnsafeByteOperations.unsafeWrap(bytes);
  CodedInputStream inputStream = byteString.newCodedInput();
  // Enable aliasing to avoid an extra copy to get at the serialized Response inside of the
  // WireMessage.
  inputStream.enableAliasing(true);
  WireMessage wireMsg = WireMessage.parseFrom(inputStream);

  String serializedMessageClassName = wireMsg.getName();
  try {
   ResponseTranslator translator = getParserForResponse(serializedMessageClassName);

   return translator.transform(wireMsg.getWrappedMessage());
  } catch (RuntimeException e) {
   if (LOG.isDebugEnabled()) {
    LOG.debug("Failed to parse response message '{}'", TextFormat.shortDebugString(wireMsg));
   }
   throw e;
  }
 }
}
origin: apache/calcite-avatica

@Override public Request parseRequest(byte[] bytes) throws IOException {
 ByteString byteString = UnsafeByteOperations.unsafeWrap(bytes);
 CodedInputStream inputStream = byteString.newCodedInput();
 // Enable aliasing to avoid an extra copy to get at the serialized Request inside of the
 // WireMessage.
 inputStream.enableAliasing(true);
 WireMessage wireMsg = WireMessage.parseFrom(inputStream);
 String serializedMessageClassName = wireMsg.getName();
 try {
  RequestTranslator translator = getParserForRequest(serializedMessageClassName);
  // The ByteString should be logical offsets into the original byte array
  return translator.transform(wireMsg.getWrappedMessage());
 } catch (RuntimeException e) {
  if (LOG.isDebugEnabled()) {
   LOG.debug("Failed to parse request message '{}'", TextFormat.shortDebugString(wireMsg));
  }
  throw e;
 }
}
origin: apache/calcite-avatica

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.calcite.avatica.proto.Common.WireMessage)) {
  return super.equals(obj);
 }
 org.apache.calcite.avatica.proto.Common.WireMessage other = (org.apache.calcite.avatica.proto.Common.WireMessage) obj;
 boolean result = true;
 result = result && getName()
   .equals(other.getName());
 result = result && getWrappedMessage()
   .equals(other.getWrappedMessage());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: org.apache.calcite/calcite-avatica

public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.WireMessage other) {
 if (other == org.apache.calcite.avatica.proto.Common.WireMessage.getDefaultInstance()) return this;
 if (!other.getName().isEmpty()) {
  name_ = other.name_;
  onChanged();
 }
 if (other.getWrappedMessage() != com.google.protobuf.ByteString.EMPTY) {
  setWrappedMessage(other.getWrappedMessage());
 }
 onChanged();
 return this;
}
origin: org.apache.calcite.avatica/avatica-core

@Override public Request parseRequest(byte[] bytes) throws IOException {
 ByteString byteString = UnsafeByteOperations.unsafeWrap(bytes);
 CodedInputStream inputStream = byteString.newCodedInput();
 // Enable aliasing to avoid an extra copy to get at the serialized Request inside of the
 // WireMessage.
 inputStream.enableAliasing(true);
 WireMessage wireMsg = WireMessage.parseFrom(inputStream);
 String serializedMessageClassName = wireMsg.getName();
 try {
  RequestTranslator translator = getParserForRequest(serializedMessageClassName);
  // The ByteString should be logical offsets into the original byte array
  return translator.transform(wireMsg.getWrappedMessage());
 } catch (RuntimeException e) {
  if (LOG.isDebugEnabled()) {
   LOG.debug("Failed to parse request message '{}'", TextFormat.shortDebugString(wireMsg));
  }
  throw e;
 }
}
origin: apache/calcite-avatica

/**
 * <code>string name = 1;</code>
 */
public Builder clearName() {
 
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: org.apache.calcite.avatica/avatica-core

 @Override public Response parseResponse(byte[] bytes) throws IOException {
  ByteString byteString = UnsafeByteOperations.unsafeWrap(bytes);
  CodedInputStream inputStream = byteString.newCodedInput();
  // Enable aliasing to avoid an extra copy to get at the serialized Response inside of the
  // WireMessage.
  inputStream.enableAliasing(true);
  WireMessage wireMsg = WireMessage.parseFrom(inputStream);

  String serializedMessageClassName = wireMsg.getName();
  try {
   ResponseTranslator translator = getParserForResponse(serializedMessageClassName);

   return translator.transform(wireMsg.getWrappedMessage());
  } catch (RuntimeException e) {
   if (LOG.isDebugEnabled()) {
    LOG.debug("Failed to parse response message '{}'", TextFormat.shortDebugString(wireMsg));
   }
   throw e;
  }
 }
}
org.apache.calcite.avatica.protoCommon$WireMessagegetName

Javadoc

string name = 1;

Popular methods of Common$WireMessage

  • newBuilder
  • writeTo
  • <init>
  • getDefaultInstance
  • getNameBytes
    optional string name = 1;
  • getWrappedMessage
    optional bytes wrapped_message = 2;
  • isInitialized
  • makeExtensionsImmutable
  • parseFrom
  • toBuilder
  • getDescriptor
  • parseUnknownFieldProto3
  • getDescriptor,
  • parseUnknownFieldProto3

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now