ProtoBase (Apache Hadoop YARN Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.api.records.impl.pb, class: ProtoBase

Package org.apache.hadoop.yarn.api.records.impl.pb

# Class ProtoBase<T extends org.apache.hadoop.thirdparty.protobuf.Message>

java.lang.Object
org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<T>

@Private @Unstable public abstract class ProtoBase<T extends org.apache.hadoop.thirdparty.protobuf.Message> extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ProtoBase()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected final ByteBuffer`
  `convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)`
  `protected final org.apache.hadoop.thirdparty.protobuf.ByteString`
  `convertToProtoFormat(ByteBuffer byteBuffer)`
  `boolean`
  `equals(Object other)`
  `abstract T`
  `getProto()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ProtoBase

    public ProtoBase()

- ## Method Details

  - ### getProto

    public abstract T getProto()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

    public boolean equals(Object other)
    Overrides:
      `equals` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### convertFromProtoFormat

    protected final ByteBuffer convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)

  - ### convertToProtoFormat

    protected final org.apache.hadoop.thirdparty.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)