Commit 1c851f63 authored by Vít Kabele's avatar Vít Kabele

Removed the redundant code property from `SessionInitRequest`

parent e8bb5cb9
Pipeline #3508 passed with stages
in 3 minutes and 4 seconds
......@@ -396,11 +396,6 @@ public final class Protocol {
public interface SessionInitRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:SessionInitRequest)
com.google.protobuf.MessageLiteOrBuilder {
/**
* <code>optional int32 code = 1;</code>
*/
int getCode();
}
/**
* <pre>
......@@ -418,34 +413,8 @@ public final class Protocol {
SessionInitRequestOrBuilder {
private SessionInitRequest() {
}
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* <code>optional int32 code = 1;</code>
*/
public int getCode() {
return code_;
}
/**
* <code>optional int32 code = 1;</code>
*/
private void setCode(int value) {
code_ = value;
}
/**
* <code>optional int32 code = 1;</code>
*/
private void clearCode() {
code_ = 0;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (code_ != 0) {
output.writeInt32(1, code_);
}
}
public int getSerializedSize() {
......@@ -453,10 +422,6 @@ public final class Protocol {
if (size != -1) return size;
size = 0;
if (code_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, code_);
}
memoizedSerializedSize = size;
return size;
}
......@@ -549,29 +514,6 @@ public final class Protocol {
}
/**
* <code>optional int32 code = 1;</code>
*/
public int getCode() {
return instance.getCode();
}
/**
* <code>optional int32 code = 1;</code>
*/
public Builder setCode(int value) {
copyOnWrite();
instance.setCode(value);
return this;
}
/**
* <code>optional int32 code = 1;</code>
*/
public Builder clearCode() {
copyOnWrite();
instance.clearCode();
return this;
}
// @@protoc_insertion_point(builder_scope:SessionInitRequest)
}
protected final Object dynamicMethod(
......@@ -593,8 +535,6 @@ public final class Protocol {
case VISIT: {
Visitor visitor = (Visitor) arg0;
ch.usi.dag.dislserver.Protocol.SessionInitRequest other = (ch.usi.dag.dislserver.Protocol.SessionInitRequest) arg1;
code_ = visitor.visitInt(code_ != 0, code_,
other.code_ != 0, other.code_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
......@@ -619,11 +559,6 @@ public final class Protocol {
}
break;
}
case 8: {
code_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
......
......@@ -508,29 +508,9 @@ const ProtobufCMessageDescriptor error__descriptor =
(ProtobufCMessageInit) error__init,
NULL,NULL,NULL /* reserved[123] */
};
static const ProtobufCFieldDescriptor session_init_request__field_descriptors[1] =
{
{
"code",
1,
PROTOBUF_C_LABEL_NONE,
PROTOBUF_C_TYPE_INT32,
0, /* quantifier_offset */
offsetof(SessionInitRequest, code),
NULL,
NULL,
0, /* flags */
0,NULL,NULL /* reserved1,reserved2, etc */
},
};
static const unsigned session_init_request__field_indices_by_name[] = {
0, /* field[0] = code */
};
static const ProtobufCIntRange session_init_request__number_ranges[1 + 1] =
{
{ 1, 0 },
{ 0, 1 }
};
#define session_init_request__field_descriptors NULL
#define session_init_request__field_indices_by_name NULL
#define session_init_request__number_ranges NULL
const ProtobufCMessageDescriptor session_init_request__descriptor =
{
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
......@@ -539,10 +519,10 @@ const ProtobufCMessageDescriptor session_init_request__descriptor =
"SessionInitRequest",
"",
sizeof(SessionInitRequest),
1,
0,
session_init_request__field_descriptors,
session_init_request__field_indices_by_name,
1, session_init_request__number_ranges,
0, session_init_request__number_ranges,
(ProtobufCMessageInit) session_init_request__init,
NULL,NULL,NULL /* reserved[123] */
};
......
......@@ -64,11 +64,10 @@ struct _Error
struct _SessionInitRequest
{
ProtobufCMessage base;
int32_t code;
};
#define SESSION_INIT_REQUEST__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&session_init_request__descriptor) \
, 0 }
}
/*
......
......@@ -158,7 +158,6 @@ session_start(char * restrict options) {
SessionInitRequest req = SESSION_INIT_REQUEST__INIT;
message.request_case = CLIENT_MESSAGE__REQUEST_SESSION_INIT_REQUEST;
message.session_init_request = &req;
message.session_init_request->code = 42;
send_client_message(message, conn);
......
......@@ -13,9 +13,7 @@ message Error {
// Request server to initialize session
// This is sent as the clients first message
// May contain some additional data to describe the client (JVM version etc.)
message SessionInitRequest {
int32 code = 1;
}
message SessionInitRequest {}
// This is the response to SessionInitRequest message
// The request could either be ACCEPTed or DENYed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment