org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtobufRpcEngine2.proto
package org.apache.hadoop.ipc.protobuf;
public final class ProtobufRpcEngine2Protos {
private ProtobufRpcEngine2Protos() {}
public static void registerAllExtensions(
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite) registry);
}
public interface RequestHeaderProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.common.RequestHeaderProto)
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.
ExtendableMessageOrBuilder {
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return Whether the methodName field is set.
*/
boolean hasMethodName();
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The methodName.
*/
java.lang.String getMethodName();
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The bytes for methodName.
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getMethodNameBytes();
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return Whether the declaringClassProtocolName field is set.
*/
boolean hasDeclaringClassProtocolName();
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The declaringClassProtocolName.
*/
java.lang.String getDeclaringClassProtocolName();
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The bytes for declaringClassProtocolName.
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getDeclaringClassProtocolNameBytes();
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return Whether the clientProtocolVersion field is set.
*/
boolean hasClientProtocolVersion();
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return The clientProtocolVersion.
*/
long getClientProtocolVersion();
}
/**
*
**
* This message is the header for the Protobuf Rpc Engine
* when sending a RPC request from RPC client to the RPC server.
* The actual request (serialized as protobuf) follows this request.
*
* No special header is needed for the Rpc Response for Protobuf Rpc Engine.
* The normal RPC response header (see RpcHeader.proto) are sufficient.
*
*
* Protobuf type {@code hadoop.common.RequestHeaderProto}
*/
public static final class RequestHeaderProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableMessage<
RequestHeaderProto> implements
// @@protoc_insertion_point(message_implements:hadoop.common.RequestHeaderProto)
RequestHeaderProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RequestHeaderProto.newBuilder() to construct.
private RequestHeaderProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
super(builder);
}
private RequestHeaderProto() {
methodName_ = "";
declaringClassProtocolName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RequestHeaderProto();
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.internal_static_hadoop_common_RequestHeaderProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.internal_static_hadoop_common_RequestHeaderProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.class, org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.Builder.class);
}
private int bitField0_;
public static final int METHODNAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object methodName_ = "";
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return Whether the methodName field is set.
*/
@java.lang.Override
public boolean hasMethodName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The methodName.
*/
@java.lang.Override
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
methodName_ = s;
}
return s;
}
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The bytes for methodName.
*/
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object declaringClassProtocolName_ = "";
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return Whether the declaringClassProtocolName field is set.
*/
@java.lang.Override
public boolean hasDeclaringClassProtocolName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The declaringClassProtocolName.
*/
@java.lang.Override
public java.lang.String getDeclaringClassProtocolName() {
java.lang.Object ref = declaringClassProtocolName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
declaringClassProtocolName_ = s;
}
return s;
}
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The bytes for declaringClassProtocolName.
*/
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDeclaringClassProtocolNameBytes() {
java.lang.Object ref = declaringClassProtocolName_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declaringClassProtocolName_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int CLIENTPROTOCOLVERSION_FIELD_NUMBER = 3;
private long clientProtocolVersion_ = 0L;
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return Whether the clientProtocolVersion field is set.
*/
@java.lang.Override
public boolean hasClientProtocolVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return The clientProtocolVersion.
*/
@java.lang.Override
public long getClientProtocolVersion() {
return clientProtocolVersion_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasMethodName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasDeclaringClassProtocolName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasClientProtocolVersion()) {
memoizedIsInitialized = 0;
return false;
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.ExtendableMessage.ExtensionWriter
extensionWriter = newExtensionWriter();
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, methodName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, declaringClassProtocolName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(3, clientProtocolVersion_);
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(1, methodName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(2, declaringClassProtocolName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeUInt64Size(3, clientProtocolVersion_);
}
size += extensionsSerializedSize();
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto)) {
return super.equals(obj);
}
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto other = (org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto) obj;
if (hasMethodName() != other.hasMethodName()) return false;
if (hasMethodName()) {
if (!getMethodName()
.equals(other.getMethodName())) return false;
}
if (hasDeclaringClassProtocolName() != other.hasDeclaringClassProtocolName()) return false;
if (hasDeclaringClassProtocolName()) {
if (!getDeclaringClassProtocolName()
.equals(other.getDeclaringClassProtocolName())) return false;
}
if (hasClientProtocolVersion() != other.hasClientProtocolVersion()) return false;
if (hasClientProtocolVersion()) {
if (getClientProtocolVersion()
!= other.getClientProtocolVersion()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMethodName()) {
hash = (37 * hash) + METHODNAME_FIELD_NUMBER;
hash = (53 * hash) + getMethodName().hashCode();
}
if (hasDeclaringClassProtocolName()) {
hash = (37 * hash) + DECLARINGCLASSPROTOCOLNAME_FIELD_NUMBER;
hash = (53 * hash) + getDeclaringClassProtocolName().hashCode();
}
if (hasClientProtocolVersion()) {
hash = (37 * hash) + CLIENTPROTOCOLVERSION_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getClientProtocolVersion());
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* This message is the header for the Protobuf Rpc Engine
* when sending a RPC request from RPC client to the RPC server.
* The actual request (serialized as protobuf) follows this request.
*
* No special header is needed for the Rpc Response for Protobuf Rpc Engine.
* The normal RPC response header (see RpcHeader.proto) are sufficient.
*
*
* Protobuf type {@code hadoop.common.RequestHeaderProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.ExtendableBuilder<
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto, Builder> implements
// @@protoc_insertion_point(builder_implements:hadoop.common.RequestHeaderProto)
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.internal_static_hadoop_common_RequestHeaderProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.internal_static_hadoop_common_RequestHeaderProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.class, org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.Builder.class);
}
// Construct using org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.newBuilder()
private Builder() {
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
methodName_ = "";
declaringClassProtocolName_ = "";
clientProtocolVersion_ = 0L;
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.internal_static_hadoop_common_RequestHeaderProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto getDefaultInstanceForType() {
return org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto build() {
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto buildPartial() {
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto result = new org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.methodName_ = methodName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.declaringClassProtocolName_ = declaringClassProtocolName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.clientProtocolVersion_ = clientProtocolVersion_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder setExtension(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessage.GeneratedExtension<
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto, Type> extension,
Type value) {
return super.setExtension(extension, value);
}
@java.lang.Override
public Builder setExtension(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessage.GeneratedExtension<
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto, java.util.List> extension,
int index, Type value) {
return super.setExtension(extension, index, value);
}
@java.lang.Override
public Builder addExtension(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessage.GeneratedExtension<
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto, java.util.List> extension,
Type value) {
return super.addExtension(extension, value);
}
@java.lang.Override
public Builder clearExtension(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessage.GeneratedExtension<
org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto, T> extension) {
return super.clearExtension(extension);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto) {
return mergeFrom((org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto other) {
if (other == org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto.getDefaultInstance()) return this;
if (other.hasMethodName()) {
methodName_ = other.methodName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDeclaringClassProtocolName()) {
declaringClassProtocolName_ = other.declaringClassProtocolName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasClientProtocolVersion()) {
setClientProtocolVersion(other.getClientProtocolVersion());
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasMethodName()) {
return false;
}
if (!hasDeclaringClassProtocolName()) {
return false;
}
if (!hasClientProtocolVersion()) {
return false;
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
methodName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
declaringClassProtocolName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
clientProtocolVersion_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object methodName_ = "";
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return Whether the methodName field is set.
*/
public boolean hasMethodName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The methodName.
*/
public java.lang.String getMethodName() {
java.lang.Object ref = methodName_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
methodName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return The bytes for methodName.
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getMethodNameBytes() {
java.lang.Object ref = methodName_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
methodName_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @param value The methodName to set.
* @return This builder for chaining.
*/
public Builder setMethodName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
methodName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @return This builder for chaining.
*/
public Builder clearMethodName() {
methodName_ = getDefaultInstance().getMethodName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
** Name of the RPC method
*
*
* required string methodName = 1;
* @param value The bytes for methodName to set.
* @return This builder for chaining.
*/
public Builder setMethodNameBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
methodName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object declaringClassProtocolName_ = "";
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return Whether the declaringClassProtocolName field is set.
*/
public boolean hasDeclaringClassProtocolName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The declaringClassProtocolName.
*/
public java.lang.String getDeclaringClassProtocolName() {
java.lang.Object ref = declaringClassProtocolName_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
declaringClassProtocolName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return The bytes for declaringClassProtocolName.
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDeclaringClassProtocolNameBytes() {
java.lang.Object ref = declaringClassProtocolName_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
declaringClassProtocolName_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @param value The declaringClassProtocolName to set.
* @return This builder for chaining.
*/
public Builder setDeclaringClassProtocolName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
declaringClassProtocolName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @return This builder for chaining.
*/
public Builder clearDeclaringClassProtocolName() {
declaringClassProtocolName_ = getDefaultInstance().getDeclaringClassProtocolName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* RPCs for a particular interface (ie protocol) are done using a
* IPC connection that is setup using rpcProxy.
* The rpcProxy's has a declared protocol name that is
* sent form client to server at connection time.
*
* Each Rpc call also sends a protocol name
* (called declaringClassprotocolName). This name is usually the same
* as the connection protocol name except in some cases.
* For example metaProtocols such ProtocolInfoProto which get metainfo
* about the protocol reuse the connection but need to indicate that
* the actual protocol is different (i.e. the protocol is
* ProtocolInfoProto) since they reuse the connection; in this case
* the declaringClassProtocolName field is set to the ProtocolInfoProto
*
*
* required string declaringClassProtocolName = 2;
* @param value The bytes for declaringClassProtocolName to set.
* @return This builder for chaining.
*/
public Builder setDeclaringClassProtocolNameBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
declaringClassProtocolName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long clientProtocolVersion_ ;
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return Whether the clientProtocolVersion field is set.
*/
@java.lang.Override
public boolean hasClientProtocolVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return The clientProtocolVersion.
*/
@java.lang.Override
public long getClientProtocolVersion() {
return clientProtocolVersion_;
}
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @param value The clientProtocolVersion to set.
* @return This builder for chaining.
*/
public Builder setClientProtocolVersion(long value) {
clientProtocolVersion_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
** protocol version of class declaring the called method
*
*
* required uint64 clientProtocolVersion = 3;
* @return This builder for chaining.
*/
public Builder clearClientProtocolVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
clientProtocolVersion_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.common.RequestHeaderProto)
}
// @@protoc_insertion_point(class_scope:hadoop.common.RequestHeaderProto)
private static final org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto();
}
public static org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public RequestHeaderProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (org.apache.hadoop.thirdparty.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.ipc.protobuf.ProtobufRpcEngine2Protos.RequestHeaderProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
internal_static_hadoop_common_RequestHeaderProto_descriptor;
private static final
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_hadoop_common_RequestHeaderProto_fieldAccessorTable;
public static org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030ProtobufRpcEngine2.proto\022\rhadoop.commo" +
"n\"v\n\022RequestHeaderProto\022\022\n\nmethodName\030\001 " +
"\002(\t\022\"\n\032declaringClassProtocolName\030\002 \002(\t\022" +
"\035\n\025clientProtocolVersion\030\003 \002(\004*\t\010\350\007\020\200\200\200\200" +
"\002B=\n\036org.apache.hadoop.ipc.protobufB\030Pro" +
"tobufRpcEngine2Protos\240\001\001"
};
descriptor = org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.apache.hadoop.thirdparty.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_hadoop_common_RequestHeaderProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_hadoop_common_RequestHeaderProto_fieldAccessorTable = new
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_hadoop_common_RequestHeaderProto_descriptor,
new java.lang.String[] { "MethodName", "DeclaringClassProtocolName", "ClientProtocolVersion", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy