com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: psi_service.proto
package com.intel.analytics.bigdl.ppml.fl.generated;
public final class PSIServiceProto {
private PSIServiceProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface SaltRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:SaltRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string task_id = 1;
* @return The taskId.
*/
java.lang.String getTaskId();
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
/**
* int32 client_num = 2;
* @return The clientNum.
*/
int getClientNum();
/**
* string secure_code = 3;
* @return The secureCode.
*/
java.lang.String getSecureCode();
/**
* string secure_code = 3;
* @return The bytes for secureCode.
*/
com.google.protobuf.ByteString
getSecureCodeBytes();
}
/**
* Protobuf type {@code SaltRequest}
*/
public static final class SaltRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SaltRequest)
SaltRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SaltRequest.newBuilder() to construct.
private SaltRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SaltRequest() {
taskId_ = "";
secureCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SaltRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SaltRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
taskId_ = s;
break;
}
case 16: {
clientNum_ = input.readInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
secureCode_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object taskId_;
/**
* string task_id = 1;
* @return The taskId.
*/
@java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
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();
taskId_ = s;
return s;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_NUM_FIELD_NUMBER = 2;
private int clientNum_;
/**
* int32 client_num = 2;
* @return The clientNum.
*/
@java.lang.Override
public int getClientNum() {
return clientNum_;
}
public static final int SECURE_CODE_FIELD_NUMBER = 3;
private volatile java.lang.Object secureCode_;
/**
* string secure_code = 3;
* @return The secureCode.
*/
@java.lang.Override
public java.lang.String getSecureCode() {
java.lang.Object ref = secureCode_;
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();
secureCode_ = s;
return s;
}
}
/**
* string secure_code = 3;
* @return The bytes for secureCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecureCodeBytes() {
java.lang.Object ref = secureCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secureCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTaskIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
}
if (clientNum_ != 0) {
output.writeInt32(2, clientNum_);
}
if (!getSecureCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secureCode_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTaskIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
}
if (clientNum_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientNum_);
}
if (!getSecureCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secureCode_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (getClientNum()
!= other.getClientNum()) return false;
if (!getSecureCode()
.equals(other.getSecureCode())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + CLIENT_NUM_FIELD_NUMBER;
hash = (53 * hash) + getClientNum();
hash = (37 * hash) + SECURE_CODE_FIELD_NUMBER;
hash = (53 * hash) + getSecureCode().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SaltRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:SaltRequest)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
taskId_ = "";
clientNum_ = 0;
secureCode_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltRequest_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest(this);
result.taskId_ = taskId_;
result.clientNum_ = clientNum_;
result.secureCode_ = secureCode_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest.getDefaultInstance()) return this;
if (!other.getTaskId().isEmpty()) {
taskId_ = other.taskId_;
onChanged();
}
if (other.getClientNum() != 0) {
setClientNum(other.getClientNum());
}
if (!other.getSecureCode().isEmpty()) {
secureCode_ = other.secureCode_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object taskId_ = "";
/**
* string task_id = 1;
* @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_id = 1;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* string task_id = 1;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
* string task_id = 1;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int clientNum_ ;
/**
* int32 client_num = 2;
* @return The clientNum.
*/
@java.lang.Override
public int getClientNum() {
return clientNum_;
}
/**
* int32 client_num = 2;
* @param value The clientNum to set.
* @return This builder for chaining.
*/
public Builder setClientNum(int value) {
clientNum_ = value;
onChanged();
return this;
}
/**
* int32 client_num = 2;
* @return This builder for chaining.
*/
public Builder clearClientNum() {
clientNum_ = 0;
onChanged();
return this;
}
private java.lang.Object secureCode_ = "";
/**
* string secure_code = 3;
* @return The secureCode.
*/
public java.lang.String getSecureCode() {
java.lang.Object ref = secureCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secureCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string secure_code = 3;
* @return The bytes for secureCode.
*/
public com.google.protobuf.ByteString
getSecureCodeBytes() {
java.lang.Object ref = secureCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secureCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string secure_code = 3;
* @param value The secureCode to set.
* @return This builder for chaining.
*/
public Builder setSecureCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
secureCode_ = value;
onChanged();
return this;
}
/**
* string secure_code = 3;
* @return This builder for chaining.
*/
public Builder clearSecureCode() {
secureCode_ = getDefaultInstance().getSecureCode();
onChanged();
return this;
}
/**
* string secure_code = 3;
* @param value The bytes for secureCode to set.
* @return This builder for chaining.
*/
public Builder setSecureCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
secureCode_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:SaltRequest)
}
// @@protoc_insertion_point(class_scope:SaltRequest)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SaltRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SaltRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SaltReplyOrBuilder extends
// @@protoc_insertion_point(interface_extends:SaltReply)
com.google.protobuf.MessageOrBuilder {
/**
* string salt_reply = 1;
* @return The saltReply.
*/
java.lang.String getSaltReply();
/**
* string salt_reply = 1;
* @return The bytes for saltReply.
*/
com.google.protobuf.ByteString
getSaltReplyBytes();
}
/**
* Protobuf type {@code SaltReply}
*/
public static final class SaltReply extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SaltReply)
SaltReplyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SaltReply.newBuilder() to construct.
private SaltReply(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SaltReply() {
saltReply_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SaltReply();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SaltReply(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
saltReply_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltReply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.Builder.class);
}
public static final int SALT_REPLY_FIELD_NUMBER = 1;
private volatile java.lang.Object saltReply_;
/**
* string salt_reply = 1;
* @return The saltReply.
*/
@java.lang.Override
public java.lang.String getSaltReply() {
java.lang.Object ref = saltReply_;
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();
saltReply_ = s;
return s;
}
}
/**
* string salt_reply = 1;
* @return The bytes for saltReply.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSaltReplyBytes() {
java.lang.Object ref = saltReply_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saltReply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSaltReplyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, saltReply_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSaltReplyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, saltReply_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply) obj;
if (!getSaltReply()
.equals(other.getSaltReply())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SALT_REPLY_FIELD_NUMBER;
hash = (53 * hash) + getSaltReply().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code SaltReply}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:SaltReply)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReplyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltReply_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltReply_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
saltReply_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_SaltReply_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply(this);
result.saltReply_ = saltReply_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply.getDefaultInstance()) return this;
if (!other.getSaltReply().isEmpty()) {
saltReply_ = other.saltReply_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object saltReply_ = "";
/**
* string salt_reply = 1;
* @return The saltReply.
*/
public java.lang.String getSaltReply() {
java.lang.Object ref = saltReply_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
saltReply_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string salt_reply = 1;
* @return The bytes for saltReply.
*/
public com.google.protobuf.ByteString
getSaltReplyBytes() {
java.lang.Object ref = saltReply_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saltReply_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string salt_reply = 1;
* @param value The saltReply to set.
* @return This builder for chaining.
*/
public Builder setSaltReply(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
saltReply_ = value;
onChanged();
return this;
}
/**
* string salt_reply = 1;
* @return This builder for chaining.
*/
public Builder clearSaltReply() {
saltReply_ = getDefaultInstance().getSaltReply();
onChanged();
return this;
}
/**
* string salt_reply = 1;
* @param value The bytes for saltReply to set.
* @return This builder for chaining.
*/
public Builder setSaltReplyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
saltReply_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:SaltReply)
}
// @@protoc_insertion_point(class_scope:SaltReply)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SaltReply parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SaltReply(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.SaltReply getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UploadSetRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:UploadSetRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string task_id = 1;
* @return The taskId.
*/
java.lang.String getTaskId();
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
/**
* int32 client_id = 2;
* @return The clientId.
*/
int getClientId();
/**
* int32 split = 3;
* @return The split.
*/
int getSplit();
/**
* int32 num_split = 4;
* @return The numSplit.
*/
int getNumSplit();
/**
* int32 split_length = 5;
* @return The splitLength.
*/
int getSplitLength();
/**
* int32 total_length = 6;
* @return The totalLength.
*/
int getTotalLength();
/**
* repeated string hashedID = 7;
* @return A list containing the hashedID.
*/
java.util.List
getHashedIDList();
/**
* repeated string hashedID = 7;
* @return The count of hashedID.
*/
int getHashedIDCount();
/**
* repeated string hashedID = 7;
* @param index The index of the element to return.
* @return The hashedID at the given index.
*/
java.lang.String getHashedID(int index);
/**
* repeated string hashedID = 7;
* @param index The index of the value to return.
* @return The bytes of the hashedID at the given index.
*/
com.google.protobuf.ByteString
getHashedIDBytes(int index);
}
/**
* Protobuf type {@code UploadSetRequest}
*/
public static final class UploadSetRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:UploadSetRequest)
UploadSetRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadSetRequest.newBuilder() to construct.
private UploadSetRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadSetRequest() {
taskId_ = "";
hashedID_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadSetRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadSetRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
taskId_ = s;
break;
}
case 16: {
clientId_ = input.readInt32();
break;
}
case 24: {
split_ = input.readInt32();
break;
}
case 32: {
numSplit_ = input.readInt32();
break;
}
case 40: {
splitLength_ = input.readInt32();
break;
}
case 48: {
totalLength_ = input.readInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
hashedID_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
hashedID_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
hashedID_ = hashedID_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object taskId_;
/**
* string task_id = 1;
* @return The taskId.
*/
@java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
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();
taskId_ = s;
return s;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_ID_FIELD_NUMBER = 2;
private int clientId_;
/**
* int32 client_id = 2;
* @return The clientId.
*/
@java.lang.Override
public int getClientId() {
return clientId_;
}
public static final int SPLIT_FIELD_NUMBER = 3;
private int split_;
/**
* int32 split = 3;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
public static final int NUM_SPLIT_FIELD_NUMBER = 4;
private int numSplit_;
/**
* int32 num_split = 4;
* @return The numSplit.
*/
@java.lang.Override
public int getNumSplit() {
return numSplit_;
}
public static final int SPLIT_LENGTH_FIELD_NUMBER = 5;
private int splitLength_;
/**
* int32 split_length = 5;
* @return The splitLength.
*/
@java.lang.Override
public int getSplitLength() {
return splitLength_;
}
public static final int TOTAL_LENGTH_FIELD_NUMBER = 6;
private int totalLength_;
/**
* int32 total_length = 6;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
public static final int HASHEDID_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList hashedID_;
/**
* repeated string hashedID = 7;
* @return A list containing the hashedID.
*/
public com.google.protobuf.ProtocolStringList
getHashedIDList() {
return hashedID_;
}
/**
* repeated string hashedID = 7;
* @return The count of hashedID.
*/
public int getHashedIDCount() {
return hashedID_.size();
}
/**
* repeated string hashedID = 7;
* @param index The index of the element to return.
* @return The hashedID at the given index.
*/
public java.lang.String getHashedID(int index) {
return hashedID_.get(index);
}
/**
* repeated string hashedID = 7;
* @param index The index of the value to return.
* @return The bytes of the hashedID at the given index.
*/
public com.google.protobuf.ByteString
getHashedIDBytes(int index) {
return hashedID_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTaskIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
}
if (clientId_ != 0) {
output.writeInt32(2, clientId_);
}
if (split_ != 0) {
output.writeInt32(3, split_);
}
if (numSplit_ != 0) {
output.writeInt32(4, numSplit_);
}
if (splitLength_ != 0) {
output.writeInt32(5, splitLength_);
}
if (totalLength_ != 0) {
output.writeInt32(6, totalLength_);
}
for (int i = 0; i < hashedID_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hashedID_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTaskIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
}
if (clientId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, clientId_);
}
if (split_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, split_);
}
if (numSplit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, numSplit_);
}
if (splitLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, splitLength_);
}
if (totalLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, totalLength_);
}
{
int dataSize = 0;
for (int i = 0; i < hashedID_.size(); i++) {
dataSize += computeStringSizeNoTag(hashedID_.getRaw(i));
}
size += dataSize;
size += 1 * getHashedIDList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (getClientId()
!= other.getClientId()) return false;
if (getSplit()
!= other.getSplit()) return false;
if (getNumSplit()
!= other.getNumSplit()) return false;
if (getSplitLength()
!= other.getSplitLength()) return false;
if (getTotalLength()
!= other.getTotalLength()) return false;
if (!getHashedIDList()
.equals(other.getHashedIDList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER;
hash = (53 * hash) + getClientId();
hash = (37 * hash) + SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getSplit();
hash = (37 * hash) + NUM_SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getNumSplit();
hash = (37 * hash) + SPLIT_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getSplitLength();
hash = (37 * hash) + TOTAL_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getTotalLength();
if (getHashedIDCount() > 0) {
hash = (37 * hash) + HASHEDID_FIELD_NUMBER;
hash = (53 * hash) + getHashedIDList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code UploadSetRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:UploadSetRequest)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
taskId_ = "";
clientId_ = 0;
split_ = 0;
numSplit_ = 0;
splitLength_ = 0;
totalLength_ = 0;
hashedID_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetRequest_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest(this);
int from_bitField0_ = bitField0_;
result.taskId_ = taskId_;
result.clientId_ = clientId_;
result.split_ = split_;
result.numSplit_ = numSplit_;
result.splitLength_ = splitLength_;
result.totalLength_ = totalLength_;
if (((bitField0_ & 0x00000001) != 0)) {
hashedID_ = hashedID_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hashedID_ = hashedID_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest.getDefaultInstance()) return this;
if (!other.getTaskId().isEmpty()) {
taskId_ = other.taskId_;
onChanged();
}
if (other.getClientId() != 0) {
setClientId(other.getClientId());
}
if (other.getSplit() != 0) {
setSplit(other.getSplit());
}
if (other.getNumSplit() != 0) {
setNumSplit(other.getNumSplit());
}
if (other.getSplitLength() != 0) {
setSplitLength(other.getSplitLength());
}
if (other.getTotalLength() != 0) {
setTotalLength(other.getTotalLength());
}
if (!other.hashedID_.isEmpty()) {
if (hashedID_.isEmpty()) {
hashedID_ = other.hashedID_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHashedIDIsMutable();
hashedID_.addAll(other.hashedID_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object taskId_ = "";
/**
* string task_id = 1;
* @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_id = 1;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* string task_id = 1;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
* string task_id = 1;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int clientId_ ;
/**
* int32 client_id = 2;
* @return The clientId.
*/
@java.lang.Override
public int getClientId() {
return clientId_;
}
/**
* int32 client_id = 2;
* @param value The clientId to set.
* @return This builder for chaining.
*/
public Builder setClientId(int value) {
clientId_ = value;
onChanged();
return this;
}
/**
* int32 client_id = 2;
* @return This builder for chaining.
*/
public Builder clearClientId() {
clientId_ = 0;
onChanged();
return this;
}
private int split_ ;
/**
* int32 split = 3;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
/**
* int32 split = 3;
* @param value The split to set.
* @return This builder for chaining.
*/
public Builder setSplit(int value) {
split_ = value;
onChanged();
return this;
}
/**
* int32 split = 3;
* @return This builder for chaining.
*/
public Builder clearSplit() {
split_ = 0;
onChanged();
return this;
}
private int numSplit_ ;
/**
* int32 num_split = 4;
* @return The numSplit.
*/
@java.lang.Override
public int getNumSplit() {
return numSplit_;
}
/**
* int32 num_split = 4;
* @param value The numSplit to set.
* @return This builder for chaining.
*/
public Builder setNumSplit(int value) {
numSplit_ = value;
onChanged();
return this;
}
/**
* int32 num_split = 4;
* @return This builder for chaining.
*/
public Builder clearNumSplit() {
numSplit_ = 0;
onChanged();
return this;
}
private int splitLength_ ;
/**
* int32 split_length = 5;
* @return The splitLength.
*/
@java.lang.Override
public int getSplitLength() {
return splitLength_;
}
/**
* int32 split_length = 5;
* @param value The splitLength to set.
* @return This builder for chaining.
*/
public Builder setSplitLength(int value) {
splitLength_ = value;
onChanged();
return this;
}
/**
* int32 split_length = 5;
* @return This builder for chaining.
*/
public Builder clearSplitLength() {
splitLength_ = 0;
onChanged();
return this;
}
private int totalLength_ ;
/**
* int32 total_length = 6;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
/**
* int32 total_length = 6;
* @param value The totalLength to set.
* @return This builder for chaining.
*/
public Builder setTotalLength(int value) {
totalLength_ = value;
onChanged();
return this;
}
/**
* int32 total_length = 6;
* @return This builder for chaining.
*/
public Builder clearTotalLength() {
totalLength_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList hashedID_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHashedIDIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hashedID_ = new com.google.protobuf.LazyStringArrayList(hashedID_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string hashedID = 7;
* @return A list containing the hashedID.
*/
public com.google.protobuf.ProtocolStringList
getHashedIDList() {
return hashedID_.getUnmodifiableView();
}
/**
* repeated string hashedID = 7;
* @return The count of hashedID.
*/
public int getHashedIDCount() {
return hashedID_.size();
}
/**
* repeated string hashedID = 7;
* @param index The index of the element to return.
* @return The hashedID at the given index.
*/
public java.lang.String getHashedID(int index) {
return hashedID_.get(index);
}
/**
* repeated string hashedID = 7;
* @param index The index of the value to return.
* @return The bytes of the hashedID at the given index.
*/
public com.google.protobuf.ByteString
getHashedIDBytes(int index) {
return hashedID_.getByteString(index);
}
/**
* repeated string hashedID = 7;
* @param index The index to set the value at.
* @param value The hashedID to set.
* @return This builder for chaining.
*/
public Builder setHashedID(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHashedIDIsMutable();
hashedID_.set(index, value);
onChanged();
return this;
}
/**
* repeated string hashedID = 7;
* @param value The hashedID to add.
* @return This builder for chaining.
*/
public Builder addHashedID(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHashedIDIsMutable();
hashedID_.add(value);
onChanged();
return this;
}
/**
* repeated string hashedID = 7;
* @param values The hashedID to add.
* @return This builder for chaining.
*/
public Builder addAllHashedID(
java.lang.Iterable values) {
ensureHashedIDIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hashedID_);
onChanged();
return this;
}
/**
* repeated string hashedID = 7;
* @return This builder for chaining.
*/
public Builder clearHashedID() {
hashedID_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string hashedID = 7;
* @param value The bytes of the hashedID to add.
* @return This builder for chaining.
*/
public Builder addHashedIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureHashedIDIsMutable();
hashedID_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:UploadSetRequest)
}
// @@protoc_insertion_point(class_scope:UploadSetRequest)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadSetRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadSetRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UploadSetResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:UploadSetResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string task_id = 1;
* @return The taskId.
*/
java.lang.String getTaskId();
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .SIGNAL status = 2;
* @return The status.
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus();
}
/**
* Protobuf type {@code UploadSetResponse}
*/
public static final class UploadSetResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:UploadSetResponse)
UploadSetResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadSetResponse.newBuilder() to construct.
private UploadSetResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadSetResponse() {
taskId_ = "";
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadSetResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadSetResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
taskId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object taskId_;
/**
* string task_id = 1;
* @return The taskId.
*/
@java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
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();
taskId_ = s;
return s;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .SIGNAL status = 2;
* @return The status.
*/
@java.lang.Override public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus() {
@SuppressWarnings("deprecation")
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL result = com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.valueOf(status_);
return result == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTaskIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
}
if (status_ != com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.SUCCESS.getNumber()) {
output.writeEnum(2, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTaskIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
}
if (status_ != com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (status_ != other.status_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code UploadSetResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:UploadSetResponse)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
taskId_ = "";
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_UploadSetResponse_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse(this);
result.taskId_ = taskId_;
result.status_ = status_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse.getDefaultInstance()) return this;
if (!other.getTaskId().isEmpty()) {
taskId_ = other.taskId_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object taskId_ = "";
/**
* string task_id = 1;
* @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_id = 1;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* string task_id = 1;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
* string task_id = 1;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .SIGNAL status = 2;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .SIGNAL status = 2;
* @return The status.
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus() {
@SuppressWarnings("deprecation")
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL result = com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.valueOf(status_);
return result == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.UNRECOGNIZED : result;
}
/**
* .SIGNAL status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .SIGNAL status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:UploadSetResponse)
}
// @@protoc_insertion_point(class_scope:UploadSetResponse)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadSetResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadSetResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.UploadSetResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DownloadIntersectionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:DownloadIntersectionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string task_id = 1;
* @return The taskId.
*/
java.lang.String getTaskId();
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
/**
* int32 split = 2;
* @return The split.
*/
int getSplit();
}
/**
* Protobuf type {@code DownloadIntersectionRequest}
*/
public static final class DownloadIntersectionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:DownloadIntersectionRequest)
DownloadIntersectionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DownloadIntersectionRequest.newBuilder() to construct.
private DownloadIntersectionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DownloadIntersectionRequest() {
taskId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DownloadIntersectionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DownloadIntersectionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
taskId_ = s;
break;
}
case 16: {
split_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object taskId_;
/**
* string task_id = 1;
* @return The taskId.
*/
@java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
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();
taskId_ = s;
return s;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPLIT_FIELD_NUMBER = 2;
private int split_;
/**
* int32 split = 2;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTaskIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
}
if (split_ != 0) {
output.writeInt32(2, split_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTaskIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
}
if (split_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, split_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (getSplit()
!= other.getSplit()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getSplit();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DownloadIntersectionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:DownloadIntersectionRequest)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
taskId_ = "";
split_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionRequest_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest(this);
result.taskId_ = taskId_;
result.split_ = split_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest.getDefaultInstance()) return this;
if (!other.getTaskId().isEmpty()) {
taskId_ = other.taskId_;
onChanged();
}
if (other.getSplit() != 0) {
setSplit(other.getSplit());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object taskId_ = "";
/**
* string task_id = 1;
* @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_id = 1;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* string task_id = 1;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
* string task_id = 1;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int split_ ;
/**
* int32 split = 2;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
/**
* int32 split = 2;
* @param value The split to set.
* @return This builder for chaining.
*/
public Builder setSplit(int value) {
split_ = value;
onChanged();
return this;
}
/**
* int32 split = 2;
* @return This builder for chaining.
*/
public Builder clearSplit() {
split_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:DownloadIntersectionRequest)
}
// @@protoc_insertion_point(class_scope:DownloadIntersectionRequest)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DownloadIntersectionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DownloadIntersectionRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DownloadIntersectionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:DownloadIntersectionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string task_id = 1;
* @return The taskId.
*/
java.lang.String getTaskId();
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .SIGNAL status = 2;
* @return The status.
*/
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus();
/**
* int32 split = 3;
* @return The split.
*/
int getSplit();
/**
* int32 num_split = 4;
* @return The numSplit.
*/
int getNumSplit();
/**
* int32 split_length = 5;
* @return The splitLength.
*/
int getSplitLength();
/**
* int32 total_length = 6;
* @return The totalLength.
*/
int getTotalLength();
/**
* repeated string intersection = 7;
* @return A list containing the intersection.
*/
java.util.List
getIntersectionList();
/**
* repeated string intersection = 7;
* @return The count of intersection.
*/
int getIntersectionCount();
/**
* repeated string intersection = 7;
* @param index The index of the element to return.
* @return The intersection at the given index.
*/
java.lang.String getIntersection(int index);
/**
* repeated string intersection = 7;
* @param index The index of the value to return.
* @return The bytes of the intersection at the given index.
*/
com.google.protobuf.ByteString
getIntersectionBytes(int index);
}
/**
* Protobuf type {@code DownloadIntersectionResponse}
*/
public static final class DownloadIntersectionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:DownloadIntersectionResponse)
DownloadIntersectionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DownloadIntersectionResponse.newBuilder() to construct.
private DownloadIntersectionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DownloadIntersectionResponse() {
taskId_ = "";
status_ = 0;
intersection_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DownloadIntersectionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DownloadIntersectionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
taskId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 24: {
split_ = input.readInt32();
break;
}
case 32: {
numSplit_ = input.readInt32();
break;
}
case 40: {
splitLength_ = input.readInt32();
break;
}
case 48: {
totalLength_ = input.readInt32();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
intersection_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
intersection_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
intersection_ = intersection_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object taskId_;
/**
* string task_id = 1;
* @return The taskId.
*/
@java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
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();
taskId_ = s;
return s;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .SIGNAL status = 2;
* @return The status.
*/
@java.lang.Override public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus() {
@SuppressWarnings("deprecation")
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL result = com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.valueOf(status_);
return result == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.UNRECOGNIZED : result;
}
public static final int SPLIT_FIELD_NUMBER = 3;
private int split_;
/**
* int32 split = 3;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
public static final int NUM_SPLIT_FIELD_NUMBER = 4;
private int numSplit_;
/**
* int32 num_split = 4;
* @return The numSplit.
*/
@java.lang.Override
public int getNumSplit() {
return numSplit_;
}
public static final int SPLIT_LENGTH_FIELD_NUMBER = 5;
private int splitLength_;
/**
* int32 split_length = 5;
* @return The splitLength.
*/
@java.lang.Override
public int getSplitLength() {
return splitLength_;
}
public static final int TOTAL_LENGTH_FIELD_NUMBER = 6;
private int totalLength_;
/**
* int32 total_length = 6;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
public static final int INTERSECTION_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList intersection_;
/**
* repeated string intersection = 7;
* @return A list containing the intersection.
*/
public com.google.protobuf.ProtocolStringList
getIntersectionList() {
return intersection_;
}
/**
* repeated string intersection = 7;
* @return The count of intersection.
*/
public int getIntersectionCount() {
return intersection_.size();
}
/**
* repeated string intersection = 7;
* @param index The index of the element to return.
* @return The intersection at the given index.
*/
public java.lang.String getIntersection(int index) {
return intersection_.get(index);
}
/**
* repeated string intersection = 7;
* @param index The index of the value to return.
* @return The bytes of the intersection at the given index.
*/
public com.google.protobuf.ByteString
getIntersectionBytes(int index) {
return intersection_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTaskIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
}
if (status_ != com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.SUCCESS.getNumber()) {
output.writeEnum(2, status_);
}
if (split_ != 0) {
output.writeInt32(3, split_);
}
if (numSplit_ != 0) {
output.writeInt32(4, numSplit_);
}
if (splitLength_ != 0) {
output.writeInt32(5, splitLength_);
}
if (totalLength_ != 0) {
output.writeInt32(6, totalLength_);
}
for (int i = 0; i < intersection_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, intersection_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTaskIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
}
if (status_ != com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
if (split_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, split_);
}
if (numSplit_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, numSplit_);
}
if (splitLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, splitLength_);
}
if (totalLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, totalLength_);
}
{
int dataSize = 0;
for (int i = 0; i < intersection_.size(); i++) {
dataSize += computeStringSizeNoTag(intersection_.getRaw(i));
}
size += dataSize;
size += 1 * getIntersectionList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse)) {
return super.equals(obj);
}
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse other = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (status_ != other.status_) return false;
if (getSplit()
!= other.getSplit()) return false;
if (getNumSplit()
!= other.getNumSplit()) return false;
if (getSplitLength()
!= other.getSplitLength()) return false;
if (getTotalLength()
!= other.getTotalLength()) return false;
if (!getIntersectionList()
.equals(other.getIntersectionList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (37 * hash) + SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getSplit();
hash = (37 * hash) + NUM_SPLIT_FIELD_NUMBER;
hash = (53 * hash) + getNumSplit();
hash = (37 * hash) + SPLIT_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getSplitLength();
hash = (37 * hash) + TOTAL_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getTotalLength();
if (getIntersectionCount() > 0) {
hash = (37 * hash) + INTERSECTION_FIELD_NUMBER;
hash = (53 * hash) + getIntersectionList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.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(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code DownloadIntersectionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:DownloadIntersectionResponse)
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.class, com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.Builder.class);
}
// Construct using com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
taskId_ = "";
status_ = 0;
split_ = 0;
numSplit_ = 0;
splitLength_ = 0;
totalLength_ = 0;
intersection_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.internal_static_DownloadIntersectionResponse_descriptor;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse getDefaultInstanceForType() {
return com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.getDefaultInstance();
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse build() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse buildPartial() {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse result = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse(this);
int from_bitField0_ = bitField0_;
result.taskId_ = taskId_;
result.status_ = status_;
result.split_ = split_;
result.numSplit_ = numSplit_;
result.splitLength_ = splitLength_;
result.totalLength_ = totalLength_;
if (((bitField0_ & 0x00000001) != 0)) {
intersection_ = intersection_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.intersection_ = intersection_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse) {
return mergeFrom((com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse other) {
if (other == com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse.getDefaultInstance()) return this;
if (!other.getTaskId().isEmpty()) {
taskId_ = other.taskId_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (other.getSplit() != 0) {
setSplit(other.getSplit());
}
if (other.getNumSplit() != 0) {
setNumSplit(other.getNumSplit());
}
if (other.getSplitLength() != 0) {
setSplitLength(other.getSplitLength());
}
if (other.getTotalLength() != 0) {
setTotalLength(other.getTotalLength());
}
if (!other.intersection_.isEmpty()) {
if (intersection_.isEmpty()) {
intersection_ = other.intersection_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIntersectionIsMutable();
intersection_.addAll(other.intersection_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object taskId_ = "";
/**
* string task_id = 1;
* @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_id = 1;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_id = 1;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* string task_id = 1;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
* string task_id = 1;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
* .SIGNAL status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .SIGNAL status = 2;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
* .SIGNAL status = 2;
* @return The status.
*/
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL getStatus() {
@SuppressWarnings("deprecation")
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL result = com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.valueOf(status_);
return result == null ? com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL.UNRECOGNIZED : result;
}
/**
* .SIGNAL status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.SIGNAL value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .SIGNAL status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private int split_ ;
/**
* int32 split = 3;
* @return The split.
*/
@java.lang.Override
public int getSplit() {
return split_;
}
/**
* int32 split = 3;
* @param value The split to set.
* @return This builder for chaining.
*/
public Builder setSplit(int value) {
split_ = value;
onChanged();
return this;
}
/**
* int32 split = 3;
* @return This builder for chaining.
*/
public Builder clearSplit() {
split_ = 0;
onChanged();
return this;
}
private int numSplit_ ;
/**
* int32 num_split = 4;
* @return The numSplit.
*/
@java.lang.Override
public int getNumSplit() {
return numSplit_;
}
/**
* int32 num_split = 4;
* @param value The numSplit to set.
* @return This builder for chaining.
*/
public Builder setNumSplit(int value) {
numSplit_ = value;
onChanged();
return this;
}
/**
* int32 num_split = 4;
* @return This builder for chaining.
*/
public Builder clearNumSplit() {
numSplit_ = 0;
onChanged();
return this;
}
private int splitLength_ ;
/**
* int32 split_length = 5;
* @return The splitLength.
*/
@java.lang.Override
public int getSplitLength() {
return splitLength_;
}
/**
* int32 split_length = 5;
* @param value The splitLength to set.
* @return This builder for chaining.
*/
public Builder setSplitLength(int value) {
splitLength_ = value;
onChanged();
return this;
}
/**
* int32 split_length = 5;
* @return This builder for chaining.
*/
public Builder clearSplitLength() {
splitLength_ = 0;
onChanged();
return this;
}
private int totalLength_ ;
/**
* int32 total_length = 6;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
/**
* int32 total_length = 6;
* @param value The totalLength to set.
* @return This builder for chaining.
*/
public Builder setTotalLength(int value) {
totalLength_ = value;
onChanged();
return this;
}
/**
* int32 total_length = 6;
* @return This builder for chaining.
*/
public Builder clearTotalLength() {
totalLength_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList intersection_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIntersectionIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
intersection_ = new com.google.protobuf.LazyStringArrayList(intersection_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string intersection = 7;
* @return A list containing the intersection.
*/
public com.google.protobuf.ProtocolStringList
getIntersectionList() {
return intersection_.getUnmodifiableView();
}
/**
* repeated string intersection = 7;
* @return The count of intersection.
*/
public int getIntersectionCount() {
return intersection_.size();
}
/**
* repeated string intersection = 7;
* @param index The index of the element to return.
* @return The intersection at the given index.
*/
public java.lang.String getIntersection(int index) {
return intersection_.get(index);
}
/**
* repeated string intersection = 7;
* @param index The index of the value to return.
* @return The bytes of the intersection at the given index.
*/
public com.google.protobuf.ByteString
getIntersectionBytes(int index) {
return intersection_.getByteString(index);
}
/**
* repeated string intersection = 7;
* @param index The index to set the value at.
* @param value The intersection to set.
* @return This builder for chaining.
*/
public Builder setIntersection(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntersectionIsMutable();
intersection_.set(index, value);
onChanged();
return this;
}
/**
* repeated string intersection = 7;
* @param value The intersection to add.
* @return This builder for chaining.
*/
public Builder addIntersection(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIntersectionIsMutable();
intersection_.add(value);
onChanged();
return this;
}
/**
* repeated string intersection = 7;
* @param values The intersection to add.
* @return This builder for chaining.
*/
public Builder addAllIntersection(
java.lang.Iterable values) {
ensureIntersectionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intersection_);
onChanged();
return this;
}
/**
* repeated string intersection = 7;
* @return This builder for chaining.
*/
public Builder clearIntersection() {
intersection_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string intersection = 7;
* @param value The bytes of the intersection to add.
* @return This builder for chaining.
*/
public Builder addIntersectionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIntersectionIsMutable();
intersection_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:DownloadIntersectionResponse)
}
// @@protoc_insertion_point(class_scope:DownloadIntersectionResponse)
private static final com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse();
}
public static com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DownloadIntersectionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DownloadIntersectionResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.intel.analytics.bigdl.ppml.fl.generated.PSIServiceProto.DownloadIntersectionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_SaltRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_SaltRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_SaltReply_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_SaltReply_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_UploadSetRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_UploadSetRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_UploadSetResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_UploadSetResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_DownloadIntersectionRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_DownloadIntersectionRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_DownloadIntersectionResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_DownloadIntersectionResponse_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\021psi_service.proto\032\rfl_base.proto\"G\n\013Sa" +
"ltRequest\022\017\n\007task_id\030\001 \001(\t\022\022\n\nclient_num" +
"\030\002 \001(\005\022\023\n\013secure_code\030\003 \001(\t\"\037\n\tSaltReply" +
"\022\022\n\nsalt_reply\030\001 \001(\t\"\226\001\n\020UploadSetReques" +
"t\022\017\n\007task_id\030\001 \001(\t\022\021\n\tclient_id\030\002 \001(\005\022\r\n" +
"\005split\030\003 \001(\005\022\021\n\tnum_split\030\004 \001(\005\022\024\n\014split" +
"_length\030\005 \001(\005\022\024\n\014total_length\030\006 \001(\005\022\020\n\010h" +
"ashedID\030\007 \003(\t\"=\n\021UploadSetResponse\022\017\n\007ta" +
"sk_id\030\001 \001(\t\022\027\n\006status\030\002 \001(\0162\007.SIGNAL\"=\n\033" +
"DownloadIntersectionRequest\022\017\n\007task_id\030\001" +
" \001(\t\022\r\n\005split\030\002 \001(\005\"\254\001\n\034DownloadIntersec" +
"tionResponse\022\017\n\007task_id\030\001 \001(\t\022\027\n\006status\030" +
"\002 \001(\0162\007.SIGNAL\022\r\n\005split\030\003 \001(\005\022\021\n\tnum_spl" +
"it\030\004 \001(\005\022\024\n\014split_length\030\005 \001(\005\022\024\n\014total_" +
"length\030\006 \001(\005\022\024\n\014intersection\030\007 \003(\t2\300\001\n\nP" +
"SIService\022%\n\007getSalt\022\014.SaltRequest\032\n.Sal" +
"tReply\"\000\0224\n\tuploadSet\022\021.UploadSetRequest" +
"\032\022.UploadSetResponse\"\000\022U\n\024downloadInters" +
"ection\022\034.DownloadIntersectionRequest\032\035.D" +
"ownloadIntersectionResponse\"\000B>\n+com.int" +
"el.analytics.bigdl.ppml.fl.generatedB\017PS" +
"IServiceProtob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.getDescriptor(),
});
internal_static_SaltRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_SaltRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SaltRequest_descriptor,
new java.lang.String[] { "TaskId", "ClientNum", "SecureCode", });
internal_static_SaltReply_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_SaltReply_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SaltReply_descriptor,
new java.lang.String[] { "SaltReply", });
internal_static_UploadSetRequest_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_UploadSetRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UploadSetRequest_descriptor,
new java.lang.String[] { "TaskId", "ClientId", "Split", "NumSplit", "SplitLength", "TotalLength", "HashedID", });
internal_static_UploadSetResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_UploadSetResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_UploadSetResponse_descriptor,
new java.lang.String[] { "TaskId", "Status", });
internal_static_DownloadIntersectionRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_DownloadIntersectionRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_DownloadIntersectionRequest_descriptor,
new java.lang.String[] { "TaskId", "Split", });
internal_static_DownloadIntersectionResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_DownloadIntersectionResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_DownloadIntersectionResponse_descriptor,
new java.lang.String[] { "TaskId", "Status", "Split", "NumSplit", "SplitLength", "TotalLength", "Intersection", });
com.intel.analytics.bigdl.ppml.fl.generated.FlBaseProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy