Tabnine Logo
EventProtos$RootInputDataInformationEventProto.hasUserPayload
Code IndexAdd Tabnine to your IDE (free)

How to use
hasUserPayload
method
in
org.apache.tez.runtime.api.events.EventProtos$RootInputDataInformationEventProto

Best Java code snippets using org.apache.tez.runtime.api.events.EventProtos$RootInputDataInformationEventProto.hasUserPayload (Showing top 4 results out of 315)

origin: org.apache.tez/tez-api

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasSourceIndex()) {
  hash = (37 * hash) + SOURCE_INDEX_FIELD_NUMBER;
  hash = (53 * hash) + getSourceIndex();
 }
 if (hasTargetIndex()) {
  hash = (37 * hash) + TARGET_INDEX_FIELD_NUMBER;
  hash = (53 * hash) + getTargetIndex();
 }
 if (hasUserPayload()) {
  hash = (37 * hash) + USER_PAYLOAD_FIELD_NUMBER;
  hash = (53 * hash) + getUserPayload().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.tez/tez-api

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto)) {
  return super.equals(obj);
 }
 org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other = (org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto) obj;
 boolean result = true;
 result = result && (hasSourceIndex() == other.hasSourceIndex());
 if (hasSourceIndex()) {
  result = result && (getSourceIndex()
    == other.getSourceIndex());
 }
 result = result && (hasTargetIndex() == other.hasTargetIndex());
 if (hasTargetIndex()) {
  result = result && (getTargetIndex()
    == other.getTargetIndex());
 }
 result = result && (hasUserPayload() == other.hasUserPayload());
 if (hasUserPayload()) {
  result = result && getUserPayload()
    .equals(other.getUserPayload());
 }
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: org.apache.tez/tez-api

public Builder mergeFrom(org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto other) {
 if (other == org.apache.tez.runtime.api.events.EventProtos.RootInputDataInformationEventProto.getDefaultInstance()) return this;
 if (other.hasSourceIndex()) {
  setSourceIndex(other.getSourceIndex());
 }
 if (other.hasTargetIndex()) {
  setTargetIndex(other.getTargetIndex());
 }
 if (other.hasUserPayload()) {
  setUserPayload(other.getUserPayload());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: org.apache.tez/tez-runtime-internals

public static InputDataInformationEvent
  convertRootInputDataInformationEventFromProto(
  EventProtos.RootInputDataInformationEventProto proto) {
 InputDataInformationEvent diEvent = InputDataInformationEvent.createWithSerializedPayload(
   proto.getSourceIndex(),
   proto.hasUserPayload() ? proto.getUserPayload().asReadOnlyByteBuffer() : null);
 diEvent.setTargetIndex(proto.getTargetIndex());
 return diEvent;
}
org.apache.tez.runtime.api.eventsEventProtos$RootInputDataInformationEventProtohasUserPayload

Javadoc

optional bytes user_payload = 3;

Popular methods of EventProtos$RootInputDataInformationEventProto

  • newBuilder
  • getDefaultInstance
  • getSourceIndex
    optional int32 source_index = 1;
  • getTargetIndex
    optional int32 target_index = 2;
  • getUserPayload
    optional bytes user_payload = 3;
  • parseFrom
  • <init>
  • equals
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • hasSourceIndex
    optional int32 source_index = 1;
  • getUnknownFields,
  • hasSourceIndex,
  • hasTargetIndex,
  • hashCode,
  • initFields,
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownField,
  • toBuilder

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CodeWhisperer alternatives
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