apsara.odps.cupid.protocol.SubprocessRpc Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cupidsubprocessrpc.proto
package apsara.odps.cupid.protocol;
public final class SubprocessRpc {
private SubprocessRpc() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface SubprocessRpcRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string host = 1;
/**
* required string host = 1;
*/
boolean hasHost();
/**
* required string host = 1;
*/
java.lang.String getHost();
/**
* required string host = 1;
*/
com.google.protobuf.ByteString
getHostBytes();
// required int32 port = 2;
/**
* required int32 port = 2;
*/
boolean hasPort();
/**
* required int32 port = 2;
*/
int getPort();
// required string data = 3;
/**
* required string data = 3;
*/
boolean hasData();
/**
* required string data = 3;
*/
java.lang.String getData();
/**
* required string data = 3;
*/
com.google.protobuf.ByteString
getDataBytes();
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.SubprocessRpcRequest}
*/
public static final class SubprocessRpcRequest extends
com.google.protobuf.GeneratedMessage
implements SubprocessRpcRequestOrBuilder {
// Use SubprocessRpcRequest.newBuilder() to construct.
private SubprocessRpcRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubprocessRpcRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubprocessRpcRequest defaultInstance;
public static SubprocessRpcRequest getDefaultInstance() {
return defaultInstance;
}
public SubprocessRpcRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubprocessRpcRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
host_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
port_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.class, apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubprocessRpcRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubprocessRpcRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string host = 1;
public static final int HOST_FIELD_NUMBER = 1;
private java.lang.Object host_;
/**
* required string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* required string host = 1;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 port = 2;
public static final int PORT_FIELD_NUMBER = 2;
private int port_;
/**
* required int32 port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 port = 2;
*/
public int getPort() {
return port_;
}
// required string data = 3;
public static final int DATA_FIELD_NUMBER = 3;
private java.lang.Object data_;
/**
* required string data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string data = 3;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
data_ = s;
}
return s;
}
}
/**
* required string data = 3;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
host_ = "";
port_ = 0;
data_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasHost()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasPort()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getHostBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, port_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDataBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getHostBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, port_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDataBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.SubprocessRpcRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.class, apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.Builder.class);
}
// Construct using apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
host_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
data_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor;
}
public apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest getDefaultInstanceForType() {
return apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.getDefaultInstance();
}
public apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest build() {
apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest buildPartial() {
apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest result = new apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.port_ = port_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest) {
return mergeFrom((apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest other) {
if (other == apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest.getDefaultInstance()) return this;
if (other.hasHost()) {
bitField0_ |= 0x00000001;
host_ = other.host_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
if (other.hasData()) {
bitField0_ |= 0x00000004;
data_ = other.data_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasHost()) {
return false;
}
if (!hasPort()) {
return false;
}
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apsara.odps.cupid.protocol.SubprocessRpc.SubprocessRpcRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string host = 1;
private java.lang.Object host_ = "";
/**
* required string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string host = 1;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string host = 1;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
/**
* required string host = 1;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000001);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* required string host = 1;
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
// required int32 port = 2;
private int port_ ;
/**
* required int32 port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required int32 port = 2;
*/
public int getPort() {
return port_;
}
/**
* required int32 port = 2;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000002;
port_ = value;
onChanged();
return this;
}
/**
* required int32 port = 2;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
onChanged();
return this;
}
// required string data = 3;
private java.lang.Object data_ = "";
/**
* required string data = 3;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required string data = 3;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string data = 3;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string data = 3;
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
/**
* required string data = 3;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000004);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
* required string data = 3;
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
data_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.SubprocessRpcRequest)
}
static {
defaultInstance = new SubprocessRpcRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.SubprocessRpcRequest)
}
public interface RpcRequestWrapperOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string method = 1;
/**
* required string method = 1;
*/
boolean hasMethod();
/**
* required string method = 1;
*/
java.lang.String getMethod();
/**
* required string method = 1;
*/
com.google.protobuf.ByteString
getMethodBytes();
// required string data = 2;
/**
* required string data = 2;
*/
boolean hasData();
/**
* required string data = 2;
*/
java.lang.String getData();
/**
* required string data = 2;
*/
com.google.protobuf.ByteString
getDataBytes();
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.RpcRequestWrapper}
*/
public static final class RpcRequestWrapper extends
com.google.protobuf.GeneratedMessage
implements RpcRequestWrapperOrBuilder {
// Use RpcRequestWrapper.newBuilder() to construct.
private RpcRequestWrapper(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RpcRequestWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RpcRequestWrapper defaultInstance;
public static RpcRequestWrapper getDefaultInstance() {
return defaultInstance;
}
public RpcRequestWrapper getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RpcRequestWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
method_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.class, apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RpcRequestWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RpcRequestWrapper(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string method = 1;
public static final int METHOD_FIELD_NUMBER = 1;
private java.lang.Object method_;
/**
* required string method = 1;
*/
public boolean hasMethod() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string method = 1;
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
method_ = s;
}
return s;
}
}
/**
* required string method = 1;
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required string data = 2;
public static final int DATA_FIELD_NUMBER = 2;
private java.lang.Object data_;
/**
* required string data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string data = 2;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
data_ = s;
}
return s;
}
}
/**
* required string data = 2;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
method_ = "";
data_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasMethod()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getMethodBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getDataBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getMethodBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getDataBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.RpcRequestWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.class, apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.Builder.class);
}
// Construct using apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
method_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
data_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return apsara.odps.cupid.protocol.SubprocessRpc.internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor;
}
public apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper getDefaultInstanceForType() {
return apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.getDefaultInstance();
}
public apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper build() {
apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper buildPartial() {
apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper result = new apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.method_ = method_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper) {
return mergeFrom((apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper other) {
if (other == apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper.getDefaultInstance()) return this;
if (other.hasMethod()) {
bitField0_ |= 0x00000001;
method_ = other.method_;
onChanged();
}
if (other.hasData()) {
bitField0_ |= 0x00000002;
data_ = other.data_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasMethod()) {
return false;
}
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apsara.odps.cupid.protocol.SubprocessRpc.RpcRequestWrapper) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string method = 1;
private java.lang.Object method_ = "";
/**
* required string method = 1;
*/
public boolean hasMethod() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string method = 1;
*/
public java.lang.String getMethod() {
java.lang.Object ref = method_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
method_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string method = 1;
*/
public com.google.protobuf.ByteString
getMethodBytes() {
java.lang.Object ref = method_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
method_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string method = 1;
*/
public Builder setMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
method_ = value;
onChanged();
return this;
}
/**
* required string method = 1;
*/
public Builder clearMethod() {
bitField0_ = (bitField0_ & ~0x00000001);
method_ = getDefaultInstance().getMethod();
onChanged();
return this;
}
/**
* required string method = 1;
*/
public Builder setMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
method_ = value;
onChanged();
return this;
}
// required string data = 2;
private java.lang.Object data_ = "";
/**
* required string data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string data = 2;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
data_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string data = 2;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string data = 2;
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
data_ = value;
onChanged();
return this;
}
/**
* required string data = 2;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
* required string data = 2;
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
data_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.RpcRequestWrapper)
}
static {
defaultInstance = new RpcRequestWrapper(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.RpcRequestWrapper)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030cupidsubprocessrpc.proto\022\032apsara.odps." +
"cupid.protocol\"@\n\024SubprocessRpcRequest\022\014" +
"\n\004host\030\001 \002(\t\022\014\n\004port\030\002 \002(\005\022\014\n\004data\030\003 \002(\t" +
"\"1\n\021RpcRequestWrapper\022\016\n\006method\030\001 \002(\t\022\014\n" +
"\004data\030\002 \002(\tB\017B\rSubprocessRpc"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_cupid_protocol_SubprocessRpcRequest_descriptor,
new java.lang.String[] { "Host", "Port", "Data", });
internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_cupid_protocol_RpcRequestWrapper_descriptor,
new java.lang.String[] { "Method", "Data", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy