diff --git a/tugraph/.gitignore b/tugraph/.gitignore new file mode 100644 index 0000000..d93971e --- /dev/null +++ b/tugraph/.gitignore @@ -0,0 +1 @@ +src/main/java/lgraph/ \ No newline at end of file diff --git a/tugraph/data/import.conf b/tugraph/data/import.conf index 0659002..72e793e 100644 --- a/tugraph/data/import.conf +++ b/tugraph/data/import.conf @@ -217,8 +217,8 @@ { "label": "transfer", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -253,8 +253,8 @@ { "label": "withdraw", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -269,8 +269,8 @@ { "label": "repay", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -285,8 +285,8 @@ { "label": "deposit", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -301,8 +301,8 @@ { "label": "signIn", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -318,8 +318,8 @@ { "label": "invest", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -334,8 +334,8 @@ { "label": "apply", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", @@ -351,8 +351,8 @@ { "label": "guarantee", "type": "EDGE", - "tid": "timestamp", - "tid_order": "desc", + "temporal": "timestamp", + "temporal_order": "DESC", "properties": [ { "name": "timestamp", diff --git a/tugraph/pom.xml b/tugraph/pom.xml index 3903a20..8fdcf76 100644 --- a/tugraph/pom.xml +++ b/tugraph/pom.xml @@ -23,7 +23,7 @@ 3.6.1 2.2.1 2.9.1 - 3.6.0 + 3.11.4 1.8 @@ -208,9 +208,8 @@ run - 3.6.0 + com.google.protobuf:protoc:3.21.1 none - true src/main/java src/main/proto diff --git a/tugraph/procedures/cpp/install.py b/tugraph/procedures/cpp/install.py index f6741cf..2575086 100644 --- a/tugraph/procedures/cpp/install.py +++ b/tugraph/procedures/cpp/install.py @@ -21,10 +21,11 @@ print(r.content) data = {'name':'%s' % plugin_name} -content = open('%s.so' % plugin_name, 'rb').read() +content = open('%s.cpp' % plugin_name, 'rb').read() data['code_base64'] = base64.b64encode(content).decode() data['description'] = '%s' % plugin_name data['read_only'] = read_only +data['code_type'] = 'cpp' js = json.dumps(data) r = requests.post(url='http://%s/db/default/cpp_plugin' % endpoint, data=js, headers={'Content-Type':'application/json', 'Authorization':'Bearer %s' % jwt}) print(r.status_code) diff --git a/tugraph/procedures/cpp/tcr8.cpp b/tugraph/procedures/cpp/tcr8.cpp index d7afe26..ea0a274 100644 --- a/tugraph/procedures/cpp/tcr8.cpp +++ b/tugraph/procedures/cpp/tcr8.cpp @@ -156,9 +156,9 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re for (auto deposit = LabeledOutEdgeIterator(loan.GetOutEdgeIterator(), loan.GetId(), 0, deposit_id, limit); deposit.IsValid(); deposit.Next()) { - auto ts = deposit.Eit().GetField(TIMESTAMP).AsInt64(); + auto timestamp = deposit.Eit().GetField(TIMESTAMP).AsInt64(); auto amount = deposit.Eit().GetField(AMOUNT).AsDouble(); - if (ts > start_time && ts < end_time) { + if (timestamp > start_time && timestamp < end_time) { auto dst = deposit.Eit().GetDst(); src_set.emplace(dst); add_amount(min_amount, dst, amount); @@ -170,10 +170,10 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re for (auto eit = LabeledOutEdgeIterator(vit.GetOutEdgeIterator(), vit.GetId(), 0, edge_label_ids, limit); eit.IsValid(); eit.Next()) { - auto ts = eit.Eit().GetField(TIMESTAMP).AsInt64(); + auto timestamp = eit.Eit().GetField(TIMESTAMP).AsInt64(); auto amount = eit.Eit().GetField(AMOUNT).AsDouble(); auto dst_vid = eit.Eit().GetDst(); - if (ts > start_time && ts < end_time) { + if (timestamp > start_time && timestamp < end_time) { add_amount(min_amount, dst_vid, amount); add_dst(merged_in, min_amount, dst_vid, vid, eit.Eit().GetUid().ToString(), amount, threshold, i); @@ -208,12 +208,11 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re lgraph_api::Result api_result( {{"i", LGraphType::INTEGER}, {"r", LGraphType::DOUBLE}, {"d", LGraphType::INTEGER}}); for (auto& item : result) { - auto& r = api_result.NewRecord(); - r.Insert("i", FieldData::Int64(std::get<2>(item))); - r.Insert("r", FieldData::Double(std::get<0>(item))); - r.Insert("d", FieldData::Int64(std::get<1>(item))); + auto r = api_result.MutableRecord(); + r->Insert("i", FieldData::Int64(std::get<2>(item))); + r->Insert("r", FieldData::Double(std::get<0>(item))); + r->Insert("d", FieldData::Int64(std::get<1>(item))); } response = api_result.Dump(); return true; } - diff --git a/tugraph/procedures/cpp/trw1.cpp b/tugraph/procedures/cpp/trw1.cpp index 3d47b29..ca39468 100644 --- a/tugraph/procedures/cpp/trw1.cpp +++ b/tugraph/procedures/cpp/trw1.cpp @@ -95,8 +95,8 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re static const std::string TRANSFER_TIMESTAMP = "timestamp"; static const std::vector TRANSFER_FIELD_NAMES = {"timestamp", "amount"}; lgraph_api::Result api_result({{"msg", LGraphType::STRING}, {"txn", LGraphType::STRING}}); - auto& record = api_result.NewRecord(); - record.Insert("txn", FieldData::String("abort")); + auto record = api_result.MutableRecord(); + record->Insert("txn", FieldData::String("abort")); int64_t src_id, dst_id, time, amt, start_time, end_time; int64_t limit = -1; try { @@ -109,7 +109,7 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re parse_from_json(end_time, "endTime", input); parse_from_json(limit, "limit", input); } catch (std::exception& e) { - record.Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); + record->Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); response = api_result.Dump(); return false; } @@ -120,13 +120,13 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re (int16_t)txn.GetEdgeLabelId(TRANSFER_LABEL), }; if (!src.IsValid() || !dst.IsValid()) { - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); txn.Abort(); return false; } if (src.GetField(ACCOUNT_ISBLOCKED).AsBool() || dst.GetField(ACCOUNT_ISBLOCKED).AsBool()) { - record.Insert("msg", FieldData::String("src/dst is blocked")); + record->Insert("msg", FieldData::String("src/dst is blocked")); response = api_result.Dump(); txn.Abort(); return true; @@ -138,14 +138,14 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re for (auto src_eit = LabeledInEdgeIterator(src.GetInEdgeIterator(), 0, src.GetId(), transfer_id, limit); src_eit.IsValid(); src_eit.Next()) { - auto ts = src_eit.Eit().GetField(TRANSFER_TIMESTAMP); - if (ts.AsInt64() > start_time && ts.AsInt64() < end_time) { + auto timestamp = src_eit.Eit().GetField(TRANSFER_TIMESTAMP); + if (timestamp.AsInt64() > start_time && timestamp.AsInt64() < end_time) { src_in.emplace(src_eit.Eit().GetSrc()); } } if (src_in.empty()) { - record.Insert("msg", FieldData::String("not detected")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("not detected")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; @@ -153,16 +153,16 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re for (auto dst_eit = LabeledOutEdgeIterator(dst.GetOutEdgeIterator(), dst.GetId(), 0, transfer_id, limit); dst_eit.IsValid(); dst_eit.Next()) { - auto ts = dst_eit.Eit().GetField(TRANSFER_TIMESTAMP); - if (ts.AsInt64() > start_time && ts.AsInt64() < end_time && + auto timestamp = dst_eit.Eit().GetField(TRANSFER_TIMESTAMP); + if (timestamp.AsInt64() > start_time && timestamp.AsInt64() < end_time && src_in.find(dst_eit.Eit().GetDst()) != src_in.end()) { txn.Abort(); break; } } if (txn.IsValid()) { - record.Insert("msg", FieldData::String("not detected")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("not detected")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; @@ -172,16 +172,15 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re dst = txn.GetVertexByUniqueIndex(ACCOUNT_LABEL, ACCOUNT_ID, FieldData(dst_id)); if (!src.IsValid() || !dst.IsValid()) { txn.Abort(); - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); return false; } src.SetField(ACCOUNT_ISBLOCKED, FieldData(true)); dst.SetField(ACCOUNT_ISBLOCKED, FieldData(true)); - record.Insert("msg", FieldData::String("block src/dst")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("block src/dst")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; } - diff --git a/tugraph/procedures/cpp/trw2.cpp b/tugraph/procedures/cpp/trw2.cpp index 7e0d160..f9b4c2e 100644 --- a/tugraph/procedures/cpp/trw2.cpp +++ b/tugraph/procedures/cpp/trw2.cpp @@ -28,9 +28,9 @@ using json = nlohmann::json; #define COUNT_TRANSFER(eit) \ count = 0; \ while (eit.IsValid()) { \ - auto ts = eit.Eit().GetField(TRANSFER_TIMESTAMP); \ + auto timestamp = eit.Eit().GetField(TRANSFER_TIMESTAMP); \ auto amount = eit.Eit().GetField(TRANSFER_AMOUNT); \ - if (ts.AsInt64() > start_time && ts.AsInt64() < end_time && \ + if (timestamp.AsInt64() > start_time && timestamp.AsInt64() < end_time && \ amount.AsDouble() > threshold) { \ count += 1; \ break; \ @@ -38,8 +38,8 @@ using json = nlohmann::json; eit.Next(); \ } \ if (count == 0) { \ - record.Insert("msg", FieldData::String("not detected")); \ - record.Insert("txn", FieldData::String("commit")); \ + record->Insert("msg", FieldData::String("not detected")); \ + record->Insert("txn", FieldData::String("commit")); \ response = api_result.Dump(); \ txn.Commit(); \ return true; \ @@ -118,8 +118,8 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re static const std::string TRANSFER_AMOUNT = "amount"; static const std::vector TRANSFER_FIELD_NAMES = {"timestamp", "amount"}; lgraph_api::Result api_result({{"msg", LGraphType::STRING}, {"txn", LGraphType::STRING}}); - auto& record = api_result.NewRecord(); - record.Insert("txn", FieldData::String("abort")); + auto record = api_result.MutableRecord(); + record->Insert("txn", FieldData::String("abort")); int64_t src_id, dst_id, time, start_time, end_time; int64_t limit = -1; double amt, threshold; @@ -134,7 +134,7 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re parse_from_json(end_time, "endTime", input); parse_from_json(limit, "limit", input); } catch (std::exception& e) { - record.Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); + record->Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); response = api_result.Dump(); return false; } @@ -142,13 +142,13 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re auto src = txn.GetVertexByUniqueIndex(ACCOUNT_LABEL, ACCOUNT_ID, FieldData(src_id)); auto dst = txn.GetVertexByUniqueIndex(ACCOUNT_LABEL, ACCOUNT_ID, FieldData(dst_id)); if (!src.IsValid() || !dst.IsValid()) { - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); txn.Abort(); return false; } if (src.GetField(ACCOUNT_ISBLOCKED).AsBool() || dst.GetField(ACCOUNT_ISBLOCKED).AsBool()) { - record.Insert("msg", FieldData::String("src/dst is blocked")); + record->Insert("msg", FieldData::String("src/dst is blocked")); response = api_result.Dump(); txn.Abort(); return true; @@ -180,16 +180,15 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re dst = txn.GetVertexByUniqueIndex(ACCOUNT_LABEL, ACCOUNT_ID, FieldData(dst_id)); if (!src.IsValid() || !dst.IsValid()) { txn.Abort(); - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); return false; } src.SetField(ACCOUNT_ISBLOCKED, FieldData(true)); dst.SetField(ACCOUNT_ISBLOCKED, FieldData(true)); - record.Insert("msg", FieldData::String("block src/dst")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("block src/dst")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; } - diff --git a/tugraph/procedures/cpp/trw3.cpp b/tugraph/procedures/cpp/trw3.cpp index 726589d..e67f948 100644 --- a/tugraph/procedures/cpp/trw3.cpp +++ b/tugraph/procedures/cpp/trw3.cpp @@ -97,8 +97,8 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re static const std::vector GUARANTEE_FIELD_NAMES = {"timestamp"}; static const std::string APPLY_LABEL = "apply"; lgraph_api::Result api_result({{"msg", LGraphType::STRING}, {"txn", LGraphType::STRING}}); - auto& record = api_result.NewRecord(); - record.Insert("txn", FieldData::String("abort")); + auto record = api_result.MutableRecord(); + record->Insert("txn", FieldData::String("abort")); int64_t src_id, dst_id, time, threshold, start_time, end_time; int64_t limit = -1; try { @@ -111,7 +111,7 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re parse_from_json(end_time, "endTime", input); parse_from_json(limit, "limit", input); } catch (std::exception& e) { - record.Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); + record->Insert("msg", FieldData::String("json parse error: " + std::string(e.what()))); response = api_result.Dump(); return false; } @@ -126,13 +126,13 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re }; if (!src.IsValid() || !dst.IsValid()) { - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); txn.Abort(); return false; } if (src.GetField(PERSON_ISBLOCKED).AsBool() || dst.GetField(PERSON_ISBLOCKED).AsBool()) { - record.Insert("msg", FieldData::String("src/dst is blocked")); + record->Insert("msg", FieldData::String("src/dst is blocked")); response = api_result.Dump(); txn.Abort(); return true; @@ -148,8 +148,8 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re for (auto eit = LabeledOutEdgeIterator(src.GetOutEdgeIterator(), src.GetId(), 0, guarantee_id, limit); eit.IsValid(); eit.Next()) { - auto ts = eit.Eit().GetField(GUARANTEE_TIMESTAMP).AsInt64(); - if (ts > start_time && ts < end_time && + auto timestamp = eit.Eit().GetField(GUARANTEE_TIMESTAMP).AsInt64(); + if (timestamp > start_time && timestamp < end_time && visited.find(eit.Eit().GetDst()) == visited.end()) { dst_set.emplace(eit.Eit().GetDst()); visited.emplace(eit.Eit().GetDst()); @@ -159,7 +159,6 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re swap(src_set, dst_set); dst_set.clear(); } - int64_t sum_loan; for (auto& vid : visited) { src.Goto(vid); for (auto eit = @@ -178,8 +177,8 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re } } if (txn.IsValid()) { - record.Insert("msg", FieldData::String("not detected")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("not detected")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; @@ -189,16 +188,15 @@ extern "C" bool Process(GraphDB& db, const std::string& request, std::string& re dst = txn.GetVertexByUniqueIndex(PERSON_LABEL, PERSON_ID, FieldData(dst_id)); if (!src.IsValid() || !dst.IsValid()) { txn.Abort(); - record.Insert("msg", FieldData::String("src/dst invalid")); + record->Insert("msg", FieldData::String("src/dst invalid")); response = api_result.Dump(); return false; } src.SetField(PERSON_ISBLOCKED, FieldData(true)); dst.SetField(PERSON_ISBLOCKED, FieldData(true)); - record.Insert("msg", FieldData::String("block src/dst")); - record.Insert("txn", FieldData::String("commit")); + record->Insert("msg", FieldData::String("block src/dst")); + record->Insert("txn", FieldData::String("commit")); response = api_result.Dump(); txn.Commit(); return true; } - diff --git a/tugraph/scripts/import_data.sh b/tugraph/scripts/import_data.sh index 0ec89ed..3cca38e 100644 --- a/tugraph/scripts/import_data.sh +++ b/tugraph/scripts/import_data.sh @@ -1,3 +1,3 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) cd $SCRIPT_DIR/../data/${1}/snapshot -lgraph_import -c ../../import.conf --overwrite 1 --dir /data/lgraph_db --delimiter "|" +lgraph_import -c ../../import.conf --overwrite 1 --dir /data/lgraph_db --delimiter "|" --v3 0 diff --git a/tugraph/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClient.java b/tugraph/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClient.java index ed9bbd2..8d082f4 100644 --- a/tugraph/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClient.java +++ b/tugraph/src/main/java/com/antgroup/tugraph/TuGraphDbRpcClient.java @@ -60,21 +60,21 @@ public void stopClient() { } private String handleCypherRequest(String query, String graph, double timeout, long perNodeLimit) { - Lgraph.CypherRequest.Builder builder = Lgraph.CypherRequest.newBuilder(); - builder.setQuery(query).setResultInJsonFormat(true).setGraph(graph).setTimeout(timeout); + Lgraph.GraphQueryRequest.Builder builder = Lgraph.GraphQueryRequest.newBuilder(); + builder.setType(Lgraph.ProtoGraphQueryType.CYPHER).setQuery(query).setResultInJsonFormat(true).setGraph(graph).setTimeout(timeout); if (perNodeLimit >= 0) { builder.setPerNodeLimit(perNodeLimit); } - Lgraph.CypherRequest cypherRequest = builder.build(); + Lgraph.GraphQueryRequest cypherRequest = builder.build(); Lgraph.LGraphRequest request = - Lgraph.LGraphRequest.newBuilder().setCypherRequest(cypherRequest).setToken(this.token) + Lgraph.LGraphRequest.newBuilder().setGraphQueryRequest(cypherRequest).setToken(this.token) .setClientVersion(serverVersion).build(); Lgraph.LGraphResponse response = tuGraphService.HandleRequest(request); if (response.getErrorCode().getNumber() != Lgraph.LGraphResponse.ErrorCode.SUCCESS_VALUE) { throw new TuGraphDbRpcException(response.getErrorCode(), response.getError(), "CallCypher"); } serverVersion = response.getServerVersion() > serverVersion ? response.getServerVersion() : serverVersion; - return response.getCypherResponse().getJsonResult(); + return response.getGraphQueryResponse().getJsonResult(); } // parse delimiter and process strings like \r \n \002 \0xA diff --git a/tugraph/src/main/java/lgraph/Lgraph.java b/tugraph/src/main/java/lgraph/Lgraph.java deleted file mode 100644 index 2263eb6..0000000 --- a/tugraph/src/main/java/lgraph/Lgraph.java +++ /dev/null @@ -1,106824 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: lgraph.proto - -package lgraph; - -public final class Lgraph { - private Lgraph() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code lgraph.ProtoFieldType} - */ - public enum ProtoFieldType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NUL = 0; - */ - NUL(0), - /** - * BOOL = 1; - */ - BOOL(1), - /** - * INT8 = 2; - */ - INT8(2), - /** - * INT16 = 3; - */ - INT16(3), - /** - * INT32 = 4; - */ - INT32(4), - /** - * INT64 = 5; - */ - INT64(5), - /** - * FLOAT = 6; - */ - FLOAT(6), - /** - * DOUBLE = 7; - */ - DOUBLE(7), - /** - * DATE = 8; - */ - DATE(8), - /** - * DATETIME = 9; - */ - DATETIME(9), - /** - * STRING = 10; - */ - STRING(10), - /** - * BLOB = 11; - */ - BLOB(11), - ; - - /** - * NUL = 0; - */ - public static final int NUL_VALUE = 0; - /** - * BOOL = 1; - */ - public static final int BOOL_VALUE = 1; - /** - * INT8 = 2; - */ - public static final int INT8_VALUE = 2; - /** - * INT16 = 3; - */ - public static final int INT16_VALUE = 3; - /** - * INT32 = 4; - */ - public static final int INT32_VALUE = 4; - /** - * INT64 = 5; - */ - public static final int INT64_VALUE = 5; - /** - * FLOAT = 6; - */ - public static final int FLOAT_VALUE = 6; - /** - * DOUBLE = 7; - */ - public static final int DOUBLE_VALUE = 7; - /** - * DATE = 8; - */ - public static final int DATE_VALUE = 8; - /** - * DATETIME = 9; - */ - public static final int DATETIME_VALUE = 9; - /** - * STRING = 10; - */ - public static final int STRING_VALUE = 10; - /** - * BLOB = 11; - */ - public static final int BLOB_VALUE = 11; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProtoFieldType valueOf(int value) { - return forNumber(value); - } - - public static ProtoFieldType forNumber(int value) { - switch (value) { - case 0: return NUL; - case 1: return BOOL; - case 2: return INT8; - case 3: return INT16; - case 4: return INT32; - case 5: return INT64; - case 6: return FLOAT; - case 7: return DOUBLE; - case 8: return DATE; - case 9: return DATETIME; - case 10: return STRING; - case 11: return BLOB; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProtoFieldType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProtoFieldType findValueByNumber(int number) { - return ProtoFieldType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.getDescriptor().getEnumTypes().get(0); - } - - private static final ProtoFieldType[] VALUES = values(); - - public static ProtoFieldType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProtoFieldType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.ProtoFieldType) - } - - /** - * Protobuf enum {@code lgraph.ProtoAccessLevel} - */ - public enum ProtoAccessLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * DO NOT change the value of the enums, we are relying on them
-     * 
- * - * NONE = 0; - */ - NONE(0), - /** - * READ_ONLY = 1; - */ - READ_ONLY(1), - /** - * READ_WRITE = 2; - */ - READ_WRITE(2), - /** - * FULL = 3; - */ - FULL(3), - ; - - /** - *
-     * DO NOT change the value of the enums, we are relying on them
-     * 
- * - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * READ_ONLY = 1; - */ - public static final int READ_ONLY_VALUE = 1; - /** - * READ_WRITE = 2; - */ - public static final int READ_WRITE_VALUE = 2; - /** - * FULL = 3; - */ - public static final int FULL_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProtoAccessLevel valueOf(int value) { - return forNumber(value); - } - - public static ProtoAccessLevel forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return READ_ONLY; - case 2: return READ_WRITE; - case 3: return FULL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProtoAccessLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProtoAccessLevel findValueByNumber(int number) { - return ProtoAccessLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.getDescriptor().getEnumTypes().get(1); - } - - private static final ProtoAccessLevel[] VALUES = values(); - - public static ProtoAccessLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProtoAccessLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.ProtoAccessLevel) - } - - /** - *
-   *--------------------------------
-   * heartbeat
-   *--------------------------------
-   * 
- * - * Protobuf enum {@code lgraph.NodeState} - */ - public enum NodeState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNINITIALIZED = 1; - */ - UNINITIALIZED(1), - /** - * LOADING_SNAPSHOT = 2; - */ - LOADING_SNAPSHOT(2), - /** - * REPLAYING_LOG = 3; - */ - REPLAYING_LOG(3), - /** - * JOINED_FOLLOW = 4; - */ - JOINED_FOLLOW(4), - /** - * JOINED_MASTER = 5; - */ - JOINED_MASTER(5), - /** - * OFFLINE = 6; - */ - OFFLINE(6), - ; - - /** - * UNINITIALIZED = 1; - */ - public static final int UNINITIALIZED_VALUE = 1; - /** - * LOADING_SNAPSHOT = 2; - */ - public static final int LOADING_SNAPSHOT_VALUE = 2; - /** - * REPLAYING_LOG = 3; - */ - public static final int REPLAYING_LOG_VALUE = 3; - /** - * JOINED_FOLLOW = 4; - */ - public static final int JOINED_FOLLOW_VALUE = 4; - /** - * JOINED_MASTER = 5; - */ - public static final int JOINED_MASTER_VALUE = 5; - /** - * OFFLINE = 6; - */ - public static final int OFFLINE_VALUE = 6; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NodeState valueOf(int value) { - return forNumber(value); - } - - public static NodeState forNumber(int value) { - switch (value) { - case 1: return UNINITIALIZED; - case 2: return LOADING_SNAPSHOT; - case 3: return REPLAYING_LOG; - case 4: return JOINED_FOLLOW; - case 5: return JOINED_MASTER; - case 6: return OFFLINE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NodeState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NodeState findValueByNumber(int number) { - return NodeState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.getDescriptor().getEnumTypes().get(2); - } - - private static final NodeState[] VALUES = values(); - - public static NodeState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private NodeState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.NodeState) - } - - /** - *
-   *--------------------------------
-   * audit_log
-   *--------------------------------
-   * 
- * - * Protobuf enum {@code lgraph.LogApiType} - */ - public enum LogApiType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SingleApi = 0; - */ - SingleApi(0), - /** - * Security = 1; - */ - Security(1), - /** - * Plugin = 2; - */ - Plugin(2), - /** - * Cypher = 3; - */ - Cypher(3), - ; - - /** - * SingleApi = 0; - */ - public static final int SingleApi_VALUE = 0; - /** - * Security = 1; - */ - public static final int Security_VALUE = 1; - /** - * Plugin = 2; - */ - public static final int Plugin_VALUE = 2; - /** - * Cypher = 3; - */ - public static final int Cypher_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogApiType valueOf(int value) { - return forNumber(value); - } - - public static LogApiType forNumber(int value) { - switch (value) { - case 0: return SingleApi; - case 1: return Security; - case 2: return Plugin; - case 3: return Cypher; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogApiType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogApiType findValueByNumber(int number) { - return LogApiType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.getDescriptor().getEnumTypes().get(3); - } - - private static final LogApiType[] VALUES = values(); - - public static LogApiType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LogApiType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.LogApiType) - } - - public interface SnapshotOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.Snapshot) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 value = 1; - */ - boolean hasValue(); - /** - * required int64 value = 1; - */ - long getValue(); - } - /** - * Protobuf type {@code lgraph.Snapshot} - */ - public static final class Snapshot extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.Snapshot) - SnapshotOrBuilder { - private static final long serialVersionUID = 0L; - // Use Snapshot.newBuilder() to construct. - private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Snapshot() { - value_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Snapshot( - 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 8: { - bitField0_ |= 0x00000001; - value_ = input.readInt64(); - 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 lgraph.Lgraph.internal_static_lgraph_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Snapshot.class, lgraph.Lgraph.Snapshot.Builder.class); - } - - private int bitField0_; - public static final int VALUE_FIELD_NUMBER = 1; - private long value_; - /** - * required int64 value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 value = 1; - */ - public long getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasValue()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, value_); - } - 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 lgraph.Lgraph.Snapshot)) { - return super.equals(obj); - } - lgraph.Lgraph.Snapshot other = (lgraph.Lgraph.Snapshot) obj; - - boolean result = true; - result = result && (hasValue() == other.hasValue()); - if (hasValue()) { - result = result && (getValue() - == other.getValue()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getValue()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.Snapshot parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Snapshot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Snapshot parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Snapshot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Snapshot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Snapshot 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 lgraph.Lgraph.Snapshot parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Snapshot 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 lgraph.Lgraph.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Snapshot 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(lgraph.Lgraph.Snapshot 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 lgraph.Snapshot} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.Snapshot) - lgraph.Lgraph.SnapshotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_Snapshot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Snapshot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Snapshot.class, lgraph.Lgraph.Snapshot.Builder.class); - } - - // Construct using lgraph.Lgraph.Snapshot.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(); - value_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_Snapshot_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.Snapshot getDefaultInstanceForType() { - return lgraph.Lgraph.Snapshot.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.Snapshot build() { - lgraph.Lgraph.Snapshot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.Snapshot buildPartial() { - lgraph.Lgraph.Snapshot result = new lgraph.Lgraph.Snapshot(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.Snapshot) { - return mergeFrom((lgraph.Lgraph.Snapshot)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.Snapshot other) { - if (other == lgraph.Lgraph.Snapshot.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasValue()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.Snapshot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.Snapshot) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long value_ ; - /** - * required int64 value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 value = 1; - */ - public long getValue() { - return value_; - } - /** - * required int64 value = 1; - */ - public Builder setValue(long value) { - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - /** - * required int64 value = 1; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = 0L; - 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:lgraph.Snapshot) - } - - // @@protoc_insertion_point(class_scope:lgraph.Snapshot) - private static final lgraph.Lgraph.Snapshot DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.Snapshot(); - } - - public static lgraph.Lgraph.Snapshot getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(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 lgraph.Lgraph.Snapshot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoFieldDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoFieldData) - com.google.protobuf.MessageOrBuilder { - - /** - * optional bool boolean = 1; - */ - boolean hasBoolean(); - /** - * optional bool boolean = 1; - */ - boolean getBoolean(); - - /** - * optional int32 int8_ = 2; - */ - boolean hasInt8(); - /** - * optional int32 int8_ = 2; - */ - int getInt8(); - - /** - * optional int32 int16_ = 3; - */ - boolean hasInt16(); - /** - * optional int32 int16_ = 3; - */ - int getInt16(); - - /** - * optional int32 int32_ = 4; - */ - boolean hasInt32(); - /** - * optional int32 int32_ = 4; - */ - int getInt32(); - - /** - * optional int64 int64_ = 5; - */ - boolean hasInt64(); - /** - * optional int64 int64_ = 5; - */ - long getInt64(); - - /** - * optional float sp = 6; - */ - boolean hasSp(); - /** - * optional float sp = 6; - */ - float getSp(); - - /** - * optional double dp = 7; - */ - boolean hasDp(); - /** - * optional double dp = 7; - */ - double getDp(); - - /** - * optional int32 date = 8; - */ - boolean hasDate(); - /** - * optional int32 date = 8; - */ - int getDate(); - - /** - * optional int64 datetime = 9; - */ - boolean hasDatetime(); - /** - * optional int64 datetime = 9; - */ - long getDatetime(); - - /** - * optional string str = 10; - */ - boolean hasStr(); - /** - * optional string str = 10; - */ - java.lang.String getStr(); - /** - * optional string str = 10; - */ - com.google.protobuf.ByteString - getStrBytes(); - - /** - * optional bytes blob = 11; - */ - boolean hasBlob(); - /** - * optional bytes blob = 11; - */ - com.google.protobuf.ByteString getBlob(); - - public lgraph.Lgraph.ProtoFieldData.DataCase getDataCase(); - } - /** - * Protobuf type {@code lgraph.ProtoFieldData} - */ - public static final class ProtoFieldData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoFieldData) - ProtoFieldDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoFieldData.newBuilder() to construct. - private ProtoFieldData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoFieldData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoFieldData( - 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 8: { - dataCase_ = 1; - data_ = input.readBool(); - break; - } - case 16: { - dataCase_ = 2; - data_ = input.readInt32(); - break; - } - case 24: { - dataCase_ = 3; - data_ = input.readInt32(); - break; - } - case 32: { - dataCase_ = 4; - data_ = input.readInt32(); - break; - } - case 40: { - dataCase_ = 5; - data_ = input.readInt64(); - break; - } - case 53: { - dataCase_ = 6; - data_ = input.readFloat(); - break; - } - case 57: { - dataCase_ = 7; - data_ = input.readDouble(); - break; - } - case 64: { - dataCase_ = 8; - data_ = input.readInt32(); - break; - } - case 72: { - dataCase_ = 9; - data_ = input.readInt64(); - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - dataCase_ = 10; - data_ = bs; - break; - } - case 90: { - dataCase_ = 11; - data_ = input.readBytes(); - 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 lgraph.Lgraph.internal_static_lgraph_ProtoFieldData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoFieldData.class, lgraph.Lgraph.ProtoFieldData.Builder.class); - } - - private int bitField0_; - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite { - BOOLEAN(1), - INT8_(2), - INT16_(3), - INT32_(4), - INT64_(5), - SP(6), - DP(7), - DATE(8), - DATETIME(9), - STR(10), - BLOB(11), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return BOOLEAN; - case 2: return INT8_; - case 3: return INT16_; - case 4: return INT32_; - case 5: return INT64_; - case 6: return SP; - case 7: return DP; - case 8: return DATE; - case 9: return DATETIME; - case 10: return STR; - case 11: return BLOB; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int BOOLEAN_FIELD_NUMBER = 1; - /** - * optional bool boolean = 1; - */ - public boolean hasBoolean() { - return dataCase_ == 1; - } - /** - * optional bool boolean = 1; - */ - public boolean getBoolean() { - if (dataCase_ == 1) { - return (java.lang.Boolean) data_; - } - return false; - } - - public static final int INT8__FIELD_NUMBER = 2; - /** - * optional int32 int8_ = 2; - */ - public boolean hasInt8() { - return dataCase_ == 2; - } - /** - * optional int32 int8_ = 2; - */ - public int getInt8() { - if (dataCase_ == 2) { - return (java.lang.Integer) data_; - } - return 0; - } - - public static final int INT16__FIELD_NUMBER = 3; - /** - * optional int32 int16_ = 3; - */ - public boolean hasInt16() { - return dataCase_ == 3; - } - /** - * optional int32 int16_ = 3; - */ - public int getInt16() { - if (dataCase_ == 3) { - return (java.lang.Integer) data_; - } - return 0; - } - - public static final int INT32__FIELD_NUMBER = 4; - /** - * optional int32 int32_ = 4; - */ - public boolean hasInt32() { - return dataCase_ == 4; - } - /** - * optional int32 int32_ = 4; - */ - public int getInt32() { - if (dataCase_ == 4) { - return (java.lang.Integer) data_; - } - return 0; - } - - public static final int INT64__FIELD_NUMBER = 5; - /** - * optional int64 int64_ = 5; - */ - public boolean hasInt64() { - return dataCase_ == 5; - } - /** - * optional int64 int64_ = 5; - */ - public long getInt64() { - if (dataCase_ == 5) { - return (java.lang.Long) data_; - } - return 0L; - } - - public static final int SP_FIELD_NUMBER = 6; - /** - * optional float sp = 6; - */ - public boolean hasSp() { - return dataCase_ == 6; - } - /** - * optional float sp = 6; - */ - public float getSp() { - if (dataCase_ == 6) { - return (java.lang.Float) data_; - } - return 0F; - } - - public static final int DP_FIELD_NUMBER = 7; - /** - * optional double dp = 7; - */ - public boolean hasDp() { - return dataCase_ == 7; - } - /** - * optional double dp = 7; - */ - public double getDp() { - if (dataCase_ == 7) { - return (java.lang.Double) data_; - } - return 0D; - } - - public static final int DATE_FIELD_NUMBER = 8; - /** - * optional int32 date = 8; - */ - public boolean hasDate() { - return dataCase_ == 8; - } - /** - * optional int32 date = 8; - */ - public int getDate() { - if (dataCase_ == 8) { - return (java.lang.Integer) data_; - } - return 0; - } - - public static final int DATETIME_FIELD_NUMBER = 9; - /** - * optional int64 datetime = 9; - */ - public boolean hasDatetime() { - return dataCase_ == 9; - } - /** - * optional int64 datetime = 9; - */ - public long getDatetime() { - if (dataCase_ == 9) { - return (java.lang.Long) data_; - } - return 0L; - } - - public static final int STR_FIELD_NUMBER = 10; - /** - * optional string str = 10; - */ - public boolean hasStr() { - return dataCase_ == 10; - } - /** - * optional string str = 10; - */ - public java.lang.String getStr() { - java.lang.Object ref = ""; - if (dataCase_ == 10) { - ref = data_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (dataCase_ == 10)) { - data_ = s; - } - return s; - } - } - /** - * optional string str = 10; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 10) { - ref = data_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 10) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BLOB_FIELD_NUMBER = 11; - /** - * optional bytes blob = 11; - */ - public boolean hasBlob() { - return dataCase_ == 11; - } - /** - * optional bytes blob = 11; - */ - public com.google.protobuf.ByteString getBlob() { - if (dataCase_ == 11) { - return (com.google.protobuf.ByteString) data_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - 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 (dataCase_ == 1) { - output.writeBool( - 1, (boolean)((java.lang.Boolean) data_)); - } - if (dataCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 3) { - output.writeInt32( - 3, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 4) { - output.writeInt32( - 4, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 5) { - output.writeInt64( - 5, (long)((java.lang.Long) data_)); - } - if (dataCase_ == 6) { - output.writeFloat( - 6, (float)((java.lang.Float) data_)); - } - if (dataCase_ == 7) { - output.writeDouble( - 7, (double)((java.lang.Double) data_)); - } - if (dataCase_ == 8) { - output.writeInt32( - 8, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 9) { - output.writeInt64( - 9, (long)((java.lang.Long) data_)); - } - if (dataCase_ == 10) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, data_); - } - if (dataCase_ == 11) { - output.writeBytes( - 11, (com.google.protobuf.ByteString) data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 1, (boolean)((java.lang.Boolean) data_)); - } - if (dataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 3, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 4, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 5, (long)((java.lang.Long) data_)); - } - if (dataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 6, (float)((java.lang.Float) data_)); - } - if (dataCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 7, (double)((java.lang.Double) data_)); - } - if (dataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 8, (int)((java.lang.Integer) data_)); - } - if (dataCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 9, (long)((java.lang.Long) data_)); - } - if (dataCase_ == 10) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, data_); - } - if (dataCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 11, (com.google.protobuf.ByteString) data_); - } - 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 lgraph.Lgraph.ProtoFieldData)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoFieldData other = (lgraph.Lgraph.ProtoFieldData) obj; - - boolean result = true; - result = result && getDataCase().equals( - other.getDataCase()); - if (!result) return false; - switch (dataCase_) { - case 1: - result = result && (getBoolean() - == other.getBoolean()); - break; - case 2: - result = result && (getInt8() - == other.getInt8()); - break; - case 3: - result = result && (getInt16() - == other.getInt16()); - break; - case 4: - result = result && (getInt32() - == other.getInt32()); - break; - case 5: - result = result && (getInt64() - == other.getInt64()); - break; - case 6: - result = result && ( - java.lang.Float.floatToIntBits(getSp()) - == java.lang.Float.floatToIntBits( - other.getSp())); - break; - case 7: - result = result && ( - java.lang.Double.doubleToLongBits(getDp()) - == java.lang.Double.doubleToLongBits( - other.getDp())); - break; - case 8: - result = result && (getDate() - == other.getDate()); - break; - case 9: - result = result && (getDatetime() - == other.getDatetime()); - break; - case 10: - result = result && getStr() - .equals(other.getStr()); - break; - case 11: - result = result && getBlob() - .equals(other.getBlob()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (dataCase_) { - case 1: - hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolean()); - break; - case 2: - hash = (37 * hash) + INT8__FIELD_NUMBER; - hash = (53 * hash) + getInt8(); - break; - case 3: - hash = (37 * hash) + INT16__FIELD_NUMBER; - hash = (53 * hash) + getInt16(); - break; - case 4: - hash = (37 * hash) + INT32__FIELD_NUMBER; - hash = (53 * hash) + getInt32(); - break; - case 5: - hash = (37 * hash) + INT64__FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64()); - break; - case 6: - hash = (37 * hash) + SP_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getSp()); - break; - case 7: - hash = (37 * hash) + DP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDp())); - break; - case 8: - hash = (37 * hash) + DATE_FIELD_NUMBER; - hash = (53 * hash) + getDate(); - break; - case 9: - hash = (37 * hash) + DATETIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDatetime()); - break; - case 10: - hash = (37 * hash) + STR_FIELD_NUMBER; - hash = (53 * hash) + getStr().hashCode(); - break; - case 11: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoFieldData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldData 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 lgraph.Lgraph.ProtoFieldData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldData 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 lgraph.Lgraph.ProtoFieldData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldData 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(lgraph.Lgraph.ProtoFieldData 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 lgraph.ProtoFieldData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoFieldData) - lgraph.Lgraph.ProtoFieldDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoFieldData.class, lgraph.Lgraph.ProtoFieldData.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoFieldData.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(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldData_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldData getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoFieldData.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldData build() { - lgraph.Lgraph.ProtoFieldData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldData buildPartial() { - lgraph.Lgraph.ProtoFieldData result = new lgraph.Lgraph.ProtoFieldData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (dataCase_ == 1) { - result.data_ = data_; - } - if (dataCase_ == 2) { - result.data_ = data_; - } - if (dataCase_ == 3) { - result.data_ = data_; - } - if (dataCase_ == 4) { - result.data_ = data_; - } - if (dataCase_ == 5) { - result.data_ = data_; - } - if (dataCase_ == 6) { - result.data_ = data_; - } - if (dataCase_ == 7) { - result.data_ = data_; - } - if (dataCase_ == 8) { - result.data_ = data_; - } - if (dataCase_ == 9) { - result.data_ = data_; - } - if (dataCase_ == 10) { - result.data_ = data_; - } - if (dataCase_ == 11) { - result.data_ = data_; - } - result.bitField0_ = to_bitField0_; - result.dataCase_ = dataCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoFieldData) { - return mergeFrom((lgraph.Lgraph.ProtoFieldData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoFieldData other) { - if (other == lgraph.Lgraph.ProtoFieldData.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case BOOLEAN: { - setBoolean(other.getBoolean()); - break; - } - case INT8_: { - setInt8(other.getInt8()); - break; - } - case INT16_: { - setInt16(other.getInt16()); - break; - } - case INT32_: { - setInt32(other.getInt32()); - break; - } - case INT64_: { - setInt64(other.getInt64()); - break; - } - case SP: { - setSp(other.getSp()); - break; - } - case DP: { - setDp(other.getDp()); - break; - } - case DATE: { - setDate(other.getDate()); - break; - } - case DATETIME: { - setDatetime(other.getDatetime()); - break; - } - case STR: { - dataCase_ = 10; - data_ = other.data_; - onChanged(); - break; - } - case BLOB: { - setBlob(other.getBlob()); - break; - } - case DATA_NOT_SET: { - break; - } - } - 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 { - lgraph.Lgraph.ProtoFieldData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoFieldData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * optional bool boolean = 1; - */ - public boolean hasBoolean() { - return dataCase_ == 1; - } - /** - * optional bool boolean = 1; - */ - public boolean getBoolean() { - if (dataCase_ == 1) { - return (java.lang.Boolean) data_; - } - return false; - } - /** - * optional bool boolean = 1; - */ - public Builder setBoolean(boolean value) { - dataCase_ = 1; - data_ = value; - onChanged(); - return this; - } - /** - * optional bool boolean = 1; - */ - public Builder clearBoolean() { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int32 int8_ = 2; - */ - public boolean hasInt8() { - return dataCase_ == 2; - } - /** - * optional int32 int8_ = 2; - */ - public int getInt8() { - if (dataCase_ == 2) { - return (java.lang.Integer) data_; - } - return 0; - } - /** - * optional int32 int8_ = 2; - */ - public Builder setInt8(int value) { - dataCase_ = 2; - data_ = value; - onChanged(); - return this; - } - /** - * optional int32 int8_ = 2; - */ - public Builder clearInt8() { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int32 int16_ = 3; - */ - public boolean hasInt16() { - return dataCase_ == 3; - } - /** - * optional int32 int16_ = 3; - */ - public int getInt16() { - if (dataCase_ == 3) { - return (java.lang.Integer) data_; - } - return 0; - } - /** - * optional int32 int16_ = 3; - */ - public Builder setInt16(int value) { - dataCase_ = 3; - data_ = value; - onChanged(); - return this; - } - /** - * optional int32 int16_ = 3; - */ - public Builder clearInt16() { - if (dataCase_ == 3) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int32 int32_ = 4; - */ - public boolean hasInt32() { - return dataCase_ == 4; - } - /** - * optional int32 int32_ = 4; - */ - public int getInt32() { - if (dataCase_ == 4) { - return (java.lang.Integer) data_; - } - return 0; - } - /** - * optional int32 int32_ = 4; - */ - public Builder setInt32(int value) { - dataCase_ = 4; - data_ = value; - onChanged(); - return this; - } - /** - * optional int32 int32_ = 4; - */ - public Builder clearInt32() { - if (dataCase_ == 4) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int64 int64_ = 5; - */ - public boolean hasInt64() { - return dataCase_ == 5; - } - /** - * optional int64 int64_ = 5; - */ - public long getInt64() { - if (dataCase_ == 5) { - return (java.lang.Long) data_; - } - return 0L; - } - /** - * optional int64 int64_ = 5; - */ - public Builder setInt64(long value) { - dataCase_ = 5; - data_ = value; - onChanged(); - return this; - } - /** - * optional int64 int64_ = 5; - */ - public Builder clearInt64() { - if (dataCase_ == 5) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional float sp = 6; - */ - public boolean hasSp() { - return dataCase_ == 6; - } - /** - * optional float sp = 6; - */ - public float getSp() { - if (dataCase_ == 6) { - return (java.lang.Float) data_; - } - return 0F; - } - /** - * optional float sp = 6; - */ - public Builder setSp(float value) { - dataCase_ = 6; - data_ = value; - onChanged(); - return this; - } - /** - * optional float sp = 6; - */ - public Builder clearSp() { - if (dataCase_ == 6) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional double dp = 7; - */ - public boolean hasDp() { - return dataCase_ == 7; - } - /** - * optional double dp = 7; - */ - public double getDp() { - if (dataCase_ == 7) { - return (java.lang.Double) data_; - } - return 0D; - } - /** - * optional double dp = 7; - */ - public Builder setDp(double value) { - dataCase_ = 7; - data_ = value; - onChanged(); - return this; - } - /** - * optional double dp = 7; - */ - public Builder clearDp() { - if (dataCase_ == 7) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int32 date = 8; - */ - public boolean hasDate() { - return dataCase_ == 8; - } - /** - * optional int32 date = 8; - */ - public int getDate() { - if (dataCase_ == 8) { - return (java.lang.Integer) data_; - } - return 0; - } - /** - * optional int32 date = 8; - */ - public Builder setDate(int value) { - dataCase_ = 8; - data_ = value; - onChanged(); - return this; - } - /** - * optional int32 date = 8; - */ - public Builder clearDate() { - if (dataCase_ == 8) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional int64 datetime = 9; - */ - public boolean hasDatetime() { - return dataCase_ == 9; - } - /** - * optional int64 datetime = 9; - */ - public long getDatetime() { - if (dataCase_ == 9) { - return (java.lang.Long) data_; - } - return 0L; - } - /** - * optional int64 datetime = 9; - */ - public Builder setDatetime(long value) { - dataCase_ = 9; - data_ = value; - onChanged(); - return this; - } - /** - * optional int64 datetime = 9; - */ - public Builder clearDatetime() { - if (dataCase_ == 9) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - - /** - * optional string str = 10; - */ - public boolean hasStr() { - return dataCase_ == 10; - } - /** - * optional string str = 10; - */ - public java.lang.String getStr() { - java.lang.Object ref = ""; - if (dataCase_ == 10) { - ref = data_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (dataCase_ == 10) { - if (bs.isValidUtf8()) { - data_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string str = 10; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 10) { - ref = data_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 10) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string str = 10; - */ - public Builder setStr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 10; - data_ = value; - onChanged(); - return this; - } - /** - * optional string str = 10; - */ - public Builder clearStr() { - if (dataCase_ == 10) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - /** - * optional string str = 10; - */ - public Builder setStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 10; - data_ = value; - onChanged(); - return this; - } - - /** - * optional bytes blob = 11; - */ - public boolean hasBlob() { - return dataCase_ == 11; - } - /** - * optional bytes blob = 11; - */ - public com.google.protobuf.ByteString getBlob() { - if (dataCase_ == 11) { - return (com.google.protobuf.ByteString) data_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * optional bytes blob = 11; - */ - public Builder setBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 11; - data_ = value; - onChanged(); - return this; - } - /** - * optional bytes blob = 11; - */ - public Builder clearBlob() { - if (dataCase_ == 11) { - dataCase_ = 0; - data_ = null; - 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:lgraph.ProtoFieldData) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoFieldData) - private static final lgraph.Lgraph.ProtoFieldData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoFieldData(); - } - - public static lgraph.Lgraph.ProtoFieldData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoFieldData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoFieldData(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 lgraph.Lgraph.ProtoFieldData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListOfProtoFieldDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListOfProtoFieldData) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - lgraph.Lgraph.ProtoFieldData getValues(int index); - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - int getValuesCount(); - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - java.util.List - getValuesOrBuilderList(); - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.ListOfProtoFieldData} - */ - public static final class ListOfProtoFieldData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListOfProtoFieldData) - ListOfProtoFieldDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListOfProtoFieldData.newBuilder() to construct. - private ListOfProtoFieldData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOfProtoFieldData() { - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListOfProtoFieldData( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add( - input.readMessage(lgraph.Lgraph.ProtoFieldData.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListOfProtoFieldData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListOfProtoFieldData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListOfProtoFieldData.class, lgraph.Lgraph.ListOfProtoFieldData.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private java.util.List values_; - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public java.util.List getValuesList() { - return values_; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldData getValues(int index) { - return values_.get(index); - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index) { - return values_.get(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 { - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(1, values_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); - } - 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 lgraph.Lgraph.ListOfProtoFieldData)) { - return super.equals(obj); - } - lgraph.Lgraph.ListOfProtoFieldData other = (lgraph.Lgraph.ListOfProtoFieldData) obj; - - boolean result = true; - result = result && getValuesList() - .equals(other.getValuesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfProtoFieldData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfProtoFieldData 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 lgraph.Lgraph.ListOfProtoFieldData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfProtoFieldData 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 lgraph.Lgraph.ListOfProtoFieldData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfProtoFieldData 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(lgraph.Lgraph.ListOfProtoFieldData 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 lgraph.ListOfProtoFieldData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListOfProtoFieldData) - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListOfProtoFieldData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListOfProtoFieldData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListOfProtoFieldData.class, lgraph.Lgraph.ListOfProtoFieldData.Builder.class); - } - - // Construct using lgraph.Lgraph.ListOfProtoFieldData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - valuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListOfProtoFieldData_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListOfProtoFieldData getDefaultInstanceForType() { - return lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListOfProtoFieldData build() { - lgraph.Lgraph.ListOfProtoFieldData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListOfProtoFieldData buildPartial() { - lgraph.Lgraph.ListOfProtoFieldData result = new lgraph.Lgraph.ListOfProtoFieldData(this); - int from_bitField0_ = bitField0_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListOfProtoFieldData) { - return mergeFrom((lgraph.Lgraph.ListOfProtoFieldData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListOfProtoFieldData other) { - if (other == lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) return this; - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - 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 { - lgraph.Lgraph.ListOfProtoFieldData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListOfProtoFieldData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> valuesBuilder_; - - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldData getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder setValues( - int index, lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder setValues( - int index, lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder addValues(lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder addValues( - int index, lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder addValues( - lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder addValues( - int index, lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldData.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldData.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - lgraph.Lgraph.ProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public lgraph.Lgraph.ProtoFieldData.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, lgraph.Lgraph.ProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldData values = 1; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder>( - values_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:lgraph.ListOfProtoFieldData) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListOfProtoFieldData) - private static final lgraph.Lgraph.ListOfProtoFieldData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListOfProtoFieldData(); - } - - public static lgraph.Lgraph.ListOfProtoFieldData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOfProtoFieldData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOfProtoFieldData(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 lgraph.Lgraph.ListOfProtoFieldData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoFieldSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoFieldSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required .lgraph.ProtoFieldType type = 2; - */ - boolean hasType(); - /** - * required .lgraph.ProtoFieldType type = 2; - */ - lgraph.Lgraph.ProtoFieldType getType(); - - /** - * required bool nullable = 3; - */ - boolean hasNullable(); - /** - * required bool nullable = 3; - */ - boolean getNullable(); - } - /** - * Protobuf type {@code lgraph.ProtoFieldSpec} - */ - public static final class ProtoFieldSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoFieldSpec) - ProtoFieldSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoFieldSpec.newBuilder() to construct. - private ProtoFieldSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoFieldSpec() { - name_ = ""; - type_ = 0; - nullable_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoFieldSpec( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 16: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.ProtoFieldType value = lgraph.Lgraph.ProtoFieldType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - nullable_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_ProtoFieldSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoFieldSpec.class, lgraph.Lgraph.ProtoFieldSpec.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public lgraph.Lgraph.ProtoFieldType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.ProtoFieldType result = lgraph.Lgraph.ProtoFieldType.valueOf(type_); - return result == null ? lgraph.Lgraph.ProtoFieldType.NUL : result; - } - - public static final int NULLABLE_FIELD_NUMBER = 3; - private boolean nullable_; - /** - * required bool nullable = 3; - */ - public boolean hasNullable() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool nullable = 3; - */ - public boolean getNullable() { - return nullable_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNullable()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, nullable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, nullable_); - } - 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 lgraph.Lgraph.ProtoFieldSpec)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoFieldSpec other = (lgraph.Lgraph.ProtoFieldSpec) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && type_ == other.type_; - } - result = result && (hasNullable() == other.hasNullable()); - if (hasNullable()) { - result = result && (getNullable() - == other.getNullable()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasNullable()) { - hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoFieldSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoFieldSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldSpec 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 lgraph.Lgraph.ProtoFieldSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldSpec 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 lgraph.Lgraph.ProtoFieldSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoFieldSpec 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(lgraph.Lgraph.ProtoFieldSpec 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 lgraph.ProtoFieldSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoFieldSpec) - lgraph.Lgraph.ProtoFieldSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoFieldSpec.class, lgraph.Lgraph.ProtoFieldSpec.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoFieldSpec.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - nullable_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoFieldSpec_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldSpec getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldSpec build() { - lgraph.Lgraph.ProtoFieldSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoFieldSpec buildPartial() { - lgraph.Lgraph.ProtoFieldSpec result = new lgraph.Lgraph.ProtoFieldSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.nullable_ = nullable_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoFieldSpec) { - return mergeFrom((lgraph.Lgraph.ProtoFieldSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoFieldSpec other) { - if (other == lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasNullable()) { - setNullable(other.getNullable()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasType()) { - return false; - } - if (!hasNullable()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ProtoFieldSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoFieldSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public lgraph.Lgraph.ProtoFieldType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.ProtoFieldType result = lgraph.Lgraph.ProtoFieldType.valueOf(type_); - return result == null ? lgraph.Lgraph.ProtoFieldType.NUL : result; - } - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public Builder setType(lgraph.Lgraph.ProtoFieldType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .lgraph.ProtoFieldType type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = 0; - onChanged(); - return this; - } - - private boolean nullable_ ; - /** - * required bool nullable = 3; - */ - public boolean hasNullable() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool nullable = 3; - */ - public boolean getNullable() { - return nullable_; - } - /** - * required bool nullable = 3; - */ - public Builder setNullable(boolean value) { - bitField0_ |= 0x00000004; - nullable_ = value; - onChanged(); - return this; - } - /** - * required bool nullable = 3; - */ - public Builder clearNullable() { - bitField0_ = (bitField0_ & ~0x00000004); - nullable_ = false; - 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:lgraph.ProtoFieldSpec) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoFieldSpec) - private static final lgraph.Lgraph.ProtoFieldSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoFieldSpec(); - } - - public static lgraph.Lgraph.ProtoFieldSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoFieldSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoFieldSpec(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 lgraph.Lgraph.ProtoFieldSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoIndexSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoIndexSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * required string label = 1; - */ - boolean hasLabel(); - /** - * required string label = 1; - */ - java.lang.String getLabel(); - /** - * required string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * required string field = 2; - */ - boolean hasField(); - /** - * required string field = 2; - */ - java.lang.String getField(); - /** - * required string field = 2; - */ - com.google.protobuf.ByteString - getFieldBytes(); - - /** - * required bool unique = 3; - */ - boolean hasUnique(); - /** - * required bool unique = 3; - */ - boolean getUnique(); - } - /** - * Protobuf type {@code lgraph.ProtoIndexSpec} - */ - public static final class ProtoIndexSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoIndexSpec) - ProtoIndexSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoIndexSpec.newBuilder() to construct. - private ProtoIndexSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoIndexSpec() { - label_ = ""; - field_ = ""; - unique_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoIndexSpec( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - field_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - unique_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_ProtoIndexSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoIndexSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoIndexSpec.class, lgraph.Lgraph.ProtoIndexSpec.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object field_; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNIQUE_FIELD_NUMBER = 3; - private boolean unique_; - /** - * required bool unique = 3; - */ - public boolean hasUnique() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool unique = 3; - */ - public boolean getUnique() { - return unique_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasField()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasUnique()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, unique_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, unique_); - } - 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 lgraph.Lgraph.ProtoIndexSpec)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoIndexSpec other = (lgraph.Lgraph.ProtoIndexSpec) obj; - - boolean result = true; - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && (hasField() == other.hasField()); - if (hasField()) { - result = result && getField() - .equals(other.getField()); - } - result = result && (hasUnique() == other.hasUnique()); - if (hasUnique()) { - result = result && (getUnique() - == other.getUnique()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - if (hasUnique()) { - hash = (37 * hash) + UNIQUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUnique()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoIndexSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoIndexSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoIndexSpec 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 lgraph.Lgraph.ProtoIndexSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoIndexSpec 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 lgraph.Lgraph.ProtoIndexSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoIndexSpec 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(lgraph.Lgraph.ProtoIndexSpec 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 lgraph.ProtoIndexSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoIndexSpec) - lgraph.Lgraph.ProtoIndexSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoIndexSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoIndexSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoIndexSpec.class, lgraph.Lgraph.ProtoIndexSpec.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoIndexSpec.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(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - field_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - unique_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoIndexSpec_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoIndexSpec getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoIndexSpec.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoIndexSpec build() { - lgraph.Lgraph.ProtoIndexSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoIndexSpec buildPartial() { - lgraph.Lgraph.ProtoIndexSpec result = new lgraph.Lgraph.ProtoIndexSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.field_ = field_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.unique_ = unique_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoIndexSpec) { - return mergeFrom((lgraph.Lgraph.ProtoIndexSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoIndexSpec other) { - if (other == lgraph.Lgraph.ProtoIndexSpec.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasField()) { - bitField0_ |= 0x00000002; - field_ = other.field_; - onChanged(); - } - if (other.hasUnique()) { - setUnique(other.getUnique()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLabel()) { - return false; - } - if (!hasField()) { - return false; - } - if (!hasUnique()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ProtoIndexSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoIndexSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private java.lang.Object field_ = ""; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string field = 2; - */ - public Builder setField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = value; - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000002); - field_ = getDefaultInstance().getField(); - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = value; - onChanged(); - return this; - } - - private boolean unique_ ; - /** - * required bool unique = 3; - */ - public boolean hasUnique() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool unique = 3; - */ - public boolean getUnique() { - return unique_; - } - /** - * required bool unique = 3; - */ - public Builder setUnique(boolean value) { - bitField0_ |= 0x00000004; - unique_ = value; - onChanged(); - return this; - } - /** - * required bool unique = 3; - */ - public Builder clearUnique() { - bitField0_ = (bitField0_ & ~0x00000004); - unique_ = false; - 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:lgraph.ProtoIndexSpec) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoIndexSpec) - private static final lgraph.Lgraph.ProtoIndexSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoIndexSpec(); - } - - public static lgraph.Lgraph.ProtoIndexSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoIndexSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoIndexSpec(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 lgraph.Lgraph.ProtoIndexSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SrcDstFieldValuesOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SrcDstFieldValues) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 src = 1; - */ - boolean hasSrc(); - /** - * required int64 src = 1; - */ - long getSrc(); - - /** - * required int64 dst = 2; - */ - boolean hasDst(); - /** - * required int64 dst = 2; - */ - long getDst(); - - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - boolean hasValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - lgraph.Lgraph.ListOfProtoFieldData getValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder(); - } - /** - * Protobuf type {@code lgraph.SrcDstFieldValues} - */ - public static final class SrcDstFieldValues extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SrcDstFieldValues) - SrcDstFieldValuesOrBuilder { - private static final long serialVersionUID = 0L; - // Use SrcDstFieldValues.newBuilder() to construct. - private SrcDstFieldValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SrcDstFieldValues() { - src_ = 0L; - dst_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SrcDstFieldValues( - 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 8: { - bitField0_ |= 0x00000001; - src_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - dst_ = input.readInt64(); - break; - } - case 26: { - lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = values_.toBuilder(); - } - values_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(values_); - values_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - 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 lgraph.Lgraph.internal_static_lgraph_SrcDstFieldValues_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SrcDstFieldValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SrcDstFieldValues.class, lgraph.Lgraph.SrcDstFieldValues.Builder.class); - } - - private int bitField0_; - public static final int SRC_FIELD_NUMBER = 1; - private long src_; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - - public static final int DST_FIELD_NUMBER = 2; - private long dst_; - /** - * required int64 dst = 2; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 dst = 2; - */ - public long getDst() { - return dst_; - } - - public static final int VALUES_FIELD_NUMBER = 3; - private lgraph.Lgraph.ListOfProtoFieldData values_; - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasSrc()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDst()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValues()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, dst_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, getValues()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, dst_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValues()); - } - 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 lgraph.Lgraph.SrcDstFieldValues)) { - return super.equals(obj); - } - lgraph.Lgraph.SrcDstFieldValues other = (lgraph.Lgraph.SrcDstFieldValues) obj; - - boolean result = true; - result = result && (hasSrc() == other.hasSrc()); - if (hasSrc()) { - result = result && (getSrc() - == other.getSrc()); - } - result = result && (hasDst() == other.hasDst()); - if (hasDst()) { - result = result && (getDst() - == other.getDst()); - } - result = result && (hasValues() == other.hasValues()); - if (hasValues()) { - result = result && getValues() - .equals(other.getValues()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrc()) { - hash = (37 * hash) + SRC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSrc()); - } - if (hasDst()) { - hash = (37 * hash) + DST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDst()); - } - if (hasValues()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SrcDstFieldValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SrcDstFieldValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SrcDstFieldValues 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 lgraph.Lgraph.SrcDstFieldValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SrcDstFieldValues 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 lgraph.Lgraph.SrcDstFieldValues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SrcDstFieldValues 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(lgraph.Lgraph.SrcDstFieldValues 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 lgraph.SrcDstFieldValues} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SrcDstFieldValues) - lgraph.Lgraph.SrcDstFieldValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SrcDstFieldValues_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SrcDstFieldValues_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SrcDstFieldValues.class, lgraph.Lgraph.SrcDstFieldValues.Builder.class); - } - - // Construct using lgraph.Lgraph.SrcDstFieldValues.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - src_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - dst_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - if (valuesBuilder_ == null) { - values_ = null; - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SrcDstFieldValues_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SrcDstFieldValues getDefaultInstanceForType() { - return lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SrcDstFieldValues build() { - lgraph.Lgraph.SrcDstFieldValues result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SrcDstFieldValues buildPartial() { - lgraph.Lgraph.SrcDstFieldValues result = new lgraph.Lgraph.SrcDstFieldValues(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.src_ = src_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.dst_ = dst_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (valuesBuilder_ == null) { - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SrcDstFieldValues) { - return mergeFrom((lgraph.Lgraph.SrcDstFieldValues)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SrcDstFieldValues other) { - if (other == lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance()) return this; - if (other.hasSrc()) { - setSrc(other.getSrc()); - } - if (other.hasDst()) { - setDst(other.getDst()); - } - if (other.hasValues()) { - mergeValues(other.getValues()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSrc()) { - return false; - } - if (!hasDst()) { - return false; - } - if (!hasValues()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SrcDstFieldValues parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SrcDstFieldValues) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long src_ ; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - /** - * required int64 src = 1; - */ - public Builder setSrc(long value) { - bitField0_ |= 0x00000001; - src_ = value; - onChanged(); - return this; - } - /** - * required int64 src = 1; - */ - public Builder clearSrc() { - bitField0_ = (bitField0_ & ~0x00000001); - src_ = 0L; - onChanged(); - return this; - } - - private long dst_ ; - /** - * required int64 dst = 2; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 dst = 2; - */ - public long getDst() { - return dst_; - } - /** - * required int64 dst = 2; - */ - public Builder setDst(long value) { - bitField0_ |= 0x00000002; - dst_ = value; - onChanged(); - return this; - } - /** - * required int64 dst = 2; - */ - public Builder clearDst() { - bitField0_ = (bitField0_ & ~0x00000002); - dst_ = 0L; - onChanged(); - return this; - } - - private lgraph.Lgraph.ListOfProtoFieldData values_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> valuesBuilder_; - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - if (valuesBuilder_ == null) { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } else { - return valuesBuilder_.getMessage(); - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public Builder setValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - values_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public Builder setValues( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - values_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public Builder mergeValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - values_ != null && - values_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) { - values_ = - lgraph.Lgraph.ListOfProtoFieldData.newBuilder(values_).mergeFrom(value).buildPartial(); - } else { - values_ = value; - } - onChanged(); - } else { - valuesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = null; - onChanged(); - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getValuesBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getValuesFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - return values_ == null ? - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:lgraph.SrcDstFieldValues) - } - - // @@protoc_insertion_point(class_scope:lgraph.SrcDstFieldValues) - private static final lgraph.Lgraph.SrcDstFieldValues DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SrcDstFieldValues(); - } - - public static lgraph.Lgraph.SrcDstFieldValues getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SrcDstFieldValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SrcDstFieldValues(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 lgraph.Lgraph.SrcDstFieldValues getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PropertyOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.Property) - com.google.protobuf.MessageOrBuilder { - - /** - * required string key = 1; - */ - boolean hasKey(); - /** - * required string key = 1; - */ - java.lang.String getKey(); - /** - * required string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * required .lgraph.ProtoFieldData value = 2; - */ - boolean hasValue(); - /** - * required .lgraph.ProtoFieldData value = 2; - */ - lgraph.Lgraph.ProtoFieldData getValue(); - /** - * required .lgraph.ProtoFieldData value = 2; - */ - lgraph.Lgraph.ProtoFieldDataOrBuilder getValueOrBuilder(); - } - /** - * Protobuf type {@code lgraph.Property} - */ - public static final class Property extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.Property) - PropertyOrBuilder { - private static final long serialVersionUID = 0L; - // Use Property.newBuilder() to construct. - private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Property() { - key_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Property( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - lgraph.Lgraph.ProtoFieldData.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(lgraph.Lgraph.ProtoFieldData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - 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 lgraph.Lgraph.internal_static_lgraph_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Property.class, lgraph.Lgraph.Property.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * required string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * required string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private lgraph.Lgraph.ProtoFieldData value_; - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public lgraph.Lgraph.ProtoFieldData getValue() { - return value_ == null ? lgraph.Lgraph.ProtoFieldData.getDefaultInstance() : value_; - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValueOrBuilder() { - return value_ == null ? lgraph.Lgraph.ProtoFieldData.getDefaultInstance() : value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasKey()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValue()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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 lgraph.Lgraph.Property)) { - return super.equals(obj); - } - lgraph.Lgraph.Property other = (lgraph.Lgraph.Property) obj; - - boolean result = true; - result = result && (hasKey() == other.hasKey()); - if (hasKey()) { - result = result && getKey() - .equals(other.getKey()); - } - result = result && (hasValue() == other.hasValue()); - if (hasValue()) { - result = result && getValue() - .equals(other.getValue()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasKey()) { - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.Property parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Property parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Property parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Property parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Property parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Property 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 lgraph.Lgraph.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Property 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 lgraph.Lgraph.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Property 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(lgraph.Lgraph.Property 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 lgraph.Property} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.Property) - lgraph.Lgraph.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Property.class, lgraph.Lgraph.Property.Builder.class); - } - - // Construct using lgraph.Lgraph.Property.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValueFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (valueBuilder_ == null) { - value_ = null; - } else { - valueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_Property_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.Property getDefaultInstanceForType() { - return lgraph.Lgraph.Property.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.Property build() { - lgraph.Lgraph.Property result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.Property buildPartial() { - lgraph.Lgraph.Property result = new lgraph.Lgraph.Property(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.Property) { - return mergeFrom((lgraph.Lgraph.Property)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.Property other) { - if (other == lgraph.Lgraph.Property.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasKey()) { - return false; - } - if (!hasValue()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.Property parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.Property) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * required string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * required string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * required string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private lgraph.Lgraph.ProtoFieldData value_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> valueBuilder_; - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public lgraph.Lgraph.ProtoFieldData getValue() { - if (valueBuilder_ == null) { - return value_ == null ? lgraph.Lgraph.ProtoFieldData.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public Builder setValue(lgraph.Lgraph.ProtoFieldData value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public Builder setValue( - lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public Builder mergeValue(lgraph.Lgraph.ProtoFieldData value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - value_ != null && - value_ != lgraph.Lgraph.ProtoFieldData.getDefaultInstance()) { - value_ = - lgraph.Lgraph.ProtoFieldData.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - valueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public lgraph.Lgraph.ProtoFieldData.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - lgraph.Lgraph.ProtoFieldData.getDefaultInstance() : value_; - } - } - /** - * required .lgraph.ProtoFieldData value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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:lgraph.Property) - } - - // @@protoc_insertion_point(class_scope:lgraph.Property) - private static final lgraph.Lgraph.Property DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.Property(); - } - - public static lgraph.Lgraph.Property getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Property(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 lgraph.Lgraph.Property getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EdgeConstraintOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.EdgeConstraint) - com.google.protobuf.MessageOrBuilder { - - /** - * required string src_label = 1; - */ - boolean hasSrcLabel(); - /** - * required string src_label = 1; - */ - java.lang.String getSrcLabel(); - /** - * required string src_label = 1; - */ - com.google.protobuf.ByteString - getSrcLabelBytes(); - - /** - * required string dst_label = 2; - */ - boolean hasDstLabel(); - /** - * required string dst_label = 2; - */ - java.lang.String getDstLabel(); - /** - * required string dst_label = 2; - */ - com.google.protobuf.ByteString - getDstLabelBytes(); - } - /** - * Protobuf type {@code lgraph.EdgeConstraint} - */ - public static final class EdgeConstraint extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.EdgeConstraint) - EdgeConstraintOrBuilder { - private static final long serialVersionUID = 0L; - // Use EdgeConstraint.newBuilder() to construct. - private EdgeConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EdgeConstraint() { - srcLabel_ = ""; - dstLabel_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EdgeConstraint( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - srcLabel_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - dstLabel_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_EdgeConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_EdgeConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.EdgeConstraint.class, lgraph.Lgraph.EdgeConstraint.Builder.class); - } - - private int bitField0_; - public static final int SRC_LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object srcLabel_; - /** - * required string src_label = 1; - */ - public boolean hasSrcLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string src_label = 1; - */ - public java.lang.String getSrcLabel() { - java.lang.Object ref = srcLabel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - srcLabel_ = s; - } - return s; - } - } - /** - * required string src_label = 1; - */ - public com.google.protobuf.ByteString - getSrcLabelBytes() { - java.lang.Object ref = srcLabel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DST_LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object dstLabel_; - /** - * required string dst_label = 2; - */ - public boolean hasDstLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string dst_label = 2; - */ - public java.lang.String getDstLabel() { - java.lang.Object ref = dstLabel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dstLabel_ = s; - } - return s; - } - } - /** - * required string dst_label = 2; - */ - public com.google.protobuf.ByteString - getDstLabelBytes() { - java.lang.Object ref = dstLabel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstLabel_ = 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; - - if (!hasSrcLabel()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDstLabel()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, srcLabel_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dstLabel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, srcLabel_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dstLabel_); - } - 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 lgraph.Lgraph.EdgeConstraint)) { - return super.equals(obj); - } - lgraph.Lgraph.EdgeConstraint other = (lgraph.Lgraph.EdgeConstraint) obj; - - boolean result = true; - result = result && (hasSrcLabel() == other.hasSrcLabel()); - if (hasSrcLabel()) { - result = result && getSrcLabel() - .equals(other.getSrcLabel()); - } - result = result && (hasDstLabel() == other.hasDstLabel()); - if (hasDstLabel()) { - result = result && getDstLabel() - .equals(other.getDstLabel()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrcLabel()) { - hash = (37 * hash) + SRC_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getSrcLabel().hashCode(); - } - if (hasDstLabel()) { - hash = (37 * hash) + DST_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getDstLabel().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.EdgeConstraint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeConstraint 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 lgraph.Lgraph.EdgeConstraint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeConstraint 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 lgraph.Lgraph.EdgeConstraint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeConstraint 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(lgraph.Lgraph.EdgeConstraint 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 lgraph.EdgeConstraint} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.EdgeConstraint) - lgraph.Lgraph.EdgeConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_EdgeConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_EdgeConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.EdgeConstraint.class, lgraph.Lgraph.EdgeConstraint.Builder.class); - } - - // Construct using lgraph.Lgraph.EdgeConstraint.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(); - srcLabel_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - dstLabel_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_EdgeConstraint_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.EdgeConstraint getDefaultInstanceForType() { - return lgraph.Lgraph.EdgeConstraint.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.EdgeConstraint build() { - lgraph.Lgraph.EdgeConstraint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.EdgeConstraint buildPartial() { - lgraph.Lgraph.EdgeConstraint result = new lgraph.Lgraph.EdgeConstraint(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.srcLabel_ = srcLabel_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.dstLabel_ = dstLabel_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.EdgeConstraint) { - return mergeFrom((lgraph.Lgraph.EdgeConstraint)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.EdgeConstraint other) { - if (other == lgraph.Lgraph.EdgeConstraint.getDefaultInstance()) return this; - if (other.hasSrcLabel()) { - bitField0_ |= 0x00000001; - srcLabel_ = other.srcLabel_; - onChanged(); - } - if (other.hasDstLabel()) { - bitField0_ |= 0x00000002; - dstLabel_ = other.dstLabel_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSrcLabel()) { - return false; - } - if (!hasDstLabel()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.EdgeConstraint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.EdgeConstraint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object srcLabel_ = ""; - /** - * required string src_label = 1; - */ - public boolean hasSrcLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string src_label = 1; - */ - public java.lang.String getSrcLabel() { - java.lang.Object ref = srcLabel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - srcLabel_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string src_label = 1; - */ - public com.google.protobuf.ByteString - getSrcLabelBytes() { - java.lang.Object ref = srcLabel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - srcLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string src_label = 1; - */ - public Builder setSrcLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - srcLabel_ = value; - onChanged(); - return this; - } - /** - * required string src_label = 1; - */ - public Builder clearSrcLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - srcLabel_ = getDefaultInstance().getSrcLabel(); - onChanged(); - return this; - } - /** - * required string src_label = 1; - */ - public Builder setSrcLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - srcLabel_ = value; - onChanged(); - return this; - } - - private java.lang.Object dstLabel_ = ""; - /** - * required string dst_label = 2; - */ - public boolean hasDstLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string dst_label = 2; - */ - public java.lang.String getDstLabel() { - java.lang.Object ref = dstLabel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - dstLabel_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string dst_label = 2; - */ - public com.google.protobuf.ByteString - getDstLabelBytes() { - java.lang.Object ref = dstLabel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dstLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string dst_label = 2; - */ - public Builder setDstLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - dstLabel_ = value; - onChanged(); - return this; - } - /** - * required string dst_label = 2; - */ - public Builder clearDstLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - dstLabel_ = getDefaultInstance().getDstLabel(); - onChanged(); - return this; - } - /** - * required string dst_label = 2; - */ - public Builder setDstLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - dstLabel_ = 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:lgraph.EdgeConstraint) - } - - // @@protoc_insertion_point(class_scope:lgraph.EdgeConstraint) - private static final lgraph.Lgraph.EdgeConstraint DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.EdgeConstraint(); - } - - public static lgraph.Lgraph.EdgeConstraint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EdgeConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EdgeConstraint(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 lgraph.Lgraph.EdgeConstraint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddLabelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddLabelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required bool is_vertex = 1; - */ - boolean hasIsVertex(); - /** - * required bool is_vertex = 1; - */ - boolean getIsVertex(); - - /** - * required string label = 2; - */ - boolean hasLabel(); - /** - * required string label = 2; - */ - java.lang.String getLabel(); - /** - * required string label = 2; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * optional string primary = 3; - */ - boolean hasPrimary(); - /** - * optional string primary = 3; - */ - java.lang.String getPrimary(); - /** - * optional string primary = 3; - */ - com.google.protobuf.ByteString - getPrimaryBytes(); - - /** - * optional string tid_order = 4; - */ - boolean hasTidOrder(); - /** - * optional string tid_order = 4; - */ - java.lang.String getTidOrder(); - /** - * optional string tid_order = 4; - */ - com.google.protobuf.ByteString - getTidOrderBytes(); - - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - java.util.List - getEdgeConstraintsList(); - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - lgraph.Lgraph.EdgeConstraint getEdgeConstraints(int index); - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - int getEdgeConstraintsCount(); - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - java.util.List - getEdgeConstraintsOrBuilderList(); - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - lgraph.Lgraph.EdgeConstraintOrBuilder getEdgeConstraintsOrBuilder( - int index); - - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - java.util.List - getFieldsList(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - lgraph.Lgraph.ProtoFieldSpec getFields(int index); - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - int getFieldsCount(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - java.util.List - getFieldsOrBuilderList(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.AddLabelRequest} - */ - public static final class AddLabelRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddLabelRequest) - AddLabelRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddLabelRequest.newBuilder() to construct. - private AddLabelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddLabelRequest() { - isVertex_ = false; - label_ = ""; - primary_ = ""; - tidOrder_ = ""; - edgeConstraints_ = java.util.Collections.emptyList(); - fields_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddLabelRequest( - 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 8: { - bitField0_ |= 0x00000001; - isVertex_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - label_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - primary_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - tidOrder_ = bs; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - edgeConstraints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - edgeConstraints_.add( - input.readMessage(lgraph.Lgraph.EdgeConstraint.PARSER, extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - fields_.add( - input.readMessage(lgraph.Lgraph.ProtoFieldSpec.PARSER, extensionRegistry)); - 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_ & 0x00000010) == 0x00000010)) { - edgeConstraints_ = java.util.Collections.unmodifiableList(edgeConstraints_); - } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddLabelRequest.class, lgraph.Lgraph.AddLabelRequest.Builder.class); - } - - private int bitField0_; - public static final int IS_VERTEX_FIELD_NUMBER = 1; - private boolean isVertex_; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * required string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIMARY_FIELD_NUMBER = 3; - private volatile java.lang.Object primary_; - /** - * optional string primary = 3; - */ - public boolean hasPrimary() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string primary = 3; - */ - public java.lang.String getPrimary() { - java.lang.Object ref = primary_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - primary_ = s; - } - return s; - } - } - /** - * optional string primary = 3; - */ - public com.google.protobuf.ByteString - getPrimaryBytes() { - java.lang.Object ref = primary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TID_ORDER_FIELD_NUMBER = 4; - private volatile java.lang.Object tidOrder_; - /** - * optional string tid_order = 4; - */ - public boolean hasTidOrder() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string tid_order = 4; - */ - public java.lang.String getTidOrder() { - java.lang.Object ref = tidOrder_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tidOrder_ = s; - } - return s; - } - } - /** - * optional string tid_order = 4; - */ - public com.google.protobuf.ByteString - getTidOrderBytes() { - java.lang.Object ref = tidOrder_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tidOrder_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EDGE_CONSTRAINTS_FIELD_NUMBER = 5; - private java.util.List edgeConstraints_; - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public java.util.List getEdgeConstraintsList() { - return edgeConstraints_; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public java.util.List - getEdgeConstraintsOrBuilderList() { - return edgeConstraints_; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public int getEdgeConstraintsCount() { - return edgeConstraints_.size(); - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraint getEdgeConstraints(int index) { - return edgeConstraints_.get(index); - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraintOrBuilder getEdgeConstraintsOrBuilder( - int index) { - return edgeConstraints_.get(index); - } - - public static final int FIELDS_FIELD_NUMBER = 6; - private java.util.List fields_; - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public java.util.List getFieldsList() { - return fields_; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public java.util.List - getFieldsOrBuilderList() { - return fields_; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpec getFields(int index) { - return fields_.get(index); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index) { - return fields_.get(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; - - if (!hasIsVertex()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getEdgeConstraintsCount(); i++) { - if (!getEdgeConstraints(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getFieldsCount(); i++) { - if (!getFields(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, isVertex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, primary_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tidOrder_); - } - for (int i = 0; i < edgeConstraints_.size(); i++) { - output.writeMessage(5, edgeConstraints_.get(i)); - } - for (int i = 0; i < fields_.size(); i++) { - output.writeMessage(6, fields_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isVertex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, primary_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tidOrder_); - } - for (int i = 0; i < edgeConstraints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, edgeConstraints_.get(i)); - } - for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, fields_.get(i)); - } - 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 lgraph.Lgraph.AddLabelRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddLabelRequest other = (lgraph.Lgraph.AddLabelRequest) obj; - - boolean result = true; - result = result && (hasIsVertex() == other.hasIsVertex()); - if (hasIsVertex()) { - result = result && (getIsVertex() - == other.getIsVertex()); - } - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && (hasPrimary() == other.hasPrimary()); - if (hasPrimary()) { - result = result && getPrimary() - .equals(other.getPrimary()); - } - result = result && (hasTidOrder() == other.hasTidOrder()); - if (hasTidOrder()) { - result = result && getTidOrder() - .equals(other.getTidOrder()); - } - result = result && getEdgeConstraintsList() - .equals(other.getEdgeConstraintsList()); - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsVertex()) { - hash = (37 * hash) + IS_VERTEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsVertex()); - } - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (hasPrimary()) { - hash = (37 * hash) + PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + getPrimary().hashCode(); - } - if (hasTidOrder()) { - hash = (37 * hash) + TID_ORDER_FIELD_NUMBER; - hash = (53 * hash) + getTidOrder().hashCode(); - } - if (getEdgeConstraintsCount() > 0) { - hash = (37 * hash) + EDGE_CONSTRAINTS_FIELD_NUMBER; - hash = (53 * hash) + getEdgeConstraintsList().hashCode(); - } - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddLabelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelRequest 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 lgraph.Lgraph.AddLabelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelRequest 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 lgraph.Lgraph.AddLabelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelRequest 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(lgraph.Lgraph.AddLabelRequest 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 lgraph.AddLabelRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddLabelRequest) - lgraph.Lgraph.AddLabelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddLabelRequest.class, lgraph.Lgraph.AddLabelRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddLabelRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEdgeConstraintsFieldBuilder(); - getFieldsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isVertex_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - primary_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - tidOrder_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (edgeConstraintsBuilder_ == null) { - edgeConstraints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - edgeConstraintsBuilder_.clear(); - } - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - fieldsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelRequest build() { - lgraph.Lgraph.AddLabelRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelRequest buildPartial() { - lgraph.Lgraph.AddLabelRequest result = new lgraph.Lgraph.AddLabelRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isVertex_ = isVertex_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.primary_ = primary_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.tidOrder_ = tidOrder_; - if (edgeConstraintsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - edgeConstraints_ = java.util.Collections.unmodifiableList(edgeConstraints_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.edgeConstraints_ = edgeConstraints_; - } else { - result.edgeConstraints_ = edgeConstraintsBuilder_.build(); - } - if (fieldsBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.fields_ = fields_; - } else { - result.fields_ = fieldsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddLabelRequest) { - return mergeFrom((lgraph.Lgraph.AddLabelRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddLabelRequest other) { - if (other == lgraph.Lgraph.AddLabelRequest.getDefaultInstance()) return this; - if (other.hasIsVertex()) { - setIsVertex(other.getIsVertex()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000002; - label_ = other.label_; - onChanged(); - } - if (other.hasPrimary()) { - bitField0_ |= 0x00000004; - primary_ = other.primary_; - onChanged(); - } - if (other.hasTidOrder()) { - bitField0_ |= 0x00000008; - tidOrder_ = other.tidOrder_; - onChanged(); - } - if (edgeConstraintsBuilder_ == null) { - if (!other.edgeConstraints_.isEmpty()) { - if (edgeConstraints_.isEmpty()) { - edgeConstraints_ = other.edgeConstraints_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.addAll(other.edgeConstraints_); - } - onChanged(); - } - } else { - if (!other.edgeConstraints_.isEmpty()) { - if (edgeConstraintsBuilder_.isEmpty()) { - edgeConstraintsBuilder_.dispose(); - edgeConstraintsBuilder_ = null; - edgeConstraints_ = other.edgeConstraints_; - bitField0_ = (bitField0_ & ~0x00000010); - edgeConstraintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEdgeConstraintsFieldBuilder() : null; - } else { - edgeConstraintsBuilder_.addAllMessages(other.edgeConstraints_); - } - } - } - if (fieldsBuilder_ == null) { - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - } else { - if (!other.fields_.isEmpty()) { - if (fieldsBuilder_.isEmpty()) { - fieldsBuilder_.dispose(); - fieldsBuilder_ = null; - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000020); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; - } else { - fieldsBuilder_.addAllMessages(other.fields_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIsVertex()) { - return false; - } - if (!hasLabel()) { - return false; - } - for (int i = 0; i < getEdgeConstraintsCount(); i++) { - if (!getEdgeConstraints(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getFieldsCount(); i++) { - if (!getFields(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddLabelRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddLabelRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isVertex_ ; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - /** - * required bool is_vertex = 1; - */ - public Builder setIsVertex(boolean value) { - bitField0_ |= 0x00000001; - isVertex_ = value; - onChanged(); - return this; - } - /** - * required bool is_vertex = 1; - */ - public Builder clearIsVertex() { - bitField0_ = (bitField0_ & ~0x00000001); - isVertex_ = false; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * required string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 2; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 2; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 2; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - - private java.lang.Object primary_ = ""; - /** - * optional string primary = 3; - */ - public boolean hasPrimary() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string primary = 3; - */ - public java.lang.String getPrimary() { - java.lang.Object ref = primary_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - primary_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string primary = 3; - */ - public com.google.protobuf.ByteString - getPrimaryBytes() { - java.lang.Object ref = primary_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string primary = 3; - */ - public Builder setPrimary( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - primary_ = value; - onChanged(); - return this; - } - /** - * optional string primary = 3; - */ - public Builder clearPrimary() { - bitField0_ = (bitField0_ & ~0x00000004); - primary_ = getDefaultInstance().getPrimary(); - onChanged(); - return this; - } - /** - * optional string primary = 3; - */ - public Builder setPrimaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - primary_ = value; - onChanged(); - return this; - } - - private java.lang.Object tidOrder_ = ""; - /** - * optional string tid_order = 4; - */ - public boolean hasTidOrder() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string tid_order = 4; - */ - public java.lang.String getTidOrder() { - java.lang.Object ref = tidOrder_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tidOrder_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string tid_order = 4; - */ - public com.google.protobuf.ByteString - getTidOrderBytes() { - java.lang.Object ref = tidOrder_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tidOrder_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string tid_order = 4; - */ - public Builder setTidOrder( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - tidOrder_ = value; - onChanged(); - return this; - } - /** - * optional string tid_order = 4; - */ - public Builder clearTidOrder() { - bitField0_ = (bitField0_ & ~0x00000008); - tidOrder_ = getDefaultInstance().getTidOrder(); - onChanged(); - return this; - } - /** - * optional string tid_order = 4; - */ - public Builder setTidOrderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - tidOrder_ = value; - onChanged(); - return this; - } - - private java.util.List edgeConstraints_ = - java.util.Collections.emptyList(); - private void ensureEdgeConstraintsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - edgeConstraints_ = new java.util.ArrayList(edgeConstraints_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeConstraint, lgraph.Lgraph.EdgeConstraint.Builder, lgraph.Lgraph.EdgeConstraintOrBuilder> edgeConstraintsBuilder_; - - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public java.util.List getEdgeConstraintsList() { - if (edgeConstraintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(edgeConstraints_); - } else { - return edgeConstraintsBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public int getEdgeConstraintsCount() { - if (edgeConstraintsBuilder_ == null) { - return edgeConstraints_.size(); - } else { - return edgeConstraintsBuilder_.getCount(); - } - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraint getEdgeConstraints(int index) { - if (edgeConstraintsBuilder_ == null) { - return edgeConstraints_.get(index); - } else { - return edgeConstraintsBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder setEdgeConstraints( - int index, lgraph.Lgraph.EdgeConstraint value) { - if (edgeConstraintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.set(index, value); - onChanged(); - } else { - edgeConstraintsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder setEdgeConstraints( - int index, lgraph.Lgraph.EdgeConstraint.Builder builderForValue) { - if (edgeConstraintsBuilder_ == null) { - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.set(index, builderForValue.build()); - onChanged(); - } else { - edgeConstraintsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder addEdgeConstraints(lgraph.Lgraph.EdgeConstraint value) { - if (edgeConstraintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.add(value); - onChanged(); - } else { - edgeConstraintsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder addEdgeConstraints( - int index, lgraph.Lgraph.EdgeConstraint value) { - if (edgeConstraintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.add(index, value); - onChanged(); - } else { - edgeConstraintsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder addEdgeConstraints( - lgraph.Lgraph.EdgeConstraint.Builder builderForValue) { - if (edgeConstraintsBuilder_ == null) { - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.add(builderForValue.build()); - onChanged(); - } else { - edgeConstraintsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder addEdgeConstraints( - int index, lgraph.Lgraph.EdgeConstraint.Builder builderForValue) { - if (edgeConstraintsBuilder_ == null) { - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.add(index, builderForValue.build()); - onChanged(); - } else { - edgeConstraintsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder addAllEdgeConstraints( - java.lang.Iterable values) { - if (edgeConstraintsBuilder_ == null) { - ensureEdgeConstraintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, edgeConstraints_); - onChanged(); - } else { - edgeConstraintsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder clearEdgeConstraints() { - if (edgeConstraintsBuilder_ == null) { - edgeConstraints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - edgeConstraintsBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public Builder removeEdgeConstraints(int index) { - if (edgeConstraintsBuilder_ == null) { - ensureEdgeConstraintsIsMutable(); - edgeConstraints_.remove(index); - onChanged(); - } else { - edgeConstraintsBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraint.Builder getEdgeConstraintsBuilder( - int index) { - return getEdgeConstraintsFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraintOrBuilder getEdgeConstraintsOrBuilder( - int index) { - if (edgeConstraintsBuilder_ == null) { - return edgeConstraints_.get(index); } else { - return edgeConstraintsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public java.util.List - getEdgeConstraintsOrBuilderList() { - if (edgeConstraintsBuilder_ != null) { - return edgeConstraintsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(edgeConstraints_); - } - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraint.Builder addEdgeConstraintsBuilder() { - return getEdgeConstraintsFieldBuilder().addBuilder( - lgraph.Lgraph.EdgeConstraint.getDefaultInstance()); - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public lgraph.Lgraph.EdgeConstraint.Builder addEdgeConstraintsBuilder( - int index) { - return getEdgeConstraintsFieldBuilder().addBuilder( - index, lgraph.Lgraph.EdgeConstraint.getDefaultInstance()); - } - /** - * repeated .lgraph.EdgeConstraint edge_constraints = 5; - */ - public java.util.List - getEdgeConstraintsBuilderList() { - return getEdgeConstraintsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeConstraint, lgraph.Lgraph.EdgeConstraint.Builder, lgraph.Lgraph.EdgeConstraintOrBuilder> - getEdgeConstraintsFieldBuilder() { - if (edgeConstraintsBuilder_ == null) { - edgeConstraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeConstraint, lgraph.Lgraph.EdgeConstraint.Builder, lgraph.Lgraph.EdgeConstraintOrBuilder>( - edgeConstraints_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - edgeConstraints_ = null; - } - return edgeConstraintsBuilder_; - } - - private java.util.List fields_ = - java.util.Collections.emptyList(); - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = new java.util.ArrayList(fields_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder> fieldsBuilder_; - - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public java.util.List getFieldsList() { - if (fieldsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fields_); - } else { - return fieldsBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public int getFieldsCount() { - if (fieldsBuilder_ == null) { - return fields_.size(); - } else { - return fieldsBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpec getFields(int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { - return fieldsBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder setFields( - int index, lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder setFields( - int index, lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder addFields(lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - } else { - fieldsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder addFields( - int index, lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(index, value); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder addFields( - lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder addFields( - int index, lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder addAllFields( - java.lang.Iterable values) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - } else { - fieldsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder clearFields() { - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - fieldsBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public Builder removeFields(int index) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.remove(index); - onChanged(); - } else { - fieldsBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder getFieldsBuilder( - int index) { - return getFieldsFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); } else { - return fieldsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public java.util.List - getFieldsOrBuilderList() { - if (fieldsBuilder_ != null) { - return fieldsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fields_); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder().addBuilder( - index, lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 6; - */ - public java.util.List - getFieldsBuilderList() { - return getFieldsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder> - getFieldsFieldBuilder() { - if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder>( - fields_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - fields_ = null; - } - return fieldsBuilder_; - } - @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:lgraph.AddLabelRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddLabelRequest) - private static final lgraph.Lgraph.AddLabelRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddLabelRequest(); - } - - public static lgraph.Lgraph.AddLabelRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddLabelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddLabelRequest(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 lgraph.Lgraph.AddLabelRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddLabelResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddLabelResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.AddLabelResponse} - */ - public static final class AddLabelResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddLabelResponse) - AddLabelResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddLabelResponse.newBuilder() to construct. - private AddLabelResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddLabelResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddLabelResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_AddLabelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddLabelResponse.class, lgraph.Lgraph.AddLabelResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.AddLabelResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddLabelResponse other = (lgraph.Lgraph.AddLabelResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddLabelResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddLabelResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelResponse 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 lgraph.Lgraph.AddLabelResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelResponse 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 lgraph.Lgraph.AddLabelResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddLabelResponse 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(lgraph.Lgraph.AddLabelResponse 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 lgraph.AddLabelResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddLabelResponse) - lgraph.Lgraph.AddLabelResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddLabelResponse.class, lgraph.Lgraph.AddLabelResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddLabelResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddLabelResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelResponse build() { - lgraph.Lgraph.AddLabelResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddLabelResponse buildPartial() { - lgraph.Lgraph.AddLabelResponse result = new lgraph.Lgraph.AddLabelResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddLabelResponse) { - return mergeFrom((lgraph.Lgraph.AddLabelResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddLabelResponse other) { - if (other == lgraph.Lgraph.AddLabelResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.AddLabelResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddLabelResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.AddLabelResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddLabelResponse) - private static final lgraph.Lgraph.AddLabelResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddLabelResponse(); - } - - public static lgraph.Lgraph.AddLabelResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddLabelResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddLabelResponse(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 lgraph.Lgraph.AddLabelResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListLabelsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListLabelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required bool is_vertex = 1; - */ - boolean hasIsVertex(); - /** - * required bool is_vertex = 1; - */ - boolean getIsVertex(); - } - /** - * Protobuf type {@code lgraph.ListLabelsRequest} - */ - public static final class ListLabelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListLabelsRequest) - ListLabelsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLabelsRequest.newBuilder() to construct. - private ListLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListLabelsRequest() { - isVertex_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListLabelsRequest( - 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 8: { - bitField0_ |= 0x00000001; - isVertex_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_ListLabelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListLabelsRequest.class, lgraph.Lgraph.ListLabelsRequest.Builder.class); - } - - private int bitField0_; - public static final int IS_VERTEX_FIELD_NUMBER = 1; - private boolean isVertex_; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasIsVertex()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, isVertex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isVertex_); - } - 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 lgraph.Lgraph.ListLabelsRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListLabelsRequest other = (lgraph.Lgraph.ListLabelsRequest) obj; - - boolean result = true; - result = result && (hasIsVertex() == other.hasIsVertex()); - if (hasIsVertex()) { - result = result && (getIsVertex() - == other.getIsVertex()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsVertex()) { - hash = (37 * hash) + IS_VERTEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsVertex()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListLabelsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsRequest 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 lgraph.Lgraph.ListLabelsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsRequest 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 lgraph.Lgraph.ListLabelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsRequest 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(lgraph.Lgraph.ListLabelsRequest 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 lgraph.ListLabelsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListLabelsRequest) - lgraph.Lgraph.ListLabelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListLabelsRequest.class, lgraph.Lgraph.ListLabelsRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListLabelsRequest.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(); - isVertex_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListLabelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsRequest build() { - lgraph.Lgraph.ListLabelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsRequest buildPartial() { - lgraph.Lgraph.ListLabelsRequest result = new lgraph.Lgraph.ListLabelsRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isVertex_ = isVertex_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListLabelsRequest) { - return mergeFrom((lgraph.Lgraph.ListLabelsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListLabelsRequest other) { - if (other == lgraph.Lgraph.ListLabelsRequest.getDefaultInstance()) return this; - if (other.hasIsVertex()) { - setIsVertex(other.getIsVertex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIsVertex()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ListLabelsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListLabelsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isVertex_ ; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - /** - * required bool is_vertex = 1; - */ - public Builder setIsVertex(boolean value) { - bitField0_ |= 0x00000001; - isVertex_ = value; - onChanged(); - return this; - } - /** - * required bool is_vertex = 1; - */ - public Builder clearIsVertex() { - bitField0_ = (bitField0_ & ~0x00000001); - isVertex_ = false; - 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:lgraph.ListLabelsRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListLabelsRequest) - private static final lgraph.Lgraph.ListLabelsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListLabelsRequest(); - } - - public static lgraph.Lgraph.ListLabelsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLabelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLabelsRequest(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 lgraph.Lgraph.ListLabelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListLabelsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListLabelsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string labels = 1; - */ - java.util.List - getLabelsList(); - /** - * repeated string labels = 1; - */ - int getLabelsCount(); - /** - * repeated string labels = 1; - */ - java.lang.String getLabels(int index); - /** - * repeated string labels = 1; - */ - com.google.protobuf.ByteString - getLabelsBytes(int index); - } - /** - * Protobuf type {@code lgraph.ListLabelsResponse} - */ - public static final class ListLabelsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListLabelsResponse) - ListLabelsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLabelsResponse.newBuilder() to construct. - private ListLabelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListLabelsResponse() { - labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListLabelsResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - labels_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - labels_.add(bs); - 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) == 0x00000001)) { - labels_ = labels_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListLabelsResponse.class, lgraph.Lgraph.ListLabelsResponse.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList labels_; - /** - * repeated string labels = 1; - */ - public com.google.protobuf.ProtocolStringList - getLabelsList() { - return labels_; - } - /** - * repeated string labels = 1; - */ - public int getLabelsCount() { - return labels_.size(); - } - /** - * repeated string labels = 1; - */ - public java.lang.String getLabels(int index) { - return labels_.get(index); - } - /** - * repeated string labels = 1; - */ - public com.google.protobuf.ByteString - getLabelsBytes(int index) { - return labels_.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 { - for (int i = 0; i < labels_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labels_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < labels_.size(); i++) { - dataSize += computeStringSizeNoTag(labels_.getRaw(i)); - } - size += dataSize; - size += 1 * getLabelsList().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 lgraph.Lgraph.ListLabelsResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListLabelsResponse other = (lgraph.Lgraph.ListLabelsResponse) obj; - - boolean result = true; - result = result && getLabelsList() - .equals(other.getLabelsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLabelsCount() > 0) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabelsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListLabelsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListLabelsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsResponse 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 lgraph.Lgraph.ListLabelsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsResponse 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 lgraph.Lgraph.ListLabelsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListLabelsResponse 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(lgraph.Lgraph.ListLabelsResponse 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 lgraph.ListLabelsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListLabelsResponse) - lgraph.Lgraph.ListLabelsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListLabelsResponse.class, lgraph.Lgraph.ListLabelsResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListLabelsResponse.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(); - labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListLabelsResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListLabelsResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsResponse build() { - lgraph.Lgraph.ListLabelsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListLabelsResponse buildPartial() { - lgraph.Lgraph.ListLabelsResponse result = new lgraph.Lgraph.ListLabelsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - labels_ = labels_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.labels_ = labels_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListLabelsResponse) { - return mergeFrom((lgraph.Lgraph.ListLabelsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListLabelsResponse other) { - if (other == lgraph.Lgraph.ListLabelsResponse.getDefaultInstance()) return this; - if (!other.labels_.isEmpty()) { - if (labels_.isEmpty()) { - labels_ = other.labels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLabelsIsMutable(); - labels_.addAll(other.labels_); - } - 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 { - lgraph.Lgraph.ListLabelsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListLabelsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureLabelsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - labels_ = new com.google.protobuf.LazyStringArrayList(labels_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string labels = 1; - */ - public com.google.protobuf.ProtocolStringList - getLabelsList() { - return labels_.getUnmodifiableView(); - } - /** - * repeated string labels = 1; - */ - public int getLabelsCount() { - return labels_.size(); - } - /** - * repeated string labels = 1; - */ - public java.lang.String getLabels(int index) { - return labels_.get(index); - } - /** - * repeated string labels = 1; - */ - public com.google.protobuf.ByteString - getLabelsBytes(int index) { - return labels_.getByteString(index); - } - /** - * repeated string labels = 1; - */ - public Builder setLabels( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLabelsIsMutable(); - labels_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string labels = 1; - */ - public Builder addLabels( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLabelsIsMutable(); - labels_.add(value); - onChanged(); - return this; - } - /** - * repeated string labels = 1; - */ - public Builder addAllLabels( - java.lang.Iterable values) { - ensureLabelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, labels_); - onChanged(); - return this; - } - /** - * repeated string labels = 1; - */ - public Builder clearLabels() { - labels_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string labels = 1; - */ - public Builder addLabelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureLabelsIsMutable(); - labels_.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:lgraph.ListLabelsResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListLabelsResponse) - private static final lgraph.Lgraph.ListLabelsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListLabelsResponse(); - } - - public static lgraph.Lgraph.ListLabelsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLabelsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLabelsResponse(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 lgraph.Lgraph.ListLabelsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetLabelRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetLabelRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required bool is_vertex = 1; - */ - boolean hasIsVertex(); - /** - * required bool is_vertex = 1; - */ - boolean getIsVertex(); - } - /** - * Protobuf type {@code lgraph.GetLabelRequest} - */ - public static final class GetLabelRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetLabelRequest) - GetLabelRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetLabelRequest.newBuilder() to construct. - private GetLabelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLabelRequest() { - isVertex_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLabelRequest( - 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 8: { - bitField0_ |= 0x00000001; - isVertex_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_GetLabelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetLabelRequest.class, lgraph.Lgraph.GetLabelRequest.Builder.class); - } - - private int bitField0_; - public static final int IS_VERTEX_FIELD_NUMBER = 1; - private boolean isVertex_; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasIsVertex()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, isVertex_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isVertex_); - } - 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 lgraph.Lgraph.GetLabelRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GetLabelRequest other = (lgraph.Lgraph.GetLabelRequest) obj; - - boolean result = true; - result = result && (hasIsVertex() == other.hasIsVertex()); - if (hasIsVertex()) { - result = result && (getIsVertex() - == other.getIsVertex()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsVertex()) { - hash = (37 * hash) + IS_VERTEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsVertex()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetLabelRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelRequest 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 lgraph.Lgraph.GetLabelRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelRequest 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 lgraph.Lgraph.GetLabelRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelRequest 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(lgraph.Lgraph.GetLabelRequest 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 lgraph.GetLabelRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetLabelRequest) - lgraph.Lgraph.GetLabelRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetLabelRequest.class, lgraph.Lgraph.GetLabelRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GetLabelRequest.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(); - isVertex_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GetLabelRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelRequest build() { - lgraph.Lgraph.GetLabelRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelRequest buildPartial() { - lgraph.Lgraph.GetLabelRequest result = new lgraph.Lgraph.GetLabelRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isVertex_ = isVertex_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetLabelRequest) { - return mergeFrom((lgraph.Lgraph.GetLabelRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetLabelRequest other) { - if (other == lgraph.Lgraph.GetLabelRequest.getDefaultInstance()) return this; - if (other.hasIsVertex()) { - setIsVertex(other.getIsVertex()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIsVertex()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetLabelRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetLabelRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isVertex_ ; - /** - * required bool is_vertex = 1; - */ - public boolean hasIsVertex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_vertex = 1; - */ - public boolean getIsVertex() { - return isVertex_; - } - /** - * required bool is_vertex = 1; - */ - public Builder setIsVertex(boolean value) { - bitField0_ |= 0x00000001; - isVertex_ = value; - onChanged(); - return this; - } - /** - * required bool is_vertex = 1; - */ - public Builder clearIsVertex() { - bitField0_ = (bitField0_ & ~0x00000001); - isVertex_ = false; - 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:lgraph.GetLabelRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetLabelRequest) - private static final lgraph.Lgraph.GetLabelRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetLabelRequest(); - } - - public static lgraph.Lgraph.GetLabelRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLabelRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLabelRequest(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 lgraph.Lgraph.GetLabelRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetLabelResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetLabelResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - java.util.List - getFieldsList(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - lgraph.Lgraph.ProtoFieldSpec getFields(int index); - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - int getFieldsCount(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - java.util.List - getFieldsOrBuilderList(); - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.GetLabelResponse} - */ - public static final class GetLabelResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetLabelResponse) - GetLabelResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetLabelResponse.newBuilder() to construct. - private GetLabelResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetLabelResponse() { - fields_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLabelResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add( - input.readMessage(lgraph.Lgraph.ProtoFieldSpec.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetLabelResponse.class, lgraph.Lgraph.GetLabelResponse.Builder.class); - } - - public static final int FIELDS_FIELD_NUMBER = 1; - private java.util.List fields_; - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public java.util.List getFieldsList() { - return fields_; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public java.util.List - getFieldsOrBuilderList() { - return fields_; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpec getFields(int index) { - return fields_.get(index); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index) { - return fields_.get(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; - - for (int i = 0; i < getFieldsCount(); i++) { - if (!getFields(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < fields_.size(); i++) { - output.writeMessage(1, fields_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields_.get(i)); - } - 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 lgraph.Lgraph.GetLabelResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GetLabelResponse other = (lgraph.Lgraph.GetLabelResponse) obj; - - boolean result = true; - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetLabelResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetLabelResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelResponse 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 lgraph.Lgraph.GetLabelResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelResponse 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 lgraph.Lgraph.GetLabelResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetLabelResponse 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(lgraph.Lgraph.GetLabelResponse 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 lgraph.GetLabelResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetLabelResponse) - lgraph.Lgraph.GetLabelResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetLabelResponse.class, lgraph.Lgraph.GetLabelResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GetLabelResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFieldsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fieldsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetLabelResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GetLabelResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelResponse build() { - lgraph.Lgraph.GetLabelResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetLabelResponse buildPartial() { - lgraph.Lgraph.GetLabelResponse result = new lgraph.Lgraph.GetLabelResponse(this); - int from_bitField0_ = bitField0_; - if (fieldsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = java.util.Collections.unmodifiableList(fields_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fields_ = fields_; - } else { - result.fields_ = fieldsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetLabelResponse) { - return mergeFrom((lgraph.Lgraph.GetLabelResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetLabelResponse other) { - if (other == lgraph.Lgraph.GetLabelResponse.getDefaultInstance()) return this; - if (fieldsBuilder_ == null) { - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - } else { - if (!other.fields_.isEmpty()) { - if (fieldsBuilder_.isEmpty()) { - fieldsBuilder_.dispose(); - fieldsBuilder_ = null; - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; - } else { - fieldsBuilder_.addAllMessages(other.fields_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getFieldsCount(); i++) { - if (!getFields(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetLabelResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetLabelResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List fields_ = - java.util.Collections.emptyList(); - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - fields_ = new java.util.ArrayList(fields_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder> fieldsBuilder_; - - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public java.util.List getFieldsList() { - if (fieldsBuilder_ == null) { - return java.util.Collections.unmodifiableList(fields_); - } else { - return fieldsBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public int getFieldsCount() { - if (fieldsBuilder_ == null) { - return fields_.size(); - } else { - return fieldsBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpec getFields(int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { - return fieldsBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder setFields( - int index, lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder setFields( - int index, lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder addFields(lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - } else { - fieldsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder addFields( - int index, lgraph.Lgraph.ProtoFieldSpec value) { - if (fieldsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(index, value); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder addFields( - lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder addFields( - int index, lgraph.Lgraph.ProtoFieldSpec.Builder builderForValue) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder addAllFields( - java.lang.Iterable values) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - } else { - fieldsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder clearFields() { - if (fieldsBuilder_ == null) { - fields_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fieldsBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public Builder removeFields(int index) { - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.remove(index); - onChanged(); - } else { - fieldsBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder getFieldsBuilder( - int index) { - return getFieldsFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpecOrBuilder getFieldsOrBuilder( - int index) { - if (fieldsBuilder_ == null) { - return fields_.get(index); } else { - return fieldsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public java.util.List - getFieldsOrBuilderList() { - if (fieldsBuilder_ != null) { - return fieldsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(fields_); - } - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public lgraph.Lgraph.ProtoFieldSpec.Builder addFieldsBuilder( - int index) { - return getFieldsFieldBuilder().addBuilder( - index, lgraph.Lgraph.ProtoFieldSpec.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldSpec fields = 1; - */ - public java.util.List - getFieldsBuilderList() { - return getFieldsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder> - getFieldsFieldBuilder() { - if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldSpec, lgraph.Lgraph.ProtoFieldSpec.Builder, lgraph.Lgraph.ProtoFieldSpecOrBuilder>( - fields_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - fields_ = null; - } - return fieldsBuilder_; - } - @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:lgraph.GetLabelResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetLabelResponse) - private static final lgraph.Lgraph.GetLabelResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetLabelResponse(); - } - - public static lgraph.Lgraph.GetLabelResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLabelResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLabelResponse(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 lgraph.Lgraph.GetLabelResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddIndexRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddIndexRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string label = 1; - */ - boolean hasLabel(); - /** - * required string label = 1; - */ - java.lang.String getLabel(); - /** - * required string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * required string field = 2; - */ - boolean hasField(); - /** - * required string field = 2; - */ - java.lang.String getField(); - /** - * required string field = 2; - */ - com.google.protobuf.ByteString - getFieldBytes(); - - /** - * required bool is_unique = 3; - */ - boolean hasIsUnique(); - /** - * required bool is_unique = 3; - */ - boolean getIsUnique(); - } - /** - *
-   * index
-   * 
- * - * Protobuf type {@code lgraph.AddIndexRequest} - */ - public static final class AddIndexRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddIndexRequest) - AddIndexRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddIndexRequest.newBuilder() to construct. - private AddIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddIndexRequest() { - label_ = ""; - field_ = ""; - isUnique_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddIndexRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - field_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - isUnique_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_AddIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddIndexRequest.class, lgraph.Lgraph.AddIndexRequest.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object field_; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_UNIQUE_FIELD_NUMBER = 3; - private boolean isUnique_; - /** - * required bool is_unique = 3; - */ - public boolean hasIsUnique() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool is_unique = 3; - */ - public boolean getIsUnique() { - return isUnique_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasField()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasIsUnique()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, isUnique_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isUnique_); - } - 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 lgraph.Lgraph.AddIndexRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddIndexRequest other = (lgraph.Lgraph.AddIndexRequest) obj; - - boolean result = true; - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && (hasField() == other.hasField()); - if (hasField()) { - result = result && getField() - .equals(other.getField()); - } - result = result && (hasIsUnique() == other.hasIsUnique()); - if (hasIsUnique()) { - result = result && (getIsUnique() - == other.getIsUnique()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - if (hasIsUnique()) { - hash = (37 * hash) + IS_UNIQUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUnique()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddIndexRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexRequest 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 lgraph.Lgraph.AddIndexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexRequest 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 lgraph.Lgraph.AddIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexRequest 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(lgraph.Lgraph.AddIndexRequest 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; - } - /** - *
-     * index
-     * 
- * - * Protobuf type {@code lgraph.AddIndexRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddIndexRequest) - lgraph.Lgraph.AddIndexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddIndexRequest.class, lgraph.Lgraph.AddIndexRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddIndexRequest.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(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - field_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - isUnique_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexRequest build() { - lgraph.Lgraph.AddIndexRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexRequest buildPartial() { - lgraph.Lgraph.AddIndexRequest result = new lgraph.Lgraph.AddIndexRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.field_ = field_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.isUnique_ = isUnique_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddIndexRequest) { - return mergeFrom((lgraph.Lgraph.AddIndexRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddIndexRequest other) { - if (other == lgraph.Lgraph.AddIndexRequest.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasField()) { - bitField0_ |= 0x00000002; - field_ = other.field_; - onChanged(); - } - if (other.hasIsUnique()) { - setIsUnique(other.getIsUnique()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLabel()) { - return false; - } - if (!hasField()) { - return false; - } - if (!hasIsUnique()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddIndexRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddIndexRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private java.lang.Object field_ = ""; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string field = 2; - */ - public Builder setField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = value; - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000002); - field_ = getDefaultInstance().getField(); - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = value; - onChanged(); - return this; - } - - private boolean isUnique_ ; - /** - * required bool is_unique = 3; - */ - public boolean hasIsUnique() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool is_unique = 3; - */ - public boolean getIsUnique() { - return isUnique_; - } - /** - * required bool is_unique = 3; - */ - public Builder setIsUnique(boolean value) { - bitField0_ |= 0x00000004; - isUnique_ = value; - onChanged(); - return this; - } - /** - * required bool is_unique = 3; - */ - public Builder clearIsUnique() { - bitField0_ = (bitField0_ & ~0x00000004); - isUnique_ = false; - 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:lgraph.AddIndexRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddIndexRequest) - private static final lgraph.Lgraph.AddIndexRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddIndexRequest(); - } - - public static lgraph.Lgraph.AddIndexRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddIndexRequest(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 lgraph.Lgraph.AddIndexRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddIndexResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddIndexResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.AddIndexResponse} - */ - public static final class AddIndexResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddIndexResponse) - AddIndexResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddIndexResponse.newBuilder() to construct. - private AddIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddIndexResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddIndexResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_AddIndexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddIndexResponse.class, lgraph.Lgraph.AddIndexResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.AddIndexResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddIndexResponse other = (lgraph.Lgraph.AddIndexResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddIndexResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddIndexResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexResponse 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 lgraph.Lgraph.AddIndexResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexResponse 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 lgraph.Lgraph.AddIndexResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddIndexResponse 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(lgraph.Lgraph.AddIndexResponse 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 lgraph.AddIndexResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddIndexResponse) - lgraph.Lgraph.AddIndexResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddIndexResponse.class, lgraph.Lgraph.AddIndexResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddIndexResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddIndexResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexResponse build() { - lgraph.Lgraph.AddIndexResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddIndexResponse buildPartial() { - lgraph.Lgraph.AddIndexResponse result = new lgraph.Lgraph.AddIndexResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddIndexResponse) { - return mergeFrom((lgraph.Lgraph.AddIndexResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddIndexResponse other) { - if (other == lgraph.Lgraph.AddIndexResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.AddIndexResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddIndexResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.AddIndexResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddIndexResponse) - private static final lgraph.Lgraph.AddIndexResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddIndexResponse(); - } - - public static lgraph.Lgraph.AddIndexResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddIndexResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddIndexResponse(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 lgraph.Lgraph.AddIndexResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelIndexRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelIndexRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string label = 1; - */ - boolean hasLabel(); - /** - * required string label = 1; - */ - java.lang.String getLabel(); - /** - * required string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * required string field = 2; - */ - boolean hasField(); - /** - * required string field = 2; - */ - java.lang.String getField(); - /** - * required string field = 2; - */ - com.google.protobuf.ByteString - getFieldBytes(); - } - /** - * Protobuf type {@code lgraph.DelIndexRequest} - */ - public static final class DelIndexRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelIndexRequest) - DelIndexRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelIndexRequest.newBuilder() to construct. - private DelIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelIndexRequest() { - label_ = ""; - field_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelIndexRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - field_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_DelIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelIndexRequest.class, lgraph.Lgraph.DelIndexRequest.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_FIELD_NUMBER = 2; - private volatile java.lang.Object field_; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = 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; - - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasField()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, field_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, field_); - } - 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 lgraph.Lgraph.DelIndexRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelIndexRequest other = (lgraph.Lgraph.DelIndexRequest) obj; - - boolean result = true; - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && (hasField() == other.hasField()); - if (hasField()) { - result = result && getField() - .equals(other.getField()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (hasField()) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelIndexRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexRequest 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 lgraph.Lgraph.DelIndexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexRequest 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 lgraph.Lgraph.DelIndexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexRequest 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(lgraph.Lgraph.DelIndexRequest 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 lgraph.DelIndexRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelIndexRequest) - lgraph.Lgraph.DelIndexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelIndexRequest.class, lgraph.Lgraph.DelIndexRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelIndexRequest.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(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - field_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexRequest build() { - lgraph.Lgraph.DelIndexRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexRequest buildPartial() { - lgraph.Lgraph.DelIndexRequest result = new lgraph.Lgraph.DelIndexRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.field_ = field_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelIndexRequest) { - return mergeFrom((lgraph.Lgraph.DelIndexRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelIndexRequest other) { - if (other == lgraph.Lgraph.DelIndexRequest.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasField()) { - bitField0_ |= 0x00000002; - field_ = other.field_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLabel()) { - return false; - } - if (!hasField()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelIndexRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelIndexRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private java.lang.Object field_ = ""; - /** - * required string field = 2; - */ - public boolean hasField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string field = 2; - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - field_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string field = 2; - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string field = 2; - */ - public Builder setField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = value; - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder clearField() { - bitField0_ = (bitField0_ & ~0x00000002); - field_ = getDefaultInstance().getField(); - onChanged(); - return this; - } - /** - * required string field = 2; - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - field_ = 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:lgraph.DelIndexRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelIndexRequest) - private static final lgraph.Lgraph.DelIndexRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelIndexRequest(); - } - - public static lgraph.Lgraph.DelIndexRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelIndexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelIndexRequest(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 lgraph.Lgraph.DelIndexRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelIndexResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelIndexResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DelIndexResponse} - */ - public static final class DelIndexResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelIndexResponse) - DelIndexResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelIndexResponse.newBuilder() to construct. - private DelIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelIndexResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelIndexResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DelIndexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelIndexResponse.class, lgraph.Lgraph.DelIndexResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DelIndexResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelIndexResponse other = (lgraph.Lgraph.DelIndexResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelIndexResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelIndexResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexResponse 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 lgraph.Lgraph.DelIndexResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexResponse 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 lgraph.Lgraph.DelIndexResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelIndexResponse 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(lgraph.Lgraph.DelIndexResponse 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 lgraph.DelIndexResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelIndexResponse) - lgraph.Lgraph.DelIndexResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelIndexResponse.class, lgraph.Lgraph.DelIndexResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelIndexResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelIndexResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexResponse build() { - lgraph.Lgraph.DelIndexResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelIndexResponse buildPartial() { - lgraph.Lgraph.DelIndexResponse result = new lgraph.Lgraph.DelIndexResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelIndexResponse) { - return mergeFrom((lgraph.Lgraph.DelIndexResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelIndexResponse other) { - if (other == lgraph.Lgraph.DelIndexResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DelIndexResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelIndexResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DelIndexResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelIndexResponse) - private static final lgraph.Lgraph.DelIndexResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelIndexResponse(); - } - - public static lgraph.Lgraph.DelIndexResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelIndexResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelIndexResponse(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 lgraph.Lgraph.DelIndexResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddVertexesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddVertexesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string label = 1; - */ - boolean hasLabel(); - /** - * required string label = 1; - */ - java.lang.String getLabel(); - /** - * required string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * repeated string fields = 2; - */ - java.util.List - getFieldsList(); - /** - * repeated string fields = 2; - */ - int getFieldsCount(); - /** - * repeated string fields = 2; - */ - java.lang.String getFields(int index); - /** - * repeated string fields = 2; - */ - com.google.protobuf.ByteString - getFieldsBytes(int index); - - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - java.util.List - getVertexesList(); - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - lgraph.Lgraph.ListOfProtoFieldData getVertexes(int index); - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - int getVertexesCount(); - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - java.util.List - getVertexesOrBuilderList(); - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getVertexesOrBuilder( - int index); - } - /** - *
-   * vertex
-   * 
- * - * Protobuf type {@code lgraph.AddVertexesRequest} - */ - public static final class AddVertexesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddVertexesRequest) - AddVertexesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddVertexesRequest.newBuilder() to construct. - private AddVertexesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddVertexesRequest() { - label_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - vertexes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddVertexesRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fields_.add(bs); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - vertexes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - vertexes_.add( - input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry)); - 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_ & 0x00000002) == 0x00000002)) { - fields_ = fields_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - vertexes_ = java.util.Collections.unmodifiableList(vertexes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddVertexesRequest.class, lgraph.Lgraph.AddVertexesRequest.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList fields_; - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_; - } - /** - * repeated string fields = 2; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 2; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int VERTEXES_FIELD_NUMBER = 3; - private java.util.List vertexes_; - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public java.util.List getVertexesList() { - return vertexes_; - } - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public java.util.List - getVertexesOrBuilderList() { - return vertexes_; - } - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public int getVertexesCount() { - return vertexes_.size(); - } - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getVertexes(int index) { - return vertexes_.get(index); - } - /** - *
-     * list of vector<FieldData>, each for one vertex
-     * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getVertexesOrBuilder( - int index) { - return vertexes_.get(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; - - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); - } - for (int i = 0; i < vertexes_.size(); i++) { - output.writeMessage(3, vertexes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - for (int i = 0; i < vertexes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, vertexes_.get(i)); - } - 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 lgraph.Lgraph.AddVertexesRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddVertexesRequest other = (lgraph.Lgraph.AddVertexesRequest) obj; - - boolean result = true; - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && getVertexesList() - .equals(other.getVertexesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - if (getVertexesCount() > 0) { - hash = (37 * hash) + VERTEXES_FIELD_NUMBER; - hash = (53 * hash) + getVertexesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddVertexesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesRequest 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 lgraph.Lgraph.AddVertexesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesRequest 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 lgraph.Lgraph.AddVertexesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesRequest 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(lgraph.Lgraph.AddVertexesRequest 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; - } - /** - *
-     * vertex
-     * 
- * - * Protobuf type {@code lgraph.AddVertexesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddVertexesRequest) - lgraph.Lgraph.AddVertexesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddVertexesRequest.class, lgraph.Lgraph.AddVertexesRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddVertexesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVertexesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - if (vertexesBuilder_ == null) { - vertexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - vertexesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesRequest build() { - lgraph.Lgraph.AddVertexesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesRequest buildPartial() { - lgraph.Lgraph.AddVertexesRequest result = new lgraph.Lgraph.AddVertexesRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fields_ = fields_; - if (vertexesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - vertexes_ = java.util.Collections.unmodifiableList(vertexes_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.vertexes_ = vertexes_; - } else { - result.vertexes_ = vertexesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddVertexesRequest) { - return mergeFrom((lgraph.Lgraph.AddVertexesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddVertexesRequest other) { - if (other == lgraph.Lgraph.AddVertexesRequest.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (vertexesBuilder_ == null) { - if (!other.vertexes_.isEmpty()) { - if (vertexes_.isEmpty()) { - vertexes_ = other.vertexes_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureVertexesIsMutable(); - vertexes_.addAll(other.vertexes_); - } - onChanged(); - } - } else { - if (!other.vertexes_.isEmpty()) { - if (vertexesBuilder_.isEmpty()) { - vertexesBuilder_.dispose(); - vertexesBuilder_ = null; - vertexes_ = other.vertexes_; - bitField0_ = (bitField0_ & ~0x00000004); - vertexesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVertexesFieldBuilder() : null; - } else { - vertexesBuilder_.addAllMessages(other.vertexes_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLabel()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddVertexesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddVertexesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * repeated string fields = 2; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 2; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * repeated string fields = 2; - */ - public Builder setFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addAllFields( - java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private java.util.List vertexes_ = - java.util.Collections.emptyList(); - private void ensureVertexesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - vertexes_ = new java.util.ArrayList(vertexes_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> vertexesBuilder_; - - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public java.util.List getVertexesList() { - if (vertexesBuilder_ == null) { - return java.util.Collections.unmodifiableList(vertexes_); - } else { - return vertexesBuilder_.getMessageList(); - } - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public int getVertexesCount() { - if (vertexesBuilder_ == null) { - return vertexes_.size(); - } else { - return vertexesBuilder_.getCount(); - } - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getVertexes(int index) { - if (vertexesBuilder_ == null) { - return vertexes_.get(index); - } else { - return vertexesBuilder_.getMessage(index); - } - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder setVertexes( - int index, lgraph.Lgraph.ListOfProtoFieldData value) { - if (vertexesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVertexesIsMutable(); - vertexes_.set(index, value); - onChanged(); - } else { - vertexesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder setVertexes( - int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (vertexesBuilder_ == null) { - ensureVertexesIsMutable(); - vertexes_.set(index, builderForValue.build()); - onChanged(); - } else { - vertexesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder addVertexes(lgraph.Lgraph.ListOfProtoFieldData value) { - if (vertexesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVertexesIsMutable(); - vertexes_.add(value); - onChanged(); - } else { - vertexesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder addVertexes( - int index, lgraph.Lgraph.ListOfProtoFieldData value) { - if (vertexesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVertexesIsMutable(); - vertexes_.add(index, value); - onChanged(); - } else { - vertexesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder addVertexes( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (vertexesBuilder_ == null) { - ensureVertexesIsMutable(); - vertexes_.add(builderForValue.build()); - onChanged(); - } else { - vertexesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder addVertexes( - int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (vertexesBuilder_ == null) { - ensureVertexesIsMutable(); - vertexes_.add(index, builderForValue.build()); - onChanged(); - } else { - vertexesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder addAllVertexes( - java.lang.Iterable values) { - if (vertexesBuilder_ == null) { - ensureVertexesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertexes_); - onChanged(); - } else { - vertexesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder clearVertexes() { - if (vertexesBuilder_ == null) { - vertexes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - vertexesBuilder_.clear(); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public Builder removeVertexes(int index) { - if (vertexesBuilder_ == null) { - ensureVertexesIsMutable(); - vertexes_.remove(index); - onChanged(); - } else { - vertexesBuilder_.remove(index); - } - return this; - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getVertexesBuilder( - int index) { - return getVertexesFieldBuilder().getBuilder(index); - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getVertexesOrBuilder( - int index) { - if (vertexesBuilder_ == null) { - return vertexes_.get(index); } else { - return vertexesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public java.util.List - getVertexesOrBuilderList() { - if (vertexesBuilder_ != null) { - return vertexesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(vertexes_); - } - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder addVertexesBuilder() { - return getVertexesFieldBuilder().addBuilder( - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()); - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder addVertexesBuilder( - int index) { - return getVertexesFieldBuilder().addBuilder( - index, lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()); - } - /** - *
-       * list of vector<FieldData>, each for one vertex
-       * 
- * - * repeated .lgraph.ListOfProtoFieldData vertexes = 3; - */ - public java.util.List - getVertexesBuilderList() { - return getVertexesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getVertexesFieldBuilder() { - if (vertexesBuilder_ == null) { - vertexesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - vertexes_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - vertexes_ = null; - } - return vertexesBuilder_; - } - @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:lgraph.AddVertexesRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddVertexesRequest) - private static final lgraph.Lgraph.AddVertexesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddVertexesRequest(); - } - - public static lgraph.Lgraph.AddVertexesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddVertexesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddVertexesRequest(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 lgraph.Lgraph.AddVertexesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddVertexesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddVertexesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - java.util.List getVidList(); - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - int getVidCount(); - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - long getVid(int index); - } - /** - * Protobuf type {@code lgraph.AddVertexesResponse} - */ - public static final class AddVertexesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddVertexesResponse) - AddVertexesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddVertexesResponse.newBuilder() to construct. - private AddVertexesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddVertexesResponse() { - vid_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddVertexesResponse( - 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 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - vid_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vid_.add(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - vid_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - vid_.add(input.readInt64()); - } - input.popLimit(limit); - 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) == 0x00000001)) { - vid_ = java.util.Collections.unmodifiableList(vid_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddVertexesResponse.class, lgraph.Lgraph.AddVertexesResponse.Builder.class); - } - - public static final int VID_FIELD_NUMBER = 1; - private java.util.List vid_; - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - public java.util.List - getVidList() { - return vid_; - } - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - public int getVidCount() { - return vid_.size(); - } - /** - *
-     * returns list of vids of each vertex if successful, otherwise -1
-     * 
- * - * repeated int64 vid = 1; - */ - public long getVid(int index) { - return vid_.get(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 { - for (int i = 0; i < vid_.size(); i++) { - output.writeInt64(1, vid_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < vid_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(vid_.get(i)); - } - size += dataSize; - size += 1 * getVidList().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 lgraph.Lgraph.AddVertexesResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddVertexesResponse other = (lgraph.Lgraph.AddVertexesResponse) obj; - - boolean result = true; - result = result && getVidList() - .equals(other.getVidList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVidCount() > 0) { - hash = (37 * hash) + VID_FIELD_NUMBER; - hash = (53 * hash) + getVidList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddVertexesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddVertexesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesResponse 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 lgraph.Lgraph.AddVertexesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesResponse 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 lgraph.Lgraph.AddVertexesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddVertexesResponse 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(lgraph.Lgraph.AddVertexesResponse 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 lgraph.AddVertexesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddVertexesResponse) - lgraph.Lgraph.AddVertexesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddVertexesResponse.class, lgraph.Lgraph.AddVertexesResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddVertexesResponse.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(); - vid_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddVertexesResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesResponse build() { - lgraph.Lgraph.AddVertexesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddVertexesResponse buildPartial() { - lgraph.Lgraph.AddVertexesResponse result = new lgraph.Lgraph.AddVertexesResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - vid_ = java.util.Collections.unmodifiableList(vid_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.vid_ = vid_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddVertexesResponse) { - return mergeFrom((lgraph.Lgraph.AddVertexesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddVertexesResponse other) { - if (other == lgraph.Lgraph.AddVertexesResponse.getDefaultInstance()) return this; - if (!other.vid_.isEmpty()) { - if (vid_.isEmpty()) { - vid_ = other.vid_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVidIsMutable(); - vid_.addAll(other.vid_); - } - 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 { - lgraph.Lgraph.AddVertexesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddVertexesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List vid_ = java.util.Collections.emptyList(); - private void ensureVidIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - vid_ = new java.util.ArrayList(vid_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public java.util.List - getVidList() { - return java.util.Collections.unmodifiableList(vid_); - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public int getVidCount() { - return vid_.size(); - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public long getVid(int index) { - return vid_.get(index); - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public Builder setVid( - int index, long value) { - ensureVidIsMutable(); - vid_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public Builder addVid(long value) { - ensureVidIsMutable(); - vid_.add(value); - onChanged(); - return this; - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public Builder addAllVid( - java.lang.Iterable values) { - ensureVidIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vid_); - onChanged(); - return this; - } - /** - *
-       * returns list of vids of each vertex if successful, otherwise -1
-       * 
- * - * repeated int64 vid = 1; - */ - public Builder clearVid() { - vid_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - 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:lgraph.AddVertexesResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddVertexesResponse) - private static final lgraph.Lgraph.AddVertexesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddVertexesResponse(); - } - - public static lgraph.Lgraph.AddVertexesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddVertexesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddVertexesResponse(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 lgraph.Lgraph.AddVertexesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelVertexRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelVertexRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 vid = 1; - */ - boolean hasVid(); - /** - * required int64 vid = 1; - */ - long getVid(); - } - /** - * Protobuf type {@code lgraph.DelVertexRequest} - */ - public static final class DelVertexRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelVertexRequest) - DelVertexRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelVertexRequest.newBuilder() to construct. - private DelVertexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelVertexRequest() { - vid_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelVertexRequest( - 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 8: { - bitField0_ |= 0x00000001; - vid_ = input.readInt64(); - 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 lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelVertexRequest.class, lgraph.Lgraph.DelVertexRequest.Builder.class); - } - - private int bitField0_; - public static final int VID_FIELD_NUMBER = 1; - private long vid_; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVid()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, vid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, vid_); - } - 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 lgraph.Lgraph.DelVertexRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelVertexRequest other = (lgraph.Lgraph.DelVertexRequest) obj; - - boolean result = true; - result = result && (hasVid() == other.hasVid()); - if (hasVid()) { - result = result && (getVid() - == other.getVid()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVid()) { - hash = (37 * hash) + VID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVid()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelVertexRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexRequest 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 lgraph.Lgraph.DelVertexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexRequest 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 lgraph.Lgraph.DelVertexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexRequest 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(lgraph.Lgraph.DelVertexRequest 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 lgraph.DelVertexRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelVertexRequest) - lgraph.Lgraph.DelVertexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelVertexRequest.class, lgraph.Lgraph.DelVertexRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelVertexRequest.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(); - vid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexRequest build() { - lgraph.Lgraph.DelVertexRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexRequest buildPartial() { - lgraph.Lgraph.DelVertexRequest result = new lgraph.Lgraph.DelVertexRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.vid_ = vid_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelVertexRequest) { - return mergeFrom((lgraph.Lgraph.DelVertexRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelVertexRequest other) { - if (other == lgraph.Lgraph.DelVertexRequest.getDefaultInstance()) return this; - if (other.hasVid()) { - setVid(other.getVid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVid()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelVertexRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelVertexRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long vid_ ; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - /** - * required int64 vid = 1; - */ - public Builder setVid(long value) { - bitField0_ |= 0x00000001; - vid_ = value; - onChanged(); - return this; - } - /** - * required int64 vid = 1; - */ - public Builder clearVid() { - bitField0_ = (bitField0_ & ~0x00000001); - vid_ = 0L; - 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:lgraph.DelVertexRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelVertexRequest) - private static final lgraph.Lgraph.DelVertexRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelVertexRequest(); - } - - public static lgraph.Lgraph.DelVertexRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelVertexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelVertexRequest(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 lgraph.Lgraph.DelVertexRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelVertexResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelVertexResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 n_ins = 1; - */ - boolean hasNIns(); - /** - * required int64 n_ins = 1; - */ - long getNIns(); - - /** - * required int64 n_outs = 2; - */ - boolean hasNOuts(); - /** - * required int64 n_outs = 2; - */ - long getNOuts(); - } - /** - * Protobuf type {@code lgraph.DelVertexResponse} - */ - public static final class DelVertexResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelVertexResponse) - DelVertexResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelVertexResponse.newBuilder() to construct. - private DelVertexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelVertexResponse() { - nIns_ = 0L; - nOuts_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelVertexResponse( - 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 8: { - bitField0_ |= 0x00000001; - nIns_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - nOuts_ = input.readInt64(); - 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 lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelVertexResponse.class, lgraph.Lgraph.DelVertexResponse.Builder.class); - } - - private int bitField0_; - public static final int N_INS_FIELD_NUMBER = 1; - private long nIns_; - /** - * required int64 n_ins = 1; - */ - public boolean hasNIns() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 n_ins = 1; - */ - public long getNIns() { - return nIns_; - } - - public static final int N_OUTS_FIELD_NUMBER = 2; - private long nOuts_; - /** - * required int64 n_outs = 2; - */ - public boolean hasNOuts() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 n_outs = 2; - */ - public long getNOuts() { - return nOuts_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasNIns()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNOuts()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, nIns_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, nOuts_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, nIns_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, nOuts_); - } - 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 lgraph.Lgraph.DelVertexResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelVertexResponse other = (lgraph.Lgraph.DelVertexResponse) obj; - - boolean result = true; - result = result && (hasNIns() == other.hasNIns()); - if (hasNIns()) { - result = result && (getNIns() - == other.getNIns()); - } - result = result && (hasNOuts() == other.hasNOuts()); - if (hasNOuts()) { - result = result && (getNOuts() - == other.getNOuts()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNIns()) { - hash = (37 * hash) + N_INS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNIns()); - } - if (hasNOuts()) { - hash = (37 * hash) + N_OUTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getNOuts()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelVertexResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelVertexResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexResponse 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 lgraph.Lgraph.DelVertexResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexResponse 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 lgraph.Lgraph.DelVertexResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelVertexResponse 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(lgraph.Lgraph.DelVertexResponse 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 lgraph.DelVertexResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelVertexResponse) - lgraph.Lgraph.DelVertexResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelVertexResponse.class, lgraph.Lgraph.DelVertexResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelVertexResponse.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(); - nIns_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - nOuts_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelVertexResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexResponse build() { - lgraph.Lgraph.DelVertexResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelVertexResponse buildPartial() { - lgraph.Lgraph.DelVertexResponse result = new lgraph.Lgraph.DelVertexResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.nIns_ = nIns_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.nOuts_ = nOuts_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelVertexResponse) { - return mergeFrom((lgraph.Lgraph.DelVertexResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelVertexResponse other) { - if (other == lgraph.Lgraph.DelVertexResponse.getDefaultInstance()) return this; - if (other.hasNIns()) { - setNIns(other.getNIns()); - } - if (other.hasNOuts()) { - setNOuts(other.getNOuts()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasNIns()) { - return false; - } - if (!hasNOuts()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelVertexResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelVertexResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long nIns_ ; - /** - * required int64 n_ins = 1; - */ - public boolean hasNIns() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 n_ins = 1; - */ - public long getNIns() { - return nIns_; - } - /** - * required int64 n_ins = 1; - */ - public Builder setNIns(long value) { - bitField0_ |= 0x00000001; - nIns_ = value; - onChanged(); - return this; - } - /** - * required int64 n_ins = 1; - */ - public Builder clearNIns() { - bitField0_ = (bitField0_ & ~0x00000001); - nIns_ = 0L; - onChanged(); - return this; - } - - private long nOuts_ ; - /** - * required int64 n_outs = 2; - */ - public boolean hasNOuts() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 n_outs = 2; - */ - public long getNOuts() { - return nOuts_; - } - /** - * required int64 n_outs = 2; - */ - public Builder setNOuts(long value) { - bitField0_ |= 0x00000002; - nOuts_ = value; - onChanged(); - return this; - } - /** - * required int64 n_outs = 2; - */ - public Builder clearNOuts() { - bitField0_ = (bitField0_ & ~0x00000002); - nOuts_ = 0L; - 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:lgraph.DelVertexResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelVertexResponse) - private static final lgraph.Lgraph.DelVertexResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelVertexResponse(); - } - - public static lgraph.Lgraph.DelVertexResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelVertexResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelVertexResponse(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 lgraph.Lgraph.DelVertexResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModVertexRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModVertexRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 vid = 1; - */ - boolean hasVid(); - /** - * required int64 vid = 1; - */ - long getVid(); - - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - boolean hasLabel(); - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - java.lang.String getLabel(); - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * repeated string fields = 3; - */ - java.util.List - getFieldsList(); - /** - * repeated string fields = 3; - */ - int getFieldsCount(); - /** - * repeated string fields = 3; - */ - java.lang.String getFields(int index); - /** - * repeated string fields = 3; - */ - com.google.protobuf.ByteString - getFieldsBytes(int index); - - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - boolean hasValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - lgraph.Lgraph.ListOfProtoFieldData getValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder(); - } - /** - * Protobuf type {@code lgraph.ModVertexRequest} - */ - public static final class ModVertexRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModVertexRequest) - ModVertexRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModVertexRequest.newBuilder() to construct. - private ModVertexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModVertexRequest() { - vid_ = 0L; - label_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModVertexRequest( - 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 8: { - bitField0_ |= 0x00000001; - vid_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - label_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - fields_.add(bs); - break; - } - case 34: { - lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = values_.toBuilder(); - } - values_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(values_); - values_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - 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_ & 0x00000004) == 0x00000004)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModVertexRequest.class, lgraph.Lgraph.ModVertexRequest.Builder.class); - } - - private int bitField0_; - public static final int VID_FIELD_NUMBER = 1; - private long vid_; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - *
-     * if label not set, then
-     * 
- * - * optional string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList fields_; - /** - * repeated string fields = 3; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_; - } - /** - * repeated string fields = 3; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 3; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 3; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int VALUES_FIELD_NUMBER = 4; - private lgraph.Lgraph.ListOfProtoFieldData values_; - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasVid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValues()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, vid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fields_.getRaw(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, getValues()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, vid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getValues()); - } - 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 lgraph.Lgraph.ModVertexRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ModVertexRequest other = (lgraph.Lgraph.ModVertexRequest) obj; - - boolean result = true; - result = result && (hasVid() == other.hasVid()); - if (hasVid()) { - result = result && (getVid() - == other.getVid()); - } - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && (hasValues() == other.hasValues()); - if (hasValues()) { - result = result && getValues() - .equals(other.getValues()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVid()) { - hash = (37 * hash) + VID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVid()); - } - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - if (hasValues()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModVertexRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexRequest 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 lgraph.Lgraph.ModVertexRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexRequest 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 lgraph.Lgraph.ModVertexRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexRequest 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(lgraph.Lgraph.ModVertexRequest 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 lgraph.ModVertexRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModVertexRequest) - lgraph.Lgraph.ModVertexRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModVertexRequest.class, lgraph.Lgraph.ModVertexRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ModVertexRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - vid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (valuesBuilder_ == null) { - values_ = null; - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexRequest build() { - lgraph.Lgraph.ModVertexRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexRequest buildPartial() { - lgraph.Lgraph.ModVertexRequest result = new lgraph.Lgraph.ModVertexRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.vid_ = vid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.label_ = label_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.fields_ = fields_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - if (valuesBuilder_ == null) { - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModVertexRequest) { - return mergeFrom((lgraph.Lgraph.ModVertexRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModVertexRequest other) { - if (other == lgraph.Lgraph.ModVertexRequest.getDefaultInstance()) return this; - if (other.hasVid()) { - setVid(other.getVid()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000002; - label_ = other.label_; - onChanged(); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (other.hasValues()) { - mergeValues(other.getValues()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVid()) { - return false; - } - if (!hasValues()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ModVertexRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModVertexRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long vid_ ; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - /** - * required int64 vid = 1; - */ - public Builder setVid(long value) { - bitField0_ |= 0x00000001; - vid_ = value; - onChanged(); - return this; - } - /** - * required int64 vid = 1; - */ - public Builder clearVid() { - bitField0_ = (bitField0_ & ~0x00000001); - vid_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - *
-       * if label not set, then
-       * 
- * - * optional string label = 2; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string fields = 3; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * repeated string fields = 3; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 3; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 3; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * repeated string fields = 3; - */ - public Builder setFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string fields = 3; - */ - public Builder addFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * repeated string fields = 3; - */ - public Builder addAllFields( - java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - return this; - } - /** - * repeated string fields = 3; - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string fields = 3; - */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private lgraph.Lgraph.ListOfProtoFieldData values_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> valuesBuilder_; - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - if (valuesBuilder_ == null) { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } else { - return valuesBuilder_.getMessage(); - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public Builder setValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - values_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public Builder setValues( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - values_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public Builder mergeValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - values_ != null && - values_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) { - values_ = - lgraph.Lgraph.ListOfProtoFieldData.newBuilder(values_).mergeFrom(value).buildPartial(); - } else { - values_ = value; - } - onChanged(); - } else { - valuesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = null; - onChanged(); - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getValuesBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getValuesFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - return values_ == null ? - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:lgraph.ModVertexRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModVertexRequest) - private static final lgraph.Lgraph.ModVertexRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModVertexRequest(); - } - - public static lgraph.Lgraph.ModVertexRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModVertexRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModVertexRequest(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 lgraph.Lgraph.ModVertexRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModVertexResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModVertexResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ModVertexResponse} - */ - public static final class ModVertexResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModVertexResponse) - ModVertexResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModVertexResponse.newBuilder() to construct. - private ModVertexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModVertexResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModVertexResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModVertexResponse.class, lgraph.Lgraph.ModVertexResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ModVertexResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ModVertexResponse other = (lgraph.Lgraph.ModVertexResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModVertexResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModVertexResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexResponse 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 lgraph.Lgraph.ModVertexResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexResponse 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 lgraph.Lgraph.ModVertexResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModVertexResponse 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(lgraph.Lgraph.ModVertexResponse 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 lgraph.ModVertexResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModVertexResponse) - lgraph.Lgraph.ModVertexResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModVertexResponse.class, lgraph.Lgraph.ModVertexResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ModVertexResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModVertexResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexResponse build() { - lgraph.Lgraph.ModVertexResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModVertexResponse buildPartial() { - lgraph.Lgraph.ModVertexResponse result = new lgraph.Lgraph.ModVertexResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModVertexResponse) { - return mergeFrom((lgraph.Lgraph.ModVertexResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModVertexResponse other) { - if (other == lgraph.Lgraph.ModVertexResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ModVertexResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModVertexResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ModVertexResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModVertexResponse) - private static final lgraph.Lgraph.ModVertexResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModVertexResponse(); - } - - public static lgraph.Lgraph.ModVertexResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModVertexResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModVertexResponse(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 lgraph.Lgraph.ModVertexResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddEdgesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddEdgesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string label = 1; - */ - boolean hasLabel(); - /** - * required string label = 1; - */ - java.lang.String getLabel(); - /** - * required string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * repeated string fields = 2; - */ - java.util.List - getFieldsList(); - /** - * repeated string fields = 2; - */ - int getFieldsCount(); - /** - * repeated string fields = 2; - */ - java.lang.String getFields(int index); - /** - * repeated string fields = 2; - */ - com.google.protobuf.ByteString - getFieldsBytes(int index); - - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - java.util.List - getEdgesList(); - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - lgraph.Lgraph.SrcDstFieldValues getEdges(int index); - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - int getEdgesCount(); - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - java.util.List - getEdgesOrBuilderList(); - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder( - int index); - } - /** - *
-   * edge
-   * 
- * - * Protobuf type {@code lgraph.AddEdgesRequest} - */ - public static final class AddEdgesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddEdgesRequest) - AddEdgesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddEdgesRequest.newBuilder() to construct. - private AddEdgesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddEdgesRequest() { - label_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - edges_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddEdgesRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - fields_.add(bs); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - edges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - edges_.add( - input.readMessage(lgraph.Lgraph.SrcDstFieldValues.PARSER, extensionRegistry)); - 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_ & 0x00000002) == 0x00000002)) { - fields_ = fields_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - edges_ = java.util.Collections.unmodifiableList(edges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddEdgesRequest.class, lgraph.Lgraph.AddEdgesRequest.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList fields_; - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_; - } - /** - * repeated string fields = 2; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 2; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int EDGES_FIELD_NUMBER = 3; - private java.util.List edges_; - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public java.util.List getEdgesList() { - return edges_; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public java.util.List - getEdgesOrBuilderList() { - return edges_; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public int getEdgesCount() { - return edges_.size(); - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValues getEdges(int index) { - return edges_.get(index); - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder( - int index) { - return edges_.get(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; - - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getEdgesCount(); i++) { - if (!getEdges(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fields_.getRaw(i)); - } - for (int i = 0; i < edges_.size(); i++) { - output.writeMessage(3, edges_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - for (int i = 0; i < edges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, edges_.get(i)); - } - 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 lgraph.Lgraph.AddEdgesRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddEdgesRequest other = (lgraph.Lgraph.AddEdgesRequest) obj; - - boolean result = true; - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && getEdgesList() - .equals(other.getEdgesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - if (getEdgesCount() > 0) { - hash = (37 * hash) + EDGES_FIELD_NUMBER; - hash = (53 * hash) + getEdgesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddEdgesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesRequest 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 lgraph.Lgraph.AddEdgesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesRequest 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 lgraph.Lgraph.AddEdgesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesRequest 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(lgraph.Lgraph.AddEdgesRequest 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; - } - /** - *
-     * edge
-     * 
- * - * Protobuf type {@code lgraph.AddEdgesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddEdgesRequest) - lgraph.Lgraph.AddEdgesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddEdgesRequest.class, lgraph.Lgraph.AddEdgesRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddEdgesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEdgesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - if (edgesBuilder_ == null) { - edges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - edgesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesRequest build() { - lgraph.Lgraph.AddEdgesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesRequest buildPartial() { - lgraph.Lgraph.AddEdgesRequest result = new lgraph.Lgraph.AddEdgesRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.fields_ = fields_; - if (edgesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - edges_ = java.util.Collections.unmodifiableList(edges_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.edges_ = edges_; - } else { - result.edges_ = edgesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddEdgesRequest) { - return mergeFrom((lgraph.Lgraph.AddEdgesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddEdgesRequest other) { - if (other == lgraph.Lgraph.AddEdgesRequest.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (edgesBuilder_ == null) { - if (!other.edges_.isEmpty()) { - if (edges_.isEmpty()) { - edges_ = other.edges_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEdgesIsMutable(); - edges_.addAll(other.edges_); - } - onChanged(); - } - } else { - if (!other.edges_.isEmpty()) { - if (edgesBuilder_.isEmpty()) { - edgesBuilder_.dispose(); - edgesBuilder_ = null; - edges_ = other.edges_; - bitField0_ = (bitField0_ & ~0x00000004); - edgesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEdgesFieldBuilder() : null; - } else { - edgesBuilder_.addAllMessages(other.edges_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLabel()) { - return false; - } - for (int i = 0; i < getEdgesCount(); i++) { - if (!getEdges(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddEdgesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddEdgesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * required string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * repeated string fields = 2; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 2; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 2; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * repeated string fields = 2; - */ - public Builder setFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addAllFields( - java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string fields = 2; - */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private java.util.List edges_ = - java.util.Collections.emptyList(); - private void ensureEdgesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - edges_ = new java.util.ArrayList(edges_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder> edgesBuilder_; - - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public java.util.List getEdgesList() { - if (edgesBuilder_ == null) { - return java.util.Collections.unmodifiableList(edges_); - } else { - return edgesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public int getEdgesCount() { - if (edgesBuilder_ == null) { - return edges_.size(); - } else { - return edgesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValues getEdges(int index) { - if (edgesBuilder_ == null) { - return edges_.get(index); - } else { - return edgesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder setEdges( - int index, lgraph.Lgraph.SrcDstFieldValues value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.set(index, value); - onChanged(); - } else { - edgesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder setEdges( - int index, lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.set(index, builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder addEdges(lgraph.Lgraph.SrcDstFieldValues value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.add(value); - onChanged(); - } else { - edgesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder addEdges( - int index, lgraph.Lgraph.SrcDstFieldValues value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.add(index, value); - onChanged(); - } else { - edgesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder addEdges( - lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.add(builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder addEdges( - int index, lgraph.Lgraph.SrcDstFieldValues.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.add(index, builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder addAllEdges( - java.lang.Iterable values) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, edges_); - onChanged(); - } else { - edgesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder clearEdges() { - if (edgesBuilder_ == null) { - edges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - edgesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public Builder removeEdges(int index) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.remove(index); - onChanged(); - } else { - edgesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValues.Builder getEdgesBuilder( - int index) { - return getEdgesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValuesOrBuilder getEdgesOrBuilder( - int index) { - if (edgesBuilder_ == null) { - return edges_.get(index); } else { - return edgesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public java.util.List - getEdgesOrBuilderList() { - if (edgesBuilder_ != null) { - return edgesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(edges_); - } - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValues.Builder addEdgesBuilder() { - return getEdgesFieldBuilder().addBuilder( - lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance()); - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public lgraph.Lgraph.SrcDstFieldValues.Builder addEdgesBuilder( - int index) { - return getEdgesFieldBuilder().addBuilder( - index, lgraph.Lgraph.SrcDstFieldValues.getDefaultInstance()); - } - /** - * repeated .lgraph.SrcDstFieldValues edges = 3; - */ - public java.util.List - getEdgesBuilderList() { - return getEdgesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder> - getEdgesFieldBuilder() { - if (edgesBuilder_ == null) { - edgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.SrcDstFieldValues, lgraph.Lgraph.SrcDstFieldValues.Builder, lgraph.Lgraph.SrcDstFieldValuesOrBuilder>( - edges_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - edges_ = null; - } - return edgesBuilder_; - } - @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:lgraph.AddEdgesRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddEdgesRequest) - private static final lgraph.Lgraph.AddEdgesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddEdgesRequest(); - } - - public static lgraph.Lgraph.AddEdgesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddEdgesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddEdgesRequest(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 lgraph.Lgraph.AddEdgesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddEdgesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddEdgesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 lid = 1; - */ - boolean hasLid(); - /** - * required int64 lid = 1; - */ - long getLid(); - - /** - * required int64 tid = 2; - */ - boolean hasTid(); - /** - * required int64 tid = 2; - */ - long getTid(); - - /** - * repeated int64 eids = 3; - */ - java.util.List getEidsList(); - /** - * repeated int64 eids = 3; - */ - int getEidsCount(); - /** - * repeated int64 eids = 3; - */ - long getEids(int index); - } - /** - * Protobuf type {@code lgraph.AddEdgesResponse} - */ - public static final class AddEdgesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddEdgesResponse) - AddEdgesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddEdgesResponse.newBuilder() to construct. - private AddEdgesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddEdgesResponse() { - lid_ = 0L; - tid_ = 0L; - eids_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddEdgesResponse( - 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 8: { - bitField0_ |= 0x00000001; - lid_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - tid_ = input.readInt64(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - eids_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - eids_.add(input.readInt64()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - eids_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - eids_.add(input.readInt64()); - } - input.popLimit(limit); - 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_ & 0x00000004) == 0x00000004)) { - eids_ = java.util.Collections.unmodifiableList(eids_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddEdgesResponse.class, lgraph.Lgraph.AddEdgesResponse.Builder.class); - } - - private int bitField0_; - public static final int LID_FIELD_NUMBER = 1; - private long lid_; - /** - * required int64 lid = 1; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 lid = 1; - */ - public long getLid() { - return lid_; - } - - public static final int TID_FIELD_NUMBER = 2; - private long tid_; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - - public static final int EIDS_FIELD_NUMBER = 3; - private java.util.List eids_; - /** - * repeated int64 eids = 3; - */ - public java.util.List - getEidsList() { - return eids_; - } - /** - * repeated int64 eids = 3; - */ - public int getEidsCount() { - return eids_.size(); - } - /** - * repeated int64 eids = 3; - */ - public long getEids(int index) { - return eids_.get(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; - - if (!hasLid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTid()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, lid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, tid_); - } - for (int i = 0; i < eids_.size(); i++) { - output.writeInt64(3, eids_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, lid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, tid_); - } - { - int dataSize = 0; - for (int i = 0; i < eids_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(eids_.get(i)); - } - size += dataSize; - size += 1 * getEidsList().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 lgraph.Lgraph.AddEdgesResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddEdgesResponse other = (lgraph.Lgraph.AddEdgesResponse) obj; - - boolean result = true; - result = result && (hasLid() == other.hasLid()); - if (hasLid()) { - result = result && (getLid() - == other.getLid()); - } - result = result && (hasTid() == other.hasTid()); - if (hasTid()) { - result = result && (getTid() - == other.getTid()); - } - result = result && getEidsList() - .equals(other.getEidsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLid()) { - hash = (37 * hash) + LID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLid()); - } - if (hasTid()) { - hash = (37 * hash) + TID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTid()); - } - if (getEidsCount() > 0) { - hash = (37 * hash) + EIDS_FIELD_NUMBER; - hash = (53 * hash) + getEidsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddEdgesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddEdgesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesResponse 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 lgraph.Lgraph.AddEdgesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesResponse 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 lgraph.Lgraph.AddEdgesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddEdgesResponse 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(lgraph.Lgraph.AddEdgesResponse 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 lgraph.AddEdgesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddEdgesResponse) - lgraph.Lgraph.AddEdgesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddEdgesResponse.class, lgraph.Lgraph.AddEdgesResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddEdgesResponse.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(); - lid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - tid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - eids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddEdgesResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesResponse build() { - lgraph.Lgraph.AddEdgesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddEdgesResponse buildPartial() { - lgraph.Lgraph.AddEdgesResponse result = new lgraph.Lgraph.AddEdgesResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.lid_ = lid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.tid_ = tid_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - eids_ = java.util.Collections.unmodifiableList(eids_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.eids_ = eids_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddEdgesResponse) { - return mergeFrom((lgraph.Lgraph.AddEdgesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddEdgesResponse other) { - if (other == lgraph.Lgraph.AddEdgesResponse.getDefaultInstance()) return this; - if (other.hasLid()) { - setLid(other.getLid()); - } - if (other.hasTid()) { - setTid(other.getTid()); - } - if (!other.eids_.isEmpty()) { - if (eids_.isEmpty()) { - eids_ = other.eids_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEidsIsMutable(); - eids_.addAll(other.eids_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLid()) { - return false; - } - if (!hasTid()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddEdgesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddEdgesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long lid_ ; - /** - * required int64 lid = 1; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 lid = 1; - */ - public long getLid() { - return lid_; - } - /** - * required int64 lid = 1; - */ - public Builder setLid(long value) { - bitField0_ |= 0x00000001; - lid_ = value; - onChanged(); - return this; - } - /** - * required int64 lid = 1; - */ - public Builder clearLid() { - bitField0_ = (bitField0_ & ~0x00000001); - lid_ = 0L; - onChanged(); - return this; - } - - private long tid_ ; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - /** - * required int64 tid = 2; - */ - public Builder setTid(long value) { - bitField0_ |= 0x00000002; - tid_ = value; - onChanged(); - return this; - } - /** - * required int64 tid = 2; - */ - public Builder clearTid() { - bitField0_ = (bitField0_ & ~0x00000002); - tid_ = 0L; - onChanged(); - return this; - } - - private java.util.List eids_ = java.util.Collections.emptyList(); - private void ensureEidsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - eids_ = new java.util.ArrayList(eids_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated int64 eids = 3; - */ - public java.util.List - getEidsList() { - return java.util.Collections.unmodifiableList(eids_); - } - /** - * repeated int64 eids = 3; - */ - public int getEidsCount() { - return eids_.size(); - } - /** - * repeated int64 eids = 3; - */ - public long getEids(int index) { - return eids_.get(index); - } - /** - * repeated int64 eids = 3; - */ - public Builder setEids( - int index, long value) { - ensureEidsIsMutable(); - eids_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int64 eids = 3; - */ - public Builder addEids(long value) { - ensureEidsIsMutable(); - eids_.add(value); - onChanged(); - return this; - } - /** - * repeated int64 eids = 3; - */ - public Builder addAllEids( - java.lang.Iterable values) { - ensureEidsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eids_); - onChanged(); - return this; - } - /** - * repeated int64 eids = 3; - */ - public Builder clearEids() { - eids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - 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:lgraph.AddEdgesResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddEdgesResponse) - private static final lgraph.Lgraph.AddEdgesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddEdgesResponse(); - } - - public static lgraph.Lgraph.AddEdgesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddEdgesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddEdgesResponse(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 lgraph.Lgraph.AddEdgesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelEdgeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelEdgeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 src = 1; - */ - boolean hasSrc(); - /** - * required int64 src = 1; - */ - long getSrc(); - - /** - * required int64 tid = 2; - */ - boolean hasTid(); - /** - * required int64 tid = 2; - */ - long getTid(); - - /** - * required int64 lid = 3; - */ - boolean hasLid(); - /** - * required int64 lid = 3; - */ - long getLid(); - - /** - * required int64 dst = 4; - */ - boolean hasDst(); - /** - * required int64 dst = 4; - */ - long getDst(); - - /** - * required int64 eid = 5; - */ - boolean hasEid(); - /** - * required int64 eid = 5; - */ - long getEid(); - } - /** - * Protobuf type {@code lgraph.DelEdgeRequest} - */ - public static final class DelEdgeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelEdgeRequest) - DelEdgeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelEdgeRequest.newBuilder() to construct. - private DelEdgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelEdgeRequest() { - src_ = 0L; - tid_ = 0L; - lid_ = 0L; - dst_ = 0L; - eid_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelEdgeRequest( - 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 8: { - bitField0_ |= 0x00000001; - src_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - tid_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - lid_ = input.readInt64(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - dst_ = input.readInt64(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - eid_ = input.readInt64(); - 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 lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelEdgeRequest.class, lgraph.Lgraph.DelEdgeRequest.Builder.class); - } - - private int bitField0_; - public static final int SRC_FIELD_NUMBER = 1; - private long src_; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - - public static final int TID_FIELD_NUMBER = 2; - private long tid_; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - - public static final int LID_FIELD_NUMBER = 3; - private long lid_; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - - public static final int DST_FIELD_NUMBER = 4; - private long dst_; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - - public static final int EID_FIELD_NUMBER = 5; - private long eid_; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasSrc()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDst()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEid()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, eid_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, eid_); - } - 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 lgraph.Lgraph.DelEdgeRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelEdgeRequest other = (lgraph.Lgraph.DelEdgeRequest) obj; - - boolean result = true; - result = result && (hasSrc() == other.hasSrc()); - if (hasSrc()) { - result = result && (getSrc() - == other.getSrc()); - } - result = result && (hasTid() == other.hasTid()); - if (hasTid()) { - result = result && (getTid() - == other.getTid()); - } - result = result && (hasLid() == other.hasLid()); - if (hasLid()) { - result = result && (getLid() - == other.getLid()); - } - result = result && (hasDst() == other.hasDst()); - if (hasDst()) { - result = result && (getDst() - == other.getDst()); - } - result = result && (hasEid() == other.hasEid()); - if (hasEid()) { - result = result && (getEid() - == other.getEid()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrc()) { - hash = (37 * hash) + SRC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSrc()); - } - if (hasTid()) { - hash = (37 * hash) + TID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTid()); - } - if (hasLid()) { - hash = (37 * hash) + LID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLid()); - } - if (hasDst()) { - hash = (37 * hash) + DST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDst()); - } - if (hasEid()) { - hash = (37 * hash) + EID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEid()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelEdgeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeRequest 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 lgraph.Lgraph.DelEdgeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeRequest 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 lgraph.Lgraph.DelEdgeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeRequest 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(lgraph.Lgraph.DelEdgeRequest 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 lgraph.DelEdgeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelEdgeRequest) - lgraph.Lgraph.DelEdgeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelEdgeRequest.class, lgraph.Lgraph.DelEdgeRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelEdgeRequest.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(); - src_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - tid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - lid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - dst_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - eid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeRequest build() { - lgraph.Lgraph.DelEdgeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeRequest buildPartial() { - lgraph.Lgraph.DelEdgeRequest result = new lgraph.Lgraph.DelEdgeRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.src_ = src_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.tid_ = tid_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lid_ = lid_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.dst_ = dst_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.eid_ = eid_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelEdgeRequest) { - return mergeFrom((lgraph.Lgraph.DelEdgeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelEdgeRequest other) { - if (other == lgraph.Lgraph.DelEdgeRequest.getDefaultInstance()) return this; - if (other.hasSrc()) { - setSrc(other.getSrc()); - } - if (other.hasTid()) { - setTid(other.getTid()); - } - if (other.hasLid()) { - setLid(other.getLid()); - } - if (other.hasDst()) { - setDst(other.getDst()); - } - if (other.hasEid()) { - setEid(other.getEid()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSrc()) { - return false; - } - if (!hasTid()) { - return false; - } - if (!hasLid()) { - return false; - } - if (!hasDst()) { - return false; - } - if (!hasEid()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelEdgeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelEdgeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long src_ ; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - /** - * required int64 src = 1; - */ - public Builder setSrc(long value) { - bitField0_ |= 0x00000001; - src_ = value; - onChanged(); - return this; - } - /** - * required int64 src = 1; - */ - public Builder clearSrc() { - bitField0_ = (bitField0_ & ~0x00000001); - src_ = 0L; - onChanged(); - return this; - } - - private long tid_ ; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - /** - * required int64 tid = 2; - */ - public Builder setTid(long value) { - bitField0_ |= 0x00000002; - tid_ = value; - onChanged(); - return this; - } - /** - * required int64 tid = 2; - */ - public Builder clearTid() { - bitField0_ = (bitField0_ & ~0x00000002); - tid_ = 0L; - onChanged(); - return this; - } - - private long lid_ ; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - /** - * required int64 lid = 3; - */ - public Builder setLid(long value) { - bitField0_ |= 0x00000004; - lid_ = value; - onChanged(); - return this; - } - /** - * required int64 lid = 3; - */ - public Builder clearLid() { - bitField0_ = (bitField0_ & ~0x00000004); - lid_ = 0L; - onChanged(); - return this; - } - - private long dst_ ; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - /** - * required int64 dst = 4; - */ - public Builder setDst(long value) { - bitField0_ |= 0x00000008; - dst_ = value; - onChanged(); - return this; - } - /** - * required int64 dst = 4; - */ - public Builder clearDst() { - bitField0_ = (bitField0_ & ~0x00000008); - dst_ = 0L; - onChanged(); - return this; - } - - private long eid_ ; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - /** - * required int64 eid = 5; - */ - public Builder setEid(long value) { - bitField0_ |= 0x00000010; - eid_ = value; - onChanged(); - return this; - } - /** - * required int64 eid = 5; - */ - public Builder clearEid() { - bitField0_ = (bitField0_ & ~0x00000010); - eid_ = 0L; - 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:lgraph.DelEdgeRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelEdgeRequest) - private static final lgraph.Lgraph.DelEdgeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelEdgeRequest(); - } - - public static lgraph.Lgraph.DelEdgeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelEdgeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelEdgeRequest(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 lgraph.Lgraph.DelEdgeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelEdgeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelEdgeResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DelEdgeResponse} - */ - public static final class DelEdgeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelEdgeResponse) - DelEdgeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelEdgeResponse.newBuilder() to construct. - private DelEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelEdgeResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelEdgeResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelEdgeResponse.class, lgraph.Lgraph.DelEdgeResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DelEdgeResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelEdgeResponse other = (lgraph.Lgraph.DelEdgeResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelEdgeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelEdgeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeResponse 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 lgraph.Lgraph.DelEdgeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeResponse 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 lgraph.Lgraph.DelEdgeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelEdgeResponse 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(lgraph.Lgraph.DelEdgeResponse 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 lgraph.DelEdgeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelEdgeResponse) - lgraph.Lgraph.DelEdgeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelEdgeResponse.class, lgraph.Lgraph.DelEdgeResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelEdgeResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelEdgeResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeResponse build() { - lgraph.Lgraph.DelEdgeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelEdgeResponse buildPartial() { - lgraph.Lgraph.DelEdgeResponse result = new lgraph.Lgraph.DelEdgeResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelEdgeResponse) { - return mergeFrom((lgraph.Lgraph.DelEdgeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelEdgeResponse other) { - if (other == lgraph.Lgraph.DelEdgeResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DelEdgeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelEdgeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DelEdgeResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelEdgeResponse) - private static final lgraph.Lgraph.DelEdgeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelEdgeResponse(); - } - - public static lgraph.Lgraph.DelEdgeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelEdgeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelEdgeResponse(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 lgraph.Lgraph.DelEdgeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModEdgeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModEdgeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 src = 1; - */ - boolean hasSrc(); - /** - * required int64 src = 1; - */ - long getSrc(); - - /** - * required int64 tid = 2; - */ - boolean hasTid(); - /** - * required int64 tid = 2; - */ - long getTid(); - - /** - * required int64 lid = 3; - */ - boolean hasLid(); - /** - * required int64 lid = 3; - */ - long getLid(); - - /** - * required int64 dst = 4; - */ - boolean hasDst(); - /** - * required int64 dst = 4; - */ - long getDst(); - - /** - * required int64 eid = 5; - */ - boolean hasEid(); - /** - * required int64 eid = 5; - */ - long getEid(); - - /** - * repeated string fields = 6; - */ - java.util.List - getFieldsList(); - /** - * repeated string fields = 6; - */ - int getFieldsCount(); - /** - * repeated string fields = 6; - */ - java.lang.String getFields(int index); - /** - * repeated string fields = 6; - */ - com.google.protobuf.ByteString - getFieldsBytes(int index); - - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - boolean hasValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - lgraph.Lgraph.ListOfProtoFieldData getValues(); - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder(); - } - /** - * Protobuf type {@code lgraph.ModEdgeRequest} - */ - public static final class ModEdgeRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModEdgeRequest) - ModEdgeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModEdgeRequest.newBuilder() to construct. - private ModEdgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModEdgeRequest() { - src_ = 0L; - tid_ = 0L; - lid_ = 0L; - dst_ = 0L; - eid_ = 0L; - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModEdgeRequest( - 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 8: { - bitField0_ |= 0x00000001; - src_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - tid_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - lid_ = input.readInt64(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - dst_ = input.readInt64(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - eid_ = input.readInt64(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; - } - fields_.add(bs); - break; - } - case 58: { - lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = values_.toBuilder(); - } - values_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(values_); - values_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - 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_ & 0x00000020) == 0x00000020)) { - fields_ = fields_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModEdgeRequest.class, lgraph.Lgraph.ModEdgeRequest.Builder.class); - } - - private int bitField0_; - public static final int SRC_FIELD_NUMBER = 1; - private long src_; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - - public static final int TID_FIELD_NUMBER = 2; - private long tid_; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - - public static final int LID_FIELD_NUMBER = 3; - private long lid_; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - - public static final int DST_FIELD_NUMBER = 4; - private long dst_; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - - public static final int EID_FIELD_NUMBER = 5; - private long eid_; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - - public static final int FIELDS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList fields_; - /** - * repeated string fields = 6; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_; - } - /** - * repeated string fields = 6; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 6; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 6; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - - public static final int VALUES_FIELD_NUMBER = 7; - private lgraph.Lgraph.ListOfProtoFieldData values_; - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasSrc()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDst()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasValues()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, eid_); - } - for (int i = 0; i < fields_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fields_.getRaw(i)); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(7, getValues()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, eid_); - } - { - int dataSize = 0; - for (int i = 0; i < fields_.size(); i++) { - dataSize += computeStringSizeNoTag(fields_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsList().size(); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getValues()); - } - 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 lgraph.Lgraph.ModEdgeRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ModEdgeRequest other = (lgraph.Lgraph.ModEdgeRequest) obj; - - boolean result = true; - result = result && (hasSrc() == other.hasSrc()); - if (hasSrc()) { - result = result && (getSrc() - == other.getSrc()); - } - result = result && (hasTid() == other.hasTid()); - if (hasTid()) { - result = result && (getTid() - == other.getTid()); - } - result = result && (hasLid() == other.hasLid()); - if (hasLid()) { - result = result && (getLid() - == other.getLid()); - } - result = result && (hasDst() == other.hasDst()); - if (hasDst()) { - result = result && (getDst() - == other.getDst()); - } - result = result && (hasEid() == other.hasEid()); - if (hasEid()) { - result = result && (getEid() - == other.getEid()); - } - result = result && getFieldsList() - .equals(other.getFieldsList()); - result = result && (hasValues() == other.hasValues()); - if (hasValues()) { - result = result && getValues() - .equals(other.getValues()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrc()) { - hash = (37 * hash) + SRC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSrc()); - } - if (hasTid()) { - hash = (37 * hash) + TID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTid()); - } - if (hasLid()) { - hash = (37 * hash) + LID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLid()); - } - if (hasDst()) { - hash = (37 * hash) + DST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDst()); - } - if (hasEid()) { - hash = (37 * hash) + EID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEid()); - } - if (getFieldsCount() > 0) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + getFieldsList().hashCode(); - } - if (hasValues()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModEdgeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeRequest 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 lgraph.Lgraph.ModEdgeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeRequest 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 lgraph.Lgraph.ModEdgeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeRequest 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(lgraph.Lgraph.ModEdgeRequest 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 lgraph.ModEdgeRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModEdgeRequest) - lgraph.Lgraph.ModEdgeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModEdgeRequest.class, lgraph.Lgraph.ModEdgeRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ModEdgeRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - src_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - tid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - lid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - dst_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - eid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - if (valuesBuilder_ == null) { - values_ = null; - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeRequest build() { - lgraph.Lgraph.ModEdgeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeRequest buildPartial() { - lgraph.Lgraph.ModEdgeRequest result = new lgraph.Lgraph.ModEdgeRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.src_ = src_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.tid_ = tid_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lid_ = lid_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.dst_ = dst_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.eid_ = eid_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = fields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.fields_ = fields_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - if (valuesBuilder_ == null) { - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModEdgeRequest) { - return mergeFrom((lgraph.Lgraph.ModEdgeRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModEdgeRequest other) { - if (other == lgraph.Lgraph.ModEdgeRequest.getDefaultInstance()) return this; - if (other.hasSrc()) { - setSrc(other.getSrc()); - } - if (other.hasTid()) { - setTid(other.getTid()); - } - if (other.hasLid()) { - setLid(other.getLid()); - } - if (other.hasDst()) { - setDst(other.getDst()); - } - if (other.hasEid()) { - setEid(other.getEid()); - } - if (!other.fields_.isEmpty()) { - if (fields_.isEmpty()) { - fields_ = other.fields_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureFieldsIsMutable(); - fields_.addAll(other.fields_); - } - onChanged(); - } - if (other.hasValues()) { - mergeValues(other.getValues()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSrc()) { - return false; - } - if (!hasTid()) { - return false; - } - if (!hasLid()) { - return false; - } - if (!hasDst()) { - return false; - } - if (!hasEid()) { - return false; - } - if (!hasValues()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ModEdgeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModEdgeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long src_ ; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - /** - * required int64 src = 1; - */ - public Builder setSrc(long value) { - bitField0_ |= 0x00000001; - src_ = value; - onChanged(); - return this; - } - /** - * required int64 src = 1; - */ - public Builder clearSrc() { - bitField0_ = (bitField0_ & ~0x00000001); - src_ = 0L; - onChanged(); - return this; - } - - private long tid_ ; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - /** - * required int64 tid = 2; - */ - public Builder setTid(long value) { - bitField0_ |= 0x00000002; - tid_ = value; - onChanged(); - return this; - } - /** - * required int64 tid = 2; - */ - public Builder clearTid() { - bitField0_ = (bitField0_ & ~0x00000002); - tid_ = 0L; - onChanged(); - return this; - } - - private long lid_ ; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - /** - * required int64 lid = 3; - */ - public Builder setLid(long value) { - bitField0_ |= 0x00000004; - lid_ = value; - onChanged(); - return this; - } - /** - * required int64 lid = 3; - */ - public Builder clearLid() { - bitField0_ = (bitField0_ & ~0x00000004); - lid_ = 0L; - onChanged(); - return this; - } - - private long dst_ ; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - /** - * required int64 dst = 4; - */ - public Builder setDst(long value) { - bitField0_ |= 0x00000008; - dst_ = value; - onChanged(); - return this; - } - /** - * required int64 dst = 4; - */ - public Builder clearDst() { - bitField0_ = (bitField0_ & ~0x00000008); - dst_ = 0L; - onChanged(); - return this; - } - - private long eid_ ; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - /** - * required int64 eid = 5; - */ - public Builder setEid(long value) { - bitField0_ |= 0x00000010; - eid_ = value; - onChanged(); - return this; - } - /** - * required int64 eid = 5; - */ - public Builder clearEid() { - bitField0_ = (bitField0_ & ~0x00000010); - eid_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureFieldsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - fields_ = new com.google.protobuf.LazyStringArrayList(fields_); - bitField0_ |= 0x00000020; - } - } - /** - * repeated string fields = 6; - */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { - return fields_.getUnmodifiableView(); - } - /** - * repeated string fields = 6; - */ - public int getFieldsCount() { - return fields_.size(); - } - /** - * repeated string fields = 6; - */ - public java.lang.String getFields(int index) { - return fields_.get(index); - } - /** - * repeated string fields = 6; - */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { - return fields_.getByteString(index); - } - /** - * repeated string fields = 6; - */ - public Builder setFields( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string fields = 6; - */ - public Builder addFields( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - /** - * repeated string fields = 6; - */ - public Builder addAllFields( - java.lang.Iterable values) { - ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); - onChanged(); - return this; - } - /** - * repeated string fields = 6; - */ - public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * repeated string fields = 6; - */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); - fields_.add(value); - onChanged(); - return this; - } - - private lgraph.Lgraph.ListOfProtoFieldData values_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> valuesBuilder_; - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public boolean hasValues() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public lgraph.Lgraph.ListOfProtoFieldData getValues() { - if (valuesBuilder_ == null) { - return values_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } else { - return valuesBuilder_.getMessage(); - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public Builder setValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - values_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public Builder setValues( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - values_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public Builder mergeValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - values_ != null && - values_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) { - values_ = - lgraph.Lgraph.ListOfProtoFieldData.newBuilder(values_).mergeFrom(value).buildPartial(); - } else { - values_ = value; - } - onChanged(); - } else { - valuesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = null; - onChanged(); - } else { - valuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getValuesBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getValuesFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getValuesOrBuilder() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - return values_ == null ? - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : values_; - } - } - /** - * required .lgraph.ListOfProtoFieldData values = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - getValues(), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:lgraph.ModEdgeRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModEdgeRequest) - private static final lgraph.Lgraph.ModEdgeRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModEdgeRequest(); - } - - public static lgraph.Lgraph.ModEdgeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModEdgeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModEdgeRequest(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 lgraph.Lgraph.ModEdgeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModEdgeResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModEdgeResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ModEdgeResponse} - */ - public static final class ModEdgeResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModEdgeResponse) - ModEdgeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModEdgeResponse.newBuilder() to construct. - private ModEdgeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModEdgeResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModEdgeResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModEdgeResponse.class, lgraph.Lgraph.ModEdgeResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ModEdgeResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ModEdgeResponse other = (lgraph.Lgraph.ModEdgeResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModEdgeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModEdgeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeResponse 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 lgraph.Lgraph.ModEdgeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeResponse 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 lgraph.Lgraph.ModEdgeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModEdgeResponse 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(lgraph.Lgraph.ModEdgeResponse 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 lgraph.ModEdgeResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModEdgeResponse) - lgraph.Lgraph.ModEdgeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModEdgeResponse.class, lgraph.Lgraph.ModEdgeResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ModEdgeResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModEdgeResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeResponse build() { - lgraph.Lgraph.ModEdgeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModEdgeResponse buildPartial() { - lgraph.Lgraph.ModEdgeResponse result = new lgraph.Lgraph.ModEdgeResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModEdgeResponse) { - return mergeFrom((lgraph.Lgraph.ModEdgeResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModEdgeResponse other) { - if (other == lgraph.Lgraph.ModEdgeResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ModEdgeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModEdgeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ModEdgeResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModEdgeResponse) - private static final lgraph.Lgraph.ModEdgeResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModEdgeResponse(); - } - - public static lgraph.Lgraph.ModEdgeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModEdgeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModEdgeResponse(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 lgraph.Lgraph.ModEdgeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlushRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.FlushRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * flush
-   * 
- * - * Protobuf type {@code lgraph.FlushRequest} - */ - public static final class FlushRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.FlushRequest) - FlushRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FlushRequest.newBuilder() to construct. - private FlushRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FlushRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FlushRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_FlushRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.FlushRequest.class, lgraph.Lgraph.FlushRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.FlushRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.FlushRequest other = (lgraph.Lgraph.FlushRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.FlushRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushRequest 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 lgraph.Lgraph.FlushRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushRequest 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 lgraph.Lgraph.FlushRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushRequest 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(lgraph.Lgraph.FlushRequest 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; - } - /** - *
-     * flush
-     * 
- * - * Protobuf type {@code lgraph.FlushRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.FlushRequest) - lgraph.Lgraph.FlushRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_FlushRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.FlushRequest.class, lgraph.Lgraph.FlushRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.FlushRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_FlushRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.FlushRequest getDefaultInstanceForType() { - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.FlushRequest build() { - lgraph.Lgraph.FlushRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.FlushRequest buildPartial() { - lgraph.Lgraph.FlushRequest result = new lgraph.Lgraph.FlushRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.FlushRequest) { - return mergeFrom((lgraph.Lgraph.FlushRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.FlushRequest other) { - if (other == lgraph.Lgraph.FlushRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.FlushRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.FlushRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.FlushRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.FlushRequest) - private static final lgraph.Lgraph.FlushRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.FlushRequest(); - } - - public static lgraph.Lgraph.FlushRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FlushRequest(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 lgraph.Lgraph.FlushRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlushResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.FlushResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.FlushResponse} - */ - public static final class FlushResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.FlushResponse) - FlushResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use FlushResponse.newBuilder() to construct. - private FlushResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FlushResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FlushResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_FlushResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.FlushResponse.class, lgraph.Lgraph.FlushResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.FlushResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.FlushResponse other = (lgraph.Lgraph.FlushResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.FlushResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.FlushResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.FlushResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushResponse 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 lgraph.Lgraph.FlushResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushResponse 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 lgraph.Lgraph.FlushResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.FlushResponse 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(lgraph.Lgraph.FlushResponse 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 lgraph.FlushResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.FlushResponse) - lgraph.Lgraph.FlushResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_FlushResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.FlushResponse.class, lgraph.Lgraph.FlushResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.FlushResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_FlushResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.FlushResponse getDefaultInstanceForType() { - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.FlushResponse build() { - lgraph.Lgraph.FlushResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.FlushResponse buildPartial() { - lgraph.Lgraph.FlushResponse result = new lgraph.Lgraph.FlushResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.FlushResponse) { - return mergeFrom((lgraph.Lgraph.FlushResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.FlushResponse other) { - if (other == lgraph.Lgraph.FlushResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.FlushResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.FlushResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.FlushResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.FlushResponse) - private static final lgraph.Lgraph.FlushResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.FlushResponse(); - } - - public static lgraph.Lgraph.FlushResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FlushResponse(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 lgraph.Lgraph.FlushResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SubGraphRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SubGraphRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated int64 vids = 1; - */ - java.util.List getVidsList(); - /** - * repeated int64 vids = 1; - */ - int getVidsCount(); - /** - * repeated int64 vids = 1; - */ - long getVids(int index); - } - /** - * Protobuf type {@code lgraph.SubGraphRequest} - */ - public static final class SubGraphRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SubGraphRequest) - SubGraphRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SubGraphRequest.newBuilder() to construct. - private SubGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubGraphRequest() { - vids_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SubGraphRequest( - 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 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - vids_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vids_.add(input.readInt64()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - vids_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - vids_.add(input.readInt64()); - } - input.popLimit(limit); - 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) == 0x00000001)) { - vids_ = java.util.Collections.unmodifiableList(vids_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SubGraphRequest.class, lgraph.Lgraph.SubGraphRequest.Builder.class); - } - - public static final int VIDS_FIELD_NUMBER = 1; - private java.util.List vids_; - /** - * repeated int64 vids = 1; - */ - public java.util.List - getVidsList() { - return vids_; - } - /** - * repeated int64 vids = 1; - */ - public int getVidsCount() { - return vids_.size(); - } - /** - * repeated int64 vids = 1; - */ - public long getVids(int index) { - return vids_.get(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 { - for (int i = 0; i < vids_.size(); i++) { - output.writeInt64(1, vids_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < vids_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt64SizeNoTag(vids_.get(i)); - } - size += dataSize; - size += 1 * getVidsList().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 lgraph.Lgraph.SubGraphRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.SubGraphRequest other = (lgraph.Lgraph.SubGraphRequest) obj; - - boolean result = true; - result = result && getVidsList() - .equals(other.getVidsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getVidsCount() > 0) { - hash = (37 * hash) + VIDS_FIELD_NUMBER; - hash = (53 * hash) + getVidsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SubGraphRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphRequest 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 lgraph.Lgraph.SubGraphRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphRequest 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 lgraph.Lgraph.SubGraphRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphRequest 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(lgraph.Lgraph.SubGraphRequest 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 lgraph.SubGraphRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SubGraphRequest) - lgraph.Lgraph.SubGraphRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SubGraphRequest.class, lgraph.Lgraph.SubGraphRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.SubGraphRequest.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(); - vids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphRequest getDefaultInstanceForType() { - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphRequest build() { - lgraph.Lgraph.SubGraphRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphRequest buildPartial() { - lgraph.Lgraph.SubGraphRequest result = new lgraph.Lgraph.SubGraphRequest(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - vids_ = java.util.Collections.unmodifiableList(vids_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.vids_ = vids_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SubGraphRequest) { - return mergeFrom((lgraph.Lgraph.SubGraphRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SubGraphRequest other) { - if (other == lgraph.Lgraph.SubGraphRequest.getDefaultInstance()) return this; - if (!other.vids_.isEmpty()) { - if (vids_.isEmpty()) { - vids_ = other.vids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVidsIsMutable(); - vids_.addAll(other.vids_); - } - 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 { - lgraph.Lgraph.SubGraphRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SubGraphRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List vids_ = java.util.Collections.emptyList(); - private void ensureVidsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - vids_ = new java.util.ArrayList(vids_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int64 vids = 1; - */ - public java.util.List - getVidsList() { - return java.util.Collections.unmodifiableList(vids_); - } - /** - * repeated int64 vids = 1; - */ - public int getVidsCount() { - return vids_.size(); - } - /** - * repeated int64 vids = 1; - */ - public long getVids(int index) { - return vids_.get(index); - } - /** - * repeated int64 vids = 1; - */ - public Builder setVids( - int index, long value) { - ensureVidsIsMutable(); - vids_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int64 vids = 1; - */ - public Builder addVids(long value) { - ensureVidsIsMutable(); - vids_.add(value); - onChanged(); - return this; - } - /** - * repeated int64 vids = 1; - */ - public Builder addAllVids( - java.lang.Iterable values) { - ensureVidsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vids_); - onChanged(); - return this; - } - /** - * repeated int64 vids = 1; - */ - public Builder clearVids() { - vids_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - 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:lgraph.SubGraphRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.SubGraphRequest) - private static final lgraph.Lgraph.SubGraphRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SubGraphRequest(); - } - - public static lgraph.Lgraph.SubGraphRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubGraphRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubGraphRequest(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 lgraph.Lgraph.SubGraphRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VertexDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.VertexData) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 vid = 1; - */ - boolean hasVid(); - /** - * required int64 vid = 1; - */ - long getVid(); - - /** - * required string label = 2; - */ - boolean hasLabel(); - /** - * required string label = 2; - */ - java.lang.String getLabel(); - /** - * required string label = 2; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * repeated .lgraph.Property properties = 3; - */ - java.util.List - getPropertiesList(); - /** - * repeated .lgraph.Property properties = 3; - */ - lgraph.Lgraph.Property getProperties(int index); - /** - * repeated .lgraph.Property properties = 3; - */ - int getPropertiesCount(); - /** - * repeated .lgraph.Property properties = 3; - */ - java.util.List - getPropertiesOrBuilderList(); - /** - * repeated .lgraph.Property properties = 3; - */ - lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.VertexData} - */ - public static final class VertexData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.VertexData) - VertexDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use VertexData.newBuilder() to construct. - private VertexData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VertexData() { - vid_ = 0L; - label_ = ""; - properties_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VertexData( - 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 8: { - bitField0_ |= 0x00000001; - vid_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - label_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - properties_.add( - input.readMessage(lgraph.Lgraph.Property.PARSER, extensionRegistry)); - 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_ & 0x00000004) == 0x00000004)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_VertexData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_VertexData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.VertexData.class, lgraph.Lgraph.VertexData.Builder.class); - } - - private int bitField0_; - public static final int VID_FIELD_NUMBER = 1; - private long vid_; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - - public static final int LABEL_FIELD_NUMBER = 2; - private volatile java.lang.Object label_; - /** - * required string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 3; - private java.util.List properties_; - /** - * repeated .lgraph.Property properties = 3; - */ - public java.util.List getPropertiesList() { - return properties_; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public java.util.List - getPropertiesOrBuilderList() { - return properties_; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public int getPropertiesCount() { - return properties_.size(); - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.Property getProperties(int index) { - return properties_.get(index); - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - return properties_.get(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; - - if (!hasVid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getPropertiesCount(); i++) { - if (!getProperties(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, vid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); - } - for (int i = 0; i < properties_.size(); i++) { - output.writeMessage(3, properties_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, vid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); - } - for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, properties_.get(i)); - } - 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 lgraph.Lgraph.VertexData)) { - return super.equals(obj); - } - lgraph.Lgraph.VertexData other = (lgraph.Lgraph.VertexData) obj; - - boolean result = true; - result = result && (hasVid() == other.hasVid()); - if (hasVid()) { - result = result && (getVid() - == other.getVid()); - } - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && getPropertiesList() - .equals(other.getPropertiesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVid()) { - hash = (37 * hash) + VID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getVid()); - } - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (getPropertiesCount() > 0) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertiesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.VertexData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.VertexData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.VertexData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.VertexData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.VertexData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.VertexData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.VertexData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.VertexData 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 lgraph.Lgraph.VertexData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.VertexData 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 lgraph.Lgraph.VertexData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.VertexData 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(lgraph.Lgraph.VertexData 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 lgraph.VertexData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.VertexData) - lgraph.Lgraph.VertexDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_VertexData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_VertexData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.VertexData.class, lgraph.Lgraph.VertexData.Builder.class); - } - - // Construct using lgraph.Lgraph.VertexData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPropertiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - vid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - propertiesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_VertexData_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.VertexData getDefaultInstanceForType() { - return lgraph.Lgraph.VertexData.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.VertexData build() { - lgraph.Lgraph.VertexData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.VertexData buildPartial() { - lgraph.Lgraph.VertexData result = new lgraph.Lgraph.VertexData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.vid_ = vid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.label_ = label_; - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.VertexData) { - return mergeFrom((lgraph.Lgraph.VertexData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.VertexData other) { - if (other == lgraph.Lgraph.VertexData.getDefaultInstance()) return this; - if (other.hasVid()) { - setVid(other.getVid()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000002; - label_ = other.label_; - onChanged(); - } - if (propertiesBuilder_ == null) { - if (!other.properties_.isEmpty()) { - if (properties_.isEmpty()) { - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePropertiesIsMutable(); - properties_.addAll(other.properties_); - } - onChanged(); - } - } else { - if (!other.properties_.isEmpty()) { - if (propertiesBuilder_.isEmpty()) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000004); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; - } else { - propertiesBuilder_.addAllMessages(other.properties_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasVid()) { - return false; - } - if (!hasLabel()) { - return false; - } - for (int i = 0; i < getPropertiesCount(); i++) { - if (!getProperties(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.VertexData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.VertexData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long vid_ ; - /** - * required int64 vid = 1; - */ - public boolean hasVid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 vid = 1; - */ - public long getVid() { - return vid_; - } - /** - * required int64 vid = 1; - */ - public Builder setVid(long value) { - bitField0_ |= 0x00000001; - vid_ = value; - onChanged(); - return this; - } - /** - * required int64 vid = 1; - */ - public Builder clearVid() { - bitField0_ = (bitField0_ & ~0x00000001); - vid_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * required string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 2; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 2; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 2; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - - private java.util.List properties_ = - java.util.Collections.emptyList(); - private void ensurePropertiesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - properties_ = new java.util.ArrayList(properties_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder> propertiesBuilder_; - - /** - * repeated .lgraph.Property properties = 3; - */ - public java.util.List getPropertiesList() { - if (propertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(properties_); - } else { - return propertiesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.Property properties = 3; - */ - public int getPropertiesCount() { - if (propertiesBuilder_ == null) { - return properties_.size(); - } else { - return propertiesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.Property getProperties(int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { - return propertiesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder setProperties( - int index, lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.set(index, value); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder setProperties( - int index, lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.set(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder addProperties(lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(value); - onChanged(); - } else { - propertiesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder addProperties( - int index, lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(index, value); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder addProperties( - lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder addProperties( - int index, lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder addAllProperties( - java.lang.Iterable values) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); - onChanged(); - } else { - propertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder clearProperties() { - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - propertiesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public Builder removeProperties(int index) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.remove(index); - onChanged(); - } else { - propertiesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.Property.Builder getPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); } else { - return propertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.Property properties = 3; - */ - public java.util.List - getPropertiesOrBuilderList() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(properties_); - } - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - lgraph.Lgraph.Property.getDefaultInstance()); - } - /** - * repeated .lgraph.Property properties = 3; - */ - public lgraph.Lgraph.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, lgraph.Lgraph.Property.getDefaultInstance()); - } - /** - * repeated .lgraph.Property properties = 3; - */ - public java.util.List - getPropertiesBuilderList() { - return getPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - @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:lgraph.VertexData) - } - - // @@protoc_insertion_point(class_scope:lgraph.VertexData) - private static final lgraph.Lgraph.VertexData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.VertexData(); - } - - public static lgraph.Lgraph.VertexData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VertexData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VertexData(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 lgraph.Lgraph.VertexData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EdgeDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.EdgeData) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 src = 1; - */ - boolean hasSrc(); - /** - * required int64 src = 1; - */ - long getSrc(); - - /** - * required int64 tid = 2; - */ - boolean hasTid(); - /** - * required int64 tid = 2; - */ - long getTid(); - - /** - * required int64 lid = 3; - */ - boolean hasLid(); - /** - * required int64 lid = 3; - */ - long getLid(); - - /** - * required int64 dst = 4; - */ - boolean hasDst(); - /** - * required int64 dst = 4; - */ - long getDst(); - - /** - * required int64 eid = 5; - */ - boolean hasEid(); - /** - * required int64 eid = 5; - */ - long getEid(); - - /** - * required string label = 6; - */ - boolean hasLabel(); - /** - * required string label = 6; - */ - java.lang.String getLabel(); - /** - * required string label = 6; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * repeated .lgraph.Property properties = 7; - */ - java.util.List - getPropertiesList(); - /** - * repeated .lgraph.Property properties = 7; - */ - lgraph.Lgraph.Property getProperties(int index); - /** - * repeated .lgraph.Property properties = 7; - */ - int getPropertiesCount(); - /** - * repeated .lgraph.Property properties = 7; - */ - java.util.List - getPropertiesOrBuilderList(); - /** - * repeated .lgraph.Property properties = 7; - */ - lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.EdgeData} - */ - public static final class EdgeData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.EdgeData) - EdgeDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use EdgeData.newBuilder() to construct. - private EdgeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EdgeData() { - src_ = 0L; - tid_ = 0L; - lid_ = 0L; - dst_ = 0L; - eid_ = 0L; - label_ = ""; - properties_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EdgeData( - 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 8: { - bitField0_ |= 0x00000001; - src_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - tid_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - lid_ = input.readInt64(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - dst_ = input.readInt64(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - eid_ = input.readInt64(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - label_ = bs; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - properties_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - properties_.add( - input.readMessage(lgraph.Lgraph.Property.PARSER, extensionRegistry)); - 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_ & 0x00000040) == 0x00000040)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_EdgeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_EdgeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.EdgeData.class, lgraph.Lgraph.EdgeData.Builder.class); - } - - private int bitField0_; - public static final int SRC_FIELD_NUMBER = 1; - private long src_; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - - public static final int TID_FIELD_NUMBER = 2; - private long tid_; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - - public static final int LID_FIELD_NUMBER = 3; - private long lid_; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - - public static final int DST_FIELD_NUMBER = 4; - private long dst_; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - - public static final int EID_FIELD_NUMBER = 5; - private long eid_; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - - public static final int LABEL_FIELD_NUMBER = 6; - private volatile java.lang.Object label_; - /** - * required string label = 6; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string label = 6; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * required string label = 6; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTIES_FIELD_NUMBER = 7; - private java.util.List properties_; - /** - * repeated .lgraph.Property properties = 7; - */ - public java.util.List getPropertiesList() { - return properties_; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public java.util.List - getPropertiesOrBuilderList() { - return properties_; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public int getPropertiesCount() { - return properties_.size(); - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.Property getProperties(int index) { - return properties_.get(index); - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - return properties_.get(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; - - if (!hasSrc()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDst()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEid()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLabel()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getPropertiesCount(); i++) { - if (!getProperties(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, eid_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, label_); - } - for (int i = 0; i < properties_.size(); i++) { - output.writeMessage(7, properties_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, src_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, tid_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, lid_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, dst_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, eid_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, label_); - } - for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, properties_.get(i)); - } - 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 lgraph.Lgraph.EdgeData)) { - return super.equals(obj); - } - lgraph.Lgraph.EdgeData other = (lgraph.Lgraph.EdgeData) obj; - - boolean result = true; - result = result && (hasSrc() == other.hasSrc()); - if (hasSrc()) { - result = result && (getSrc() - == other.getSrc()); - } - result = result && (hasTid() == other.hasTid()); - if (hasTid()) { - result = result && (getTid() - == other.getTid()); - } - result = result && (hasLid() == other.hasLid()); - if (hasLid()) { - result = result && (getLid() - == other.getLid()); - } - result = result && (hasDst() == other.hasDst()); - if (hasDst()) { - result = result && (getDst() - == other.getDst()); - } - result = result && (hasEid() == other.hasEid()); - if (hasEid()) { - result = result && (getEid() - == other.getEid()); - } - result = result && (hasLabel() == other.hasLabel()); - if (hasLabel()) { - result = result && getLabel() - .equals(other.getLabel()); - } - result = result && getPropertiesList() - .equals(other.getPropertiesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSrc()) { - hash = (37 * hash) + SRC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSrc()); - } - if (hasTid()) { - hash = (37 * hash) + TID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTid()); - } - if (hasLid()) { - hash = (37 * hash) + LID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLid()); - } - if (hasDst()) { - hash = (37 * hash) + DST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDst()); - } - if (hasEid()) { - hash = (37 * hash) + EID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEid()); - } - if (hasLabel()) { - hash = (37 * hash) + LABEL_FIELD_NUMBER; - hash = (53 * hash) + getLabel().hashCode(); - } - if (getPropertiesCount() > 0) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertiesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.EdgeData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.EdgeData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.EdgeData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeData 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 lgraph.Lgraph.EdgeData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeData 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 lgraph.Lgraph.EdgeData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.EdgeData 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(lgraph.Lgraph.EdgeData 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 lgraph.EdgeData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.EdgeData) - lgraph.Lgraph.EdgeDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_EdgeData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_EdgeData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.EdgeData.class, lgraph.Lgraph.EdgeData.Builder.class); - } - - // Construct using lgraph.Lgraph.EdgeData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPropertiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - src_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - tid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - lid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - dst_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - eid_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - propertiesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_EdgeData_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.EdgeData getDefaultInstanceForType() { - return lgraph.Lgraph.EdgeData.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.EdgeData build() { - lgraph.Lgraph.EdgeData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.EdgeData buildPartial() { - lgraph.Lgraph.EdgeData result = new lgraph.Lgraph.EdgeData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.src_ = src_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.tid_ = tid_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lid_ = lid_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.dst_ = dst_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.eid_ = eid_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.label_ = label_; - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.EdgeData) { - return mergeFrom((lgraph.Lgraph.EdgeData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.EdgeData other) { - if (other == lgraph.Lgraph.EdgeData.getDefaultInstance()) return this; - if (other.hasSrc()) { - setSrc(other.getSrc()); - } - if (other.hasTid()) { - setTid(other.getTid()); - } - if (other.hasLid()) { - setLid(other.getLid()); - } - if (other.hasDst()) { - setDst(other.getDst()); - } - if (other.hasEid()) { - setEid(other.getEid()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000020; - label_ = other.label_; - onChanged(); - } - if (propertiesBuilder_ == null) { - if (!other.properties_.isEmpty()) { - if (properties_.isEmpty()) { - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensurePropertiesIsMutable(); - properties_.addAll(other.properties_); - } - onChanged(); - } - } else { - if (!other.properties_.isEmpty()) { - if (propertiesBuilder_.isEmpty()) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000040); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; - } else { - propertiesBuilder_.addAllMessages(other.properties_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasSrc()) { - return false; - } - if (!hasTid()) { - return false; - } - if (!hasLid()) { - return false; - } - if (!hasDst()) { - return false; - } - if (!hasEid()) { - return false; - } - if (!hasLabel()) { - return false; - } - for (int i = 0; i < getPropertiesCount(); i++) { - if (!getProperties(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.EdgeData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.EdgeData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long src_ ; - /** - * required int64 src = 1; - */ - public boolean hasSrc() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 src = 1; - */ - public long getSrc() { - return src_; - } - /** - * required int64 src = 1; - */ - public Builder setSrc(long value) { - bitField0_ |= 0x00000001; - src_ = value; - onChanged(); - return this; - } - /** - * required int64 src = 1; - */ - public Builder clearSrc() { - bitField0_ = (bitField0_ & ~0x00000001); - src_ = 0L; - onChanged(); - return this; - } - - private long tid_ ; - /** - * required int64 tid = 2; - */ - public boolean hasTid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 tid = 2; - */ - public long getTid() { - return tid_; - } - /** - * required int64 tid = 2; - */ - public Builder setTid(long value) { - bitField0_ |= 0x00000002; - tid_ = value; - onChanged(); - return this; - } - /** - * required int64 tid = 2; - */ - public Builder clearTid() { - bitField0_ = (bitField0_ & ~0x00000002); - tid_ = 0L; - onChanged(); - return this; - } - - private long lid_ ; - /** - * required int64 lid = 3; - */ - public boolean hasLid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int64 lid = 3; - */ - public long getLid() { - return lid_; - } - /** - * required int64 lid = 3; - */ - public Builder setLid(long value) { - bitField0_ |= 0x00000004; - lid_ = value; - onChanged(); - return this; - } - /** - * required int64 lid = 3; - */ - public Builder clearLid() { - bitField0_ = (bitField0_ & ~0x00000004); - lid_ = 0L; - onChanged(); - return this; - } - - private long dst_ ; - /** - * required int64 dst = 4; - */ - public boolean hasDst() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int64 dst = 4; - */ - public long getDst() { - return dst_; - } - /** - * required int64 dst = 4; - */ - public Builder setDst(long value) { - bitField0_ |= 0x00000008; - dst_ = value; - onChanged(); - return this; - } - /** - * required int64 dst = 4; - */ - public Builder clearDst() { - bitField0_ = (bitField0_ & ~0x00000008); - dst_ = 0L; - onChanged(); - return this; - } - - private long eid_ ; - /** - * required int64 eid = 5; - */ - public boolean hasEid() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int64 eid = 5; - */ - public long getEid() { - return eid_; - } - /** - * required int64 eid = 5; - */ - public Builder setEid(long value) { - bitField0_ |= 0x00000010; - eid_ = value; - onChanged(); - return this; - } - /** - * required int64 eid = 5; - */ - public Builder clearEid() { - bitField0_ = (bitField0_ & ~0x00000010); - eid_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object label_ = ""; - /** - * required string label = 6; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string label = 6; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string label = 6; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string label = 6; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - label_ = value; - onChanged(); - return this; - } - /** - * required string label = 6; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000020); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * required string label = 6; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - label_ = value; - onChanged(); - return this; - } - - private java.util.List properties_ = - java.util.Collections.emptyList(); - private void ensurePropertiesIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - properties_ = new java.util.ArrayList(properties_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder> propertiesBuilder_; - - /** - * repeated .lgraph.Property properties = 7; - */ - public java.util.List getPropertiesList() { - if (propertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(properties_); - } else { - return propertiesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.Property properties = 7; - */ - public int getPropertiesCount() { - if (propertiesBuilder_ == null) { - return properties_.size(); - } else { - return propertiesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.Property getProperties(int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { - return propertiesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder setProperties( - int index, lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.set(index, value); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder setProperties( - int index, lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.set(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder addProperties(lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(value); - onChanged(); - } else { - propertiesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder addProperties( - int index, lgraph.Lgraph.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(index, value); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder addProperties( - lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder addProperties( - int index, lgraph.Lgraph.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder addAllProperties( - java.lang.Iterable values) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); - onChanged(); - } else { - propertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder clearProperties() { - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - propertiesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public Builder removeProperties(int index) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.remove(index); - onChanged(); - } else { - propertiesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.Property.Builder getPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); } else { - return propertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.Property properties = 7; - */ - public java.util.List - getPropertiesOrBuilderList() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(properties_); - } - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - lgraph.Lgraph.Property.getDefaultInstance()); - } - /** - * repeated .lgraph.Property properties = 7; - */ - public lgraph.Lgraph.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, lgraph.Lgraph.Property.getDefaultInstance()); - } - /** - * repeated .lgraph.Property properties = 7; - */ - public java.util.List - getPropertiesBuilderList() { - return getPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Property, lgraph.Lgraph.Property.Builder, lgraph.Lgraph.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - @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:lgraph.EdgeData) - } - - // @@protoc_insertion_point(class_scope:lgraph.EdgeData) - private static final lgraph.Lgraph.EdgeData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.EdgeData(); - } - - public static lgraph.Lgraph.EdgeData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EdgeData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EdgeData(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 lgraph.Lgraph.EdgeData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SubGraphResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SubGraphResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.VertexData nodes = 1; - */ - java.util.List - getNodesList(); - /** - * repeated .lgraph.VertexData nodes = 1; - */ - lgraph.Lgraph.VertexData getNodes(int index); - /** - * repeated .lgraph.VertexData nodes = 1; - */ - int getNodesCount(); - /** - * repeated .lgraph.VertexData nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - * repeated .lgraph.VertexData nodes = 1; - */ - lgraph.Lgraph.VertexDataOrBuilder getNodesOrBuilder( - int index); - - /** - * repeated .lgraph.EdgeData edges = 2; - */ - java.util.List - getEdgesList(); - /** - * repeated .lgraph.EdgeData edges = 2; - */ - lgraph.Lgraph.EdgeData getEdges(int index); - /** - * repeated .lgraph.EdgeData edges = 2; - */ - int getEdgesCount(); - /** - * repeated .lgraph.EdgeData edges = 2; - */ - java.util.List - getEdgesOrBuilderList(); - /** - * repeated .lgraph.EdgeData edges = 2; - */ - lgraph.Lgraph.EdgeDataOrBuilder getEdgesOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.SubGraphResponse} - */ - public static final class SubGraphResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SubGraphResponse) - SubGraphResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SubGraphResponse.newBuilder() to construct. - private SubGraphResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubGraphResponse() { - nodes_ = java.util.Collections.emptyList(); - edges_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SubGraphResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage(lgraph.Lgraph.VertexData.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - edges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - edges_.add( - input.readMessage(lgraph.Lgraph.EdgeData.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - edges_ = java.util.Collections.unmodifiableList(edges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SubGraphResponse.class, lgraph.Lgraph.SubGraphResponse.Builder.class); - } - - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexData getNodes(int index) { - return nodes_.get(index); - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexDataOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int EDGES_FIELD_NUMBER = 2; - private java.util.List edges_; - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public java.util.List getEdgesList() { - return edges_; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public java.util.List - getEdgesOrBuilderList() { - return edges_; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public int getEdgesCount() { - return edges_.size(); - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeData getEdges(int index) { - return edges_.get(index); - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeDataOrBuilder getEdgesOrBuilder( - int index) { - return edges_.get(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; - - for (int i = 0; i < getNodesCount(); i++) { - if (!getNodes(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getEdgesCount(); i++) { - if (!getEdges(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - for (int i = 0; i < edges_.size(); i++) { - output.writeMessage(2, edges_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - for (int i = 0; i < edges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, edges_.get(i)); - } - 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 lgraph.Lgraph.SubGraphResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.SubGraphResponse other = (lgraph.Lgraph.SubGraphResponse) obj; - - boolean result = true; - result = result && getNodesList() - .equals(other.getNodesList()); - result = result && getEdgesList() - .equals(other.getEdgesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (getEdgesCount() > 0) { - hash = (37 * hash) + EDGES_FIELD_NUMBER; - hash = (53 * hash) + getEdgesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SubGraphResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SubGraphResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphResponse 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 lgraph.Lgraph.SubGraphResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphResponse 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 lgraph.Lgraph.SubGraphResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SubGraphResponse 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(lgraph.Lgraph.SubGraphResponse 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 lgraph.SubGraphResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SubGraphResponse) - lgraph.Lgraph.SubGraphResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SubGraphResponse.class, lgraph.Lgraph.SubGraphResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.SubGraphResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getEdgesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - if (edgesBuilder_ == null) { - edges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - edgesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SubGraphResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphResponse getDefaultInstanceForType() { - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphResponse build() { - lgraph.Lgraph.SubGraphResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SubGraphResponse buildPartial() { - lgraph.Lgraph.SubGraphResponse result = new lgraph.Lgraph.SubGraphResponse(this); - int from_bitField0_ = bitField0_; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - if (edgesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - edges_ = java.util.Collections.unmodifiableList(edges_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.edges_ = edges_; - } else { - result.edges_ = edgesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SubGraphResponse) { - return mergeFrom((lgraph.Lgraph.SubGraphResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SubGraphResponse other) { - if (other == lgraph.Lgraph.SubGraphResponse.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (edgesBuilder_ == null) { - if (!other.edges_.isEmpty()) { - if (edges_.isEmpty()) { - edges_ = other.edges_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureEdgesIsMutable(); - edges_.addAll(other.edges_); - } - onChanged(); - } - } else { - if (!other.edges_.isEmpty()) { - if (edgesBuilder_.isEmpty()) { - edgesBuilder_.dispose(); - edgesBuilder_ = null; - edges_ = other.edges_; - bitField0_ = (bitField0_ & ~0x00000002); - edgesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEdgesFieldBuilder() : null; - } else { - edgesBuilder_.addAllMessages(other.edges_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getNodesCount(); i++) { - if (!getNodes(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getEdgesCount(); i++) { - if (!getEdges(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SubGraphResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SubGraphResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.VertexData, lgraph.Lgraph.VertexData.Builder, lgraph.Lgraph.VertexDataOrBuilder> nodesBuilder_; - - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexData getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder setNodes( - int index, lgraph.Lgraph.VertexData value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder setNodes( - int index, lgraph.Lgraph.VertexData.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder addNodes(lgraph.Lgraph.VertexData value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder addNodes( - int index, lgraph.Lgraph.VertexData value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder addNodes( - lgraph.Lgraph.VertexData.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder addNodes( - int index, lgraph.Lgraph.VertexData.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexData.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexDataOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexData.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - lgraph.Lgraph.VertexData.getDefaultInstance()); - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public lgraph.Lgraph.VertexData.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, lgraph.Lgraph.VertexData.getDefaultInstance()); - } - /** - * repeated .lgraph.VertexData nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.VertexData, lgraph.Lgraph.VertexData.Builder, lgraph.Lgraph.VertexDataOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.VertexData, lgraph.Lgraph.VertexData.Builder, lgraph.Lgraph.VertexDataOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private java.util.List edges_ = - java.util.Collections.emptyList(); - private void ensureEdgesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - edges_ = new java.util.ArrayList(edges_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeData, lgraph.Lgraph.EdgeData.Builder, lgraph.Lgraph.EdgeDataOrBuilder> edgesBuilder_; - - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public java.util.List getEdgesList() { - if (edgesBuilder_ == null) { - return java.util.Collections.unmodifiableList(edges_); - } else { - return edgesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public int getEdgesCount() { - if (edgesBuilder_ == null) { - return edges_.size(); - } else { - return edgesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeData getEdges(int index) { - if (edgesBuilder_ == null) { - return edges_.get(index); - } else { - return edgesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder setEdges( - int index, lgraph.Lgraph.EdgeData value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.set(index, value); - onChanged(); - } else { - edgesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder setEdges( - int index, lgraph.Lgraph.EdgeData.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.set(index, builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder addEdges(lgraph.Lgraph.EdgeData value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.add(value); - onChanged(); - } else { - edgesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder addEdges( - int index, lgraph.Lgraph.EdgeData value) { - if (edgesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEdgesIsMutable(); - edges_.add(index, value); - onChanged(); - } else { - edgesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder addEdges( - lgraph.Lgraph.EdgeData.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.add(builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder addEdges( - int index, lgraph.Lgraph.EdgeData.Builder builderForValue) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.add(index, builderForValue.build()); - onChanged(); - } else { - edgesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder addAllEdges( - java.lang.Iterable values) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, edges_); - onChanged(); - } else { - edgesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder clearEdges() { - if (edgesBuilder_ == null) { - edges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - edgesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public Builder removeEdges(int index) { - if (edgesBuilder_ == null) { - ensureEdgesIsMutable(); - edges_.remove(index); - onChanged(); - } else { - edgesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeData.Builder getEdgesBuilder( - int index) { - return getEdgesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeDataOrBuilder getEdgesOrBuilder( - int index) { - if (edgesBuilder_ == null) { - return edges_.get(index); } else { - return edgesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public java.util.List - getEdgesOrBuilderList() { - if (edgesBuilder_ != null) { - return edgesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(edges_); - } - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeData.Builder addEdgesBuilder() { - return getEdgesFieldBuilder().addBuilder( - lgraph.Lgraph.EdgeData.getDefaultInstance()); - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public lgraph.Lgraph.EdgeData.Builder addEdgesBuilder( - int index) { - return getEdgesFieldBuilder().addBuilder( - index, lgraph.Lgraph.EdgeData.getDefaultInstance()); - } - /** - * repeated .lgraph.EdgeData edges = 2; - */ - public java.util.List - getEdgesBuilderList() { - return getEdgesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeData, lgraph.Lgraph.EdgeData.Builder, lgraph.Lgraph.EdgeDataOrBuilder> - getEdgesFieldBuilder() { - if (edgesBuilder_ == null) { - edgesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.EdgeData, lgraph.Lgraph.EdgeData.Builder, lgraph.Lgraph.EdgeDataOrBuilder>( - edges_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - edges_ = null; - } - return edgesBuilder_; - } - @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:lgraph.SubGraphResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.SubGraphResponse) - private static final lgraph.Lgraph.SubGraphResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SubGraphResponse(); - } - - public static lgraph.Lgraph.SubGraphResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubGraphResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubGraphResponse(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 lgraph.Lgraph.SubGraphResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GraphApiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GraphApiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - boolean hasAddLabelRequest(); - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - lgraph.Lgraph.AddLabelRequest getAddLabelRequest(); - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - lgraph.Lgraph.AddLabelRequestOrBuilder getAddLabelRequestOrBuilder(); - - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - boolean hasAddIndexRequest(); - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - lgraph.Lgraph.AddIndexRequest getAddIndexRequest(); - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - lgraph.Lgraph.AddIndexRequestOrBuilder getAddIndexRequestOrBuilder(); - - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - boolean hasAddVertexesRequest(); - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - lgraph.Lgraph.AddVertexesRequest getAddVertexesRequest(); - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - lgraph.Lgraph.AddVertexesRequestOrBuilder getAddVertexesRequestOrBuilder(); - - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - boolean hasAddEdgesRequest(); - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - lgraph.Lgraph.AddEdgesRequest getAddEdgesRequest(); - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - lgraph.Lgraph.AddEdgesRequestOrBuilder getAddEdgesRequestOrBuilder(); - - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - boolean hasDelIndexRequest(); - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - lgraph.Lgraph.DelIndexRequest getDelIndexRequest(); - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - lgraph.Lgraph.DelIndexRequestOrBuilder getDelIndexRequestOrBuilder(); - - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - boolean hasDelVertexRequest(); - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - lgraph.Lgraph.DelVertexRequest getDelVertexRequest(); - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - lgraph.Lgraph.DelVertexRequestOrBuilder getDelVertexRequestOrBuilder(); - - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - boolean hasDelEdgeRequest(); - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - lgraph.Lgraph.DelEdgeRequest getDelEdgeRequest(); - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - lgraph.Lgraph.DelEdgeRequestOrBuilder getDelEdgeRequestOrBuilder(); - - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - boolean hasModVertexRequest(); - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - lgraph.Lgraph.ModVertexRequest getModVertexRequest(); - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - lgraph.Lgraph.ModVertexRequestOrBuilder getModVertexRequestOrBuilder(); - - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - boolean hasModEdgeRequest(); - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - lgraph.Lgraph.ModEdgeRequest getModEdgeRequest(); - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - lgraph.Lgraph.ModEdgeRequestOrBuilder getModEdgeRequestOrBuilder(); - - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - boolean hasSubGraphRequest(); - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - lgraph.Lgraph.SubGraphRequest getSubGraphRequest(); - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - lgraph.Lgraph.SubGraphRequestOrBuilder getSubGraphRequestOrBuilder(); - - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - boolean hasFlushRequest(); - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - lgraph.Lgraph.FlushRequest getFlushRequest(); - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - lgraph.Lgraph.FlushRequestOrBuilder getFlushRequestOrBuilder(); - - /** - * required string graph = 12; - */ - boolean hasGraph(); - /** - * required string graph = 12; - */ - java.lang.String getGraph(); - /** - * required string graph = 12; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - public lgraph.Lgraph.GraphApiRequest.ReqCase getReqCase(); - } - /** - *
-   * native requests and responses
-   * 
- * - * Protobuf type {@code lgraph.GraphApiRequest} - */ - public static final class GraphApiRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GraphApiRequest) - GraphApiRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GraphApiRequest.newBuilder() to construct. - private GraphApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphApiRequest() { - graph_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphApiRequest( - 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: { - lgraph.Lgraph.AddLabelRequest.Builder subBuilder = null; - if (reqCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AddLabelRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddLabelRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddLabelRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.AddIndexRequest.Builder subBuilder = null; - if (reqCase_ == 2) { - subBuilder = ((lgraph.Lgraph.AddIndexRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddIndexRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddIndexRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.AddVertexesRequest.Builder subBuilder = null; - if (reqCase_ == 3) { - subBuilder = ((lgraph.Lgraph.AddVertexesRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddVertexesRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddVertexesRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.AddEdgesRequest.Builder subBuilder = null; - if (reqCase_ == 4) { - subBuilder = ((lgraph.Lgraph.AddEdgesRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddEdgesRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddEdgesRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.DelIndexRequest.Builder subBuilder = null; - if (reqCase_ == 5) { - subBuilder = ((lgraph.Lgraph.DelIndexRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelIndexRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelIndexRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 5; - break; - } - case 50: { - lgraph.Lgraph.DelVertexRequest.Builder subBuilder = null; - if (reqCase_ == 6) { - subBuilder = ((lgraph.Lgraph.DelVertexRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelVertexRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelVertexRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 6; - break; - } - case 58: { - lgraph.Lgraph.DelEdgeRequest.Builder subBuilder = null; - if (reqCase_ == 7) { - subBuilder = ((lgraph.Lgraph.DelEdgeRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelEdgeRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelEdgeRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 7; - break; - } - case 66: { - lgraph.Lgraph.ModVertexRequest.Builder subBuilder = null; - if (reqCase_ == 8) { - subBuilder = ((lgraph.Lgraph.ModVertexRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ModVertexRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModVertexRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 8; - break; - } - case 74: { - lgraph.Lgraph.ModEdgeRequest.Builder subBuilder = null; - if (reqCase_ == 9) { - subBuilder = ((lgraph.Lgraph.ModEdgeRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ModEdgeRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModEdgeRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 9; - break; - } - case 82: { - lgraph.Lgraph.SubGraphRequest.Builder subBuilder = null; - if (reqCase_ == 10) { - subBuilder = ((lgraph.Lgraph.SubGraphRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.SubGraphRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SubGraphRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 10; - break; - } - case 90: { - lgraph.Lgraph.FlushRequest.Builder subBuilder = null; - if (reqCase_ == 11) { - subBuilder = ((lgraph.Lgraph.FlushRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.FlushRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.FlushRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 11; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - graph_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_GraphApiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphApiRequest.class, lgraph.Lgraph.GraphApiRequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - ADD_LABEL_REQUEST(1), - ADD_INDEX_REQUEST(2), - ADD_VERTEXES_REQUEST(3), - ADD_EDGES_REQUEST(4), - DEL_INDEX_REQUEST(5), - DEL_VERTEX_REQUEST(6), - DEL_EDGE_REQUEST(7), - MOD_VERTEX_REQUEST(8), - MOD_EDGE_REQUEST(9), - SUB_GRAPH_REQUEST(10), - FLUSH_REQUEST(11), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 1: return ADD_LABEL_REQUEST; - case 2: return ADD_INDEX_REQUEST; - case 3: return ADD_VERTEXES_REQUEST; - case 4: return ADD_EDGES_REQUEST; - case 5: return DEL_INDEX_REQUEST; - case 6: return DEL_VERTEX_REQUEST; - case 7: return DEL_EDGE_REQUEST; - case 8: return MOD_VERTEX_REQUEST; - case 9: return MOD_EDGE_REQUEST; - case 10: return SUB_GRAPH_REQUEST; - case 11: return FLUSH_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int ADD_LABEL_REQUEST_FIELD_NUMBER = 1; - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public boolean hasAddLabelRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public lgraph.Lgraph.AddLabelRequest getAddLabelRequest() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddLabelRequest) req_; - } - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public lgraph.Lgraph.AddLabelRequestOrBuilder getAddLabelRequestOrBuilder() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddLabelRequest) req_; - } - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - - public static final int ADD_INDEX_REQUEST_FIELD_NUMBER = 2; - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public boolean hasAddIndexRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public lgraph.Lgraph.AddIndexRequest getAddIndexRequest() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddIndexRequest) req_; - } - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public lgraph.Lgraph.AddIndexRequestOrBuilder getAddIndexRequestOrBuilder() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddIndexRequest) req_; - } - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - - public static final int ADD_VERTEXES_REQUEST_FIELD_NUMBER = 3; - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public boolean hasAddVertexesRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public lgraph.Lgraph.AddVertexesRequest getAddVertexesRequest() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.AddVertexesRequest) req_; - } - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public lgraph.Lgraph.AddVertexesRequestOrBuilder getAddVertexesRequestOrBuilder() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.AddVertexesRequest) req_; - } - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - - public static final int ADD_EDGES_REQUEST_FIELD_NUMBER = 4; - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public boolean hasAddEdgesRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public lgraph.Lgraph.AddEdgesRequest getAddEdgesRequest() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.AddEdgesRequest) req_; - } - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public lgraph.Lgraph.AddEdgesRequestOrBuilder getAddEdgesRequestOrBuilder() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.AddEdgesRequest) req_; - } - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - - public static final int DEL_INDEX_REQUEST_FIELD_NUMBER = 5; - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public boolean hasDelIndexRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public lgraph.Lgraph.DelIndexRequest getDelIndexRequest() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.DelIndexRequest) req_; - } - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public lgraph.Lgraph.DelIndexRequestOrBuilder getDelIndexRequestOrBuilder() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.DelIndexRequest) req_; - } - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - - public static final int DEL_VERTEX_REQUEST_FIELD_NUMBER = 6; - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public boolean hasDelVertexRequest() { - return reqCase_ == 6; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public lgraph.Lgraph.DelVertexRequest getDelVertexRequest() { - if (reqCase_ == 6) { - return (lgraph.Lgraph.DelVertexRequest) req_; - } - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public lgraph.Lgraph.DelVertexRequestOrBuilder getDelVertexRequestOrBuilder() { - if (reqCase_ == 6) { - return (lgraph.Lgraph.DelVertexRequest) req_; - } - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - - public static final int DEL_EDGE_REQUEST_FIELD_NUMBER = 7; - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public boolean hasDelEdgeRequest() { - return reqCase_ == 7; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public lgraph.Lgraph.DelEdgeRequest getDelEdgeRequest() { - if (reqCase_ == 7) { - return (lgraph.Lgraph.DelEdgeRequest) req_; - } - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public lgraph.Lgraph.DelEdgeRequestOrBuilder getDelEdgeRequestOrBuilder() { - if (reqCase_ == 7) { - return (lgraph.Lgraph.DelEdgeRequest) req_; - } - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - - public static final int MOD_VERTEX_REQUEST_FIELD_NUMBER = 8; - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public boolean hasModVertexRequest() { - return reqCase_ == 8; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public lgraph.Lgraph.ModVertexRequest getModVertexRequest() { - if (reqCase_ == 8) { - return (lgraph.Lgraph.ModVertexRequest) req_; - } - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public lgraph.Lgraph.ModVertexRequestOrBuilder getModVertexRequestOrBuilder() { - if (reqCase_ == 8) { - return (lgraph.Lgraph.ModVertexRequest) req_; - } - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - - public static final int MOD_EDGE_REQUEST_FIELD_NUMBER = 9; - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public boolean hasModEdgeRequest() { - return reqCase_ == 9; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public lgraph.Lgraph.ModEdgeRequest getModEdgeRequest() { - if (reqCase_ == 9) { - return (lgraph.Lgraph.ModEdgeRequest) req_; - } - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public lgraph.Lgraph.ModEdgeRequestOrBuilder getModEdgeRequestOrBuilder() { - if (reqCase_ == 9) { - return (lgraph.Lgraph.ModEdgeRequest) req_; - } - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - - public static final int SUB_GRAPH_REQUEST_FIELD_NUMBER = 10; - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public boolean hasSubGraphRequest() { - return reqCase_ == 10; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public lgraph.Lgraph.SubGraphRequest getSubGraphRequest() { - if (reqCase_ == 10) { - return (lgraph.Lgraph.SubGraphRequest) req_; - } - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public lgraph.Lgraph.SubGraphRequestOrBuilder getSubGraphRequestOrBuilder() { - if (reqCase_ == 10) { - return (lgraph.Lgraph.SubGraphRequest) req_; - } - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - - public static final int FLUSH_REQUEST_FIELD_NUMBER = 11; - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public boolean hasFlushRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public lgraph.Lgraph.FlushRequest getFlushRequest() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.FlushRequest) req_; - } - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public lgraph.Lgraph.FlushRequestOrBuilder getFlushRequestOrBuilder() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.FlushRequest) req_; - } - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - - public static final int GRAPH_FIELD_NUMBER = 12; - private volatile java.lang.Object graph_; - /** - * required string graph = 12; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * required string graph = 12; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * required string graph = 12; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = 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; - - if (!hasGraph()) { - memoizedIsInitialized = 0; - return false; - } - if (hasAddLabelRequest()) { - if (!getAddLabelRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAddIndexRequest()) { - if (!getAddIndexRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAddVertexesRequest()) { - if (!getAddVertexesRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAddEdgesRequest()) { - if (!getAddEdgesRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelIndexRequest()) { - if (!getDelIndexRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelVertexRequest()) { - if (!getDelVertexRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelEdgeRequest()) { - if (!getDelEdgeRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasModVertexRequest()) { - if (!getModVertexRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasModEdgeRequest()) { - if (!getModEdgeRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reqCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AddLabelRequest) req_); - } - if (reqCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.AddIndexRequest) req_); - } - if (reqCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.AddVertexesRequest) req_); - } - if (reqCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.AddEdgesRequest) req_); - } - if (reqCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.DelIndexRequest) req_); - } - if (reqCase_ == 6) { - output.writeMessage(6, (lgraph.Lgraph.DelVertexRequest) req_); - } - if (reqCase_ == 7) { - output.writeMessage(7, (lgraph.Lgraph.DelEdgeRequest) req_); - } - if (reqCase_ == 8) { - output.writeMessage(8, (lgraph.Lgraph.ModVertexRequest) req_); - } - if (reqCase_ == 9) { - output.writeMessage(9, (lgraph.Lgraph.ModEdgeRequest) req_); - } - if (reqCase_ == 10) { - output.writeMessage(10, (lgraph.Lgraph.SubGraphRequest) req_); - } - if (reqCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.FlushRequest) req_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, graph_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reqCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AddLabelRequest) req_); - } - if (reqCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.AddIndexRequest) req_); - } - if (reqCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.AddVertexesRequest) req_); - } - if (reqCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.AddEdgesRequest) req_); - } - if (reqCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.DelIndexRequest) req_); - } - if (reqCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (lgraph.Lgraph.DelVertexRequest) req_); - } - if (reqCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (lgraph.Lgraph.DelEdgeRequest) req_); - } - if (reqCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (lgraph.Lgraph.ModVertexRequest) req_); - } - if (reqCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (lgraph.Lgraph.ModEdgeRequest) req_); - } - if (reqCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (lgraph.Lgraph.SubGraphRequest) req_); - } - if (reqCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.FlushRequest) req_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, graph_); - } - 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 lgraph.Lgraph.GraphApiRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GraphApiRequest other = (lgraph.Lgraph.GraphApiRequest) obj; - - boolean result = true; - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 1: - result = result && getAddLabelRequest() - .equals(other.getAddLabelRequest()); - break; - case 2: - result = result && getAddIndexRequest() - .equals(other.getAddIndexRequest()); - break; - case 3: - result = result && getAddVertexesRequest() - .equals(other.getAddVertexesRequest()); - break; - case 4: - result = result && getAddEdgesRequest() - .equals(other.getAddEdgesRequest()); - break; - case 5: - result = result && getDelIndexRequest() - .equals(other.getDelIndexRequest()); - break; - case 6: - result = result && getDelVertexRequest() - .equals(other.getDelVertexRequest()); - break; - case 7: - result = result && getDelEdgeRequest() - .equals(other.getDelEdgeRequest()); - break; - case 8: - result = result && getModVertexRequest() - .equals(other.getModVertexRequest()); - break; - case 9: - result = result && getModEdgeRequest() - .equals(other.getModEdgeRequest()); - break; - case 10: - result = result && getSubGraphRequest() - .equals(other.getSubGraphRequest()); - break; - case 11: - result = result && getFlushRequest() - .equals(other.getFlushRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - switch (reqCase_) { - case 1: - hash = (37 * hash) + ADD_LABEL_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddLabelRequest().hashCode(); - break; - case 2: - hash = (37 * hash) + ADD_INDEX_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddIndexRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + ADD_VERTEXES_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddVertexesRequest().hashCode(); - break; - case 4: - hash = (37 * hash) + ADD_EDGES_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddEdgesRequest().hashCode(); - break; - case 5: - hash = (37 * hash) + DEL_INDEX_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelIndexRequest().hashCode(); - break; - case 6: - hash = (37 * hash) + DEL_VERTEX_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelVertexRequest().hashCode(); - break; - case 7: - hash = (37 * hash) + DEL_EDGE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelEdgeRequest().hashCode(); - break; - case 8: - hash = (37 * hash) + MOD_VERTEX_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getModVertexRequest().hashCode(); - break; - case 9: - hash = (37 * hash) + MOD_EDGE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getModEdgeRequest().hashCode(); - break; - case 10: - hash = (37 * hash) + SUB_GRAPH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getSubGraphRequest().hashCode(); - break; - case 11: - hash = (37 * hash) + FLUSH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getFlushRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GraphApiRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiRequest 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 lgraph.Lgraph.GraphApiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiRequest 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 lgraph.Lgraph.GraphApiRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiRequest 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(lgraph.Lgraph.GraphApiRequest 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; - } - /** - *
-     * native requests and responses
-     * 
- * - * Protobuf type {@code lgraph.GraphApiRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GraphApiRequest) - lgraph.Lgraph.GraphApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphApiRequest.class, lgraph.Lgraph.GraphApiRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GraphApiRequest.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(); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiRequest build() { - lgraph.Lgraph.GraphApiRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiRequest buildPartial() { - lgraph.Lgraph.GraphApiRequest result = new lgraph.Lgraph.GraphApiRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (reqCase_ == 1) { - if (addLabelRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addLabelRequestBuilder_.build(); - } - } - if (reqCase_ == 2) { - if (addIndexRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addIndexRequestBuilder_.build(); - } - } - if (reqCase_ == 3) { - if (addVertexesRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addVertexesRequestBuilder_.build(); - } - } - if (reqCase_ == 4) { - if (addEdgesRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addEdgesRequestBuilder_.build(); - } - } - if (reqCase_ == 5) { - if (delIndexRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delIndexRequestBuilder_.build(); - } - } - if (reqCase_ == 6) { - if (delVertexRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delVertexRequestBuilder_.build(); - } - } - if (reqCase_ == 7) { - if (delEdgeRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delEdgeRequestBuilder_.build(); - } - } - if (reqCase_ == 8) { - if (modVertexRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = modVertexRequestBuilder_.build(); - } - } - if (reqCase_ == 9) { - if (modEdgeRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = modEdgeRequestBuilder_.build(); - } - } - if (reqCase_ == 10) { - if (subGraphRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = subGraphRequestBuilder_.build(); - } - } - if (reqCase_ == 11) { - if (flushRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = flushRequestBuilder_.build(); - } - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.graph_ = graph_; - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GraphApiRequest) { - return mergeFrom((lgraph.Lgraph.GraphApiRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GraphApiRequest other) { - if (other == lgraph.Lgraph.GraphApiRequest.getDefaultInstance()) return this; - if (other.hasGraph()) { - bitField0_ |= 0x00000800; - graph_ = other.graph_; - onChanged(); - } - switch (other.getReqCase()) { - case ADD_LABEL_REQUEST: { - mergeAddLabelRequest(other.getAddLabelRequest()); - break; - } - case ADD_INDEX_REQUEST: { - mergeAddIndexRequest(other.getAddIndexRequest()); - break; - } - case ADD_VERTEXES_REQUEST: { - mergeAddVertexesRequest(other.getAddVertexesRequest()); - break; - } - case ADD_EDGES_REQUEST: { - mergeAddEdgesRequest(other.getAddEdgesRequest()); - break; - } - case DEL_INDEX_REQUEST: { - mergeDelIndexRequest(other.getDelIndexRequest()); - break; - } - case DEL_VERTEX_REQUEST: { - mergeDelVertexRequest(other.getDelVertexRequest()); - break; - } - case DEL_EDGE_REQUEST: { - mergeDelEdgeRequest(other.getDelEdgeRequest()); - break; - } - case MOD_VERTEX_REQUEST: { - mergeModVertexRequest(other.getModVertexRequest()); - break; - } - case MOD_EDGE_REQUEST: { - mergeModEdgeRequest(other.getModEdgeRequest()); - break; - } - case SUB_GRAPH_REQUEST: { - mergeSubGraphRequest(other.getSubGraphRequest()); - break; - } - case FLUSH_REQUEST: { - mergeFlushRequest(other.getFlushRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasGraph()) { - return false; - } - if (hasAddLabelRequest()) { - if (!getAddLabelRequest().isInitialized()) { - return false; - } - } - if (hasAddIndexRequest()) { - if (!getAddIndexRequest().isInitialized()) { - return false; - } - } - if (hasAddVertexesRequest()) { - if (!getAddVertexesRequest().isInitialized()) { - return false; - } - } - if (hasAddEdgesRequest()) { - if (!getAddEdgesRequest().isInitialized()) { - return false; - } - } - if (hasDelIndexRequest()) { - if (!getDelIndexRequest().isInitialized()) { - return false; - } - } - if (hasDelVertexRequest()) { - if (!getDelVertexRequest().isInitialized()) { - return false; - } - } - if (hasDelEdgeRequest()) { - if (!getDelEdgeRequest().isInitialized()) { - return false; - } - } - if (hasModVertexRequest()) { - if (!getModVertexRequest().isInitialized()) { - return false; - } - } - if (hasModEdgeRequest()) { - if (!getModEdgeRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GraphApiRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GraphApiRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelRequest, lgraph.Lgraph.AddLabelRequest.Builder, lgraph.Lgraph.AddLabelRequestOrBuilder> addLabelRequestBuilder_; - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public boolean hasAddLabelRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public lgraph.Lgraph.AddLabelRequest getAddLabelRequest() { - if (addLabelRequestBuilder_ == null) { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddLabelRequest) req_; - } - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } else { - if (reqCase_ == 1) { - return addLabelRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public Builder setAddLabelRequest(lgraph.Lgraph.AddLabelRequest value) { - if (addLabelRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addLabelRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public Builder setAddLabelRequest( - lgraph.Lgraph.AddLabelRequest.Builder builderForValue) { - if (addLabelRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addLabelRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public Builder mergeAddLabelRequest(lgraph.Lgraph.AddLabelRequest value) { - if (addLabelRequestBuilder_ == null) { - if (reqCase_ == 1 && - req_ != lgraph.Lgraph.AddLabelRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddLabelRequest.newBuilder((lgraph.Lgraph.AddLabelRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 1) { - addLabelRequestBuilder_.mergeFrom(value); - } - addLabelRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public Builder clearAddLabelRequest() { - if (addLabelRequestBuilder_ == null) { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - } - addLabelRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public lgraph.Lgraph.AddLabelRequest.Builder getAddLabelRequestBuilder() { - return getAddLabelRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - public lgraph.Lgraph.AddLabelRequestOrBuilder getAddLabelRequestOrBuilder() { - if ((reqCase_ == 1) && (addLabelRequestBuilder_ != null)) { - return addLabelRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddLabelRequest) req_; - } - return lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddLabelRequest add_label_request = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelRequest, lgraph.Lgraph.AddLabelRequest.Builder, lgraph.Lgraph.AddLabelRequestOrBuilder> - getAddLabelRequestFieldBuilder() { - if (addLabelRequestBuilder_ == null) { - if (!(reqCase_ == 1)) { - req_ = lgraph.Lgraph.AddLabelRequest.getDefaultInstance(); - } - addLabelRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelRequest, lgraph.Lgraph.AddLabelRequest.Builder, lgraph.Lgraph.AddLabelRequestOrBuilder>( - (lgraph.Lgraph.AddLabelRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 1; - onChanged();; - return addLabelRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexRequest, lgraph.Lgraph.AddIndexRequest.Builder, lgraph.Lgraph.AddIndexRequestOrBuilder> addIndexRequestBuilder_; - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public boolean hasAddIndexRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public lgraph.Lgraph.AddIndexRequest getAddIndexRequest() { - if (addIndexRequestBuilder_ == null) { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddIndexRequest) req_; - } - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } else { - if (reqCase_ == 2) { - return addIndexRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public Builder setAddIndexRequest(lgraph.Lgraph.AddIndexRequest value) { - if (addIndexRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addIndexRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public Builder setAddIndexRequest( - lgraph.Lgraph.AddIndexRequest.Builder builderForValue) { - if (addIndexRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addIndexRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public Builder mergeAddIndexRequest(lgraph.Lgraph.AddIndexRequest value) { - if (addIndexRequestBuilder_ == null) { - if (reqCase_ == 2 && - req_ != lgraph.Lgraph.AddIndexRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddIndexRequest.newBuilder((lgraph.Lgraph.AddIndexRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 2) { - addIndexRequestBuilder_.mergeFrom(value); - } - addIndexRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public Builder clearAddIndexRequest() { - if (addIndexRequestBuilder_ == null) { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - } - addIndexRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public lgraph.Lgraph.AddIndexRequest.Builder getAddIndexRequestBuilder() { - return getAddIndexRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - public lgraph.Lgraph.AddIndexRequestOrBuilder getAddIndexRequestOrBuilder() { - if ((reqCase_ == 2) && (addIndexRequestBuilder_ != null)) { - return addIndexRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddIndexRequest) req_; - } - return lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddIndexRequest add_index_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexRequest, lgraph.Lgraph.AddIndexRequest.Builder, lgraph.Lgraph.AddIndexRequestOrBuilder> - getAddIndexRequestFieldBuilder() { - if (addIndexRequestBuilder_ == null) { - if (!(reqCase_ == 2)) { - req_ = lgraph.Lgraph.AddIndexRequest.getDefaultInstance(); - } - addIndexRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexRequest, lgraph.Lgraph.AddIndexRequest.Builder, lgraph.Lgraph.AddIndexRequestOrBuilder>( - (lgraph.Lgraph.AddIndexRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 2; - onChanged();; - return addIndexRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesRequest, lgraph.Lgraph.AddVertexesRequest.Builder, lgraph.Lgraph.AddVertexesRequestOrBuilder> addVertexesRequestBuilder_; - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public boolean hasAddVertexesRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public lgraph.Lgraph.AddVertexesRequest getAddVertexesRequest() { - if (addVertexesRequestBuilder_ == null) { - if (reqCase_ == 3) { - return (lgraph.Lgraph.AddVertexesRequest) req_; - } - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } else { - if (reqCase_ == 3) { - return addVertexesRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public Builder setAddVertexesRequest(lgraph.Lgraph.AddVertexesRequest value) { - if (addVertexesRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addVertexesRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public Builder setAddVertexesRequest( - lgraph.Lgraph.AddVertexesRequest.Builder builderForValue) { - if (addVertexesRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addVertexesRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public Builder mergeAddVertexesRequest(lgraph.Lgraph.AddVertexesRequest value) { - if (addVertexesRequestBuilder_ == null) { - if (reqCase_ == 3 && - req_ != lgraph.Lgraph.AddVertexesRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddVertexesRequest.newBuilder((lgraph.Lgraph.AddVertexesRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 3) { - addVertexesRequestBuilder_.mergeFrom(value); - } - addVertexesRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public Builder clearAddVertexesRequest() { - if (addVertexesRequestBuilder_ == null) { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - } - addVertexesRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public lgraph.Lgraph.AddVertexesRequest.Builder getAddVertexesRequestBuilder() { - return getAddVertexesRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - public lgraph.Lgraph.AddVertexesRequestOrBuilder getAddVertexesRequestOrBuilder() { - if ((reqCase_ == 3) && (addVertexesRequestBuilder_ != null)) { - return addVertexesRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 3) { - return (lgraph.Lgraph.AddVertexesRequest) req_; - } - return lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddVertexesRequest add_vertexes_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesRequest, lgraph.Lgraph.AddVertexesRequest.Builder, lgraph.Lgraph.AddVertexesRequestOrBuilder> - getAddVertexesRequestFieldBuilder() { - if (addVertexesRequestBuilder_ == null) { - if (!(reqCase_ == 3)) { - req_ = lgraph.Lgraph.AddVertexesRequest.getDefaultInstance(); - } - addVertexesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesRequest, lgraph.Lgraph.AddVertexesRequest.Builder, lgraph.Lgraph.AddVertexesRequestOrBuilder>( - (lgraph.Lgraph.AddVertexesRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 3; - onChanged();; - return addVertexesRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesRequest, lgraph.Lgraph.AddEdgesRequest.Builder, lgraph.Lgraph.AddEdgesRequestOrBuilder> addEdgesRequestBuilder_; - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public boolean hasAddEdgesRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public lgraph.Lgraph.AddEdgesRequest getAddEdgesRequest() { - if (addEdgesRequestBuilder_ == null) { - if (reqCase_ == 4) { - return (lgraph.Lgraph.AddEdgesRequest) req_; - } - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } else { - if (reqCase_ == 4) { - return addEdgesRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public Builder setAddEdgesRequest(lgraph.Lgraph.AddEdgesRequest value) { - if (addEdgesRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addEdgesRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public Builder setAddEdgesRequest( - lgraph.Lgraph.AddEdgesRequest.Builder builderForValue) { - if (addEdgesRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addEdgesRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public Builder mergeAddEdgesRequest(lgraph.Lgraph.AddEdgesRequest value) { - if (addEdgesRequestBuilder_ == null) { - if (reqCase_ == 4 && - req_ != lgraph.Lgraph.AddEdgesRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddEdgesRequest.newBuilder((lgraph.Lgraph.AddEdgesRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 4) { - addEdgesRequestBuilder_.mergeFrom(value); - } - addEdgesRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public Builder clearAddEdgesRequest() { - if (addEdgesRequestBuilder_ == null) { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - } - addEdgesRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public lgraph.Lgraph.AddEdgesRequest.Builder getAddEdgesRequestBuilder() { - return getAddEdgesRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - public lgraph.Lgraph.AddEdgesRequestOrBuilder getAddEdgesRequestOrBuilder() { - if ((reqCase_ == 4) && (addEdgesRequestBuilder_ != null)) { - return addEdgesRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 4) { - return (lgraph.Lgraph.AddEdgesRequest) req_; - } - return lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddEdgesRequest add_edges_request = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesRequest, lgraph.Lgraph.AddEdgesRequest.Builder, lgraph.Lgraph.AddEdgesRequestOrBuilder> - getAddEdgesRequestFieldBuilder() { - if (addEdgesRequestBuilder_ == null) { - if (!(reqCase_ == 4)) { - req_ = lgraph.Lgraph.AddEdgesRequest.getDefaultInstance(); - } - addEdgesRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesRequest, lgraph.Lgraph.AddEdgesRequest.Builder, lgraph.Lgraph.AddEdgesRequestOrBuilder>( - (lgraph.Lgraph.AddEdgesRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 4; - onChanged();; - return addEdgesRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexRequest, lgraph.Lgraph.DelIndexRequest.Builder, lgraph.Lgraph.DelIndexRequestOrBuilder> delIndexRequestBuilder_; - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public boolean hasDelIndexRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public lgraph.Lgraph.DelIndexRequest getDelIndexRequest() { - if (delIndexRequestBuilder_ == null) { - if (reqCase_ == 5) { - return (lgraph.Lgraph.DelIndexRequest) req_; - } - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } else { - if (reqCase_ == 5) { - return delIndexRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public Builder setDelIndexRequest(lgraph.Lgraph.DelIndexRequest value) { - if (delIndexRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delIndexRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public Builder setDelIndexRequest( - lgraph.Lgraph.DelIndexRequest.Builder builderForValue) { - if (delIndexRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delIndexRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public Builder mergeDelIndexRequest(lgraph.Lgraph.DelIndexRequest value) { - if (delIndexRequestBuilder_ == null) { - if (reqCase_ == 5 && - req_ != lgraph.Lgraph.DelIndexRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelIndexRequest.newBuilder((lgraph.Lgraph.DelIndexRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 5) { - delIndexRequestBuilder_.mergeFrom(value); - } - delIndexRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public Builder clearDelIndexRequest() { - if (delIndexRequestBuilder_ == null) { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - } - delIndexRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public lgraph.Lgraph.DelIndexRequest.Builder getDelIndexRequestBuilder() { - return getDelIndexRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - public lgraph.Lgraph.DelIndexRequestOrBuilder getDelIndexRequestOrBuilder() { - if ((reqCase_ == 5) && (delIndexRequestBuilder_ != null)) { - return delIndexRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 5) { - return (lgraph.Lgraph.DelIndexRequest) req_; - } - return lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelIndexRequest del_index_request = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexRequest, lgraph.Lgraph.DelIndexRequest.Builder, lgraph.Lgraph.DelIndexRequestOrBuilder> - getDelIndexRequestFieldBuilder() { - if (delIndexRequestBuilder_ == null) { - if (!(reqCase_ == 5)) { - req_ = lgraph.Lgraph.DelIndexRequest.getDefaultInstance(); - } - delIndexRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexRequest, lgraph.Lgraph.DelIndexRequest.Builder, lgraph.Lgraph.DelIndexRequestOrBuilder>( - (lgraph.Lgraph.DelIndexRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 5; - onChanged();; - return delIndexRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexRequest, lgraph.Lgraph.DelVertexRequest.Builder, lgraph.Lgraph.DelVertexRequestOrBuilder> delVertexRequestBuilder_; - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public boolean hasDelVertexRequest() { - return reqCase_ == 6; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public lgraph.Lgraph.DelVertexRequest getDelVertexRequest() { - if (delVertexRequestBuilder_ == null) { - if (reqCase_ == 6) { - return (lgraph.Lgraph.DelVertexRequest) req_; - } - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } else { - if (reqCase_ == 6) { - return delVertexRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public Builder setDelVertexRequest(lgraph.Lgraph.DelVertexRequest value) { - if (delVertexRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delVertexRequestBuilder_.setMessage(value); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public Builder setDelVertexRequest( - lgraph.Lgraph.DelVertexRequest.Builder builderForValue) { - if (delVertexRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delVertexRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public Builder mergeDelVertexRequest(lgraph.Lgraph.DelVertexRequest value) { - if (delVertexRequestBuilder_ == null) { - if (reqCase_ == 6 && - req_ != lgraph.Lgraph.DelVertexRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelVertexRequest.newBuilder((lgraph.Lgraph.DelVertexRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 6) { - delVertexRequestBuilder_.mergeFrom(value); - } - delVertexRequestBuilder_.setMessage(value); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public Builder clearDelVertexRequest() { - if (delVertexRequestBuilder_ == null) { - if (reqCase_ == 6) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 6) { - reqCase_ = 0; - req_ = null; - } - delVertexRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public lgraph.Lgraph.DelVertexRequest.Builder getDelVertexRequestBuilder() { - return getDelVertexRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - public lgraph.Lgraph.DelVertexRequestOrBuilder getDelVertexRequestOrBuilder() { - if ((reqCase_ == 6) && (delVertexRequestBuilder_ != null)) { - return delVertexRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 6) { - return (lgraph.Lgraph.DelVertexRequest) req_; - } - return lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelVertexRequest del_vertex_request = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexRequest, lgraph.Lgraph.DelVertexRequest.Builder, lgraph.Lgraph.DelVertexRequestOrBuilder> - getDelVertexRequestFieldBuilder() { - if (delVertexRequestBuilder_ == null) { - if (!(reqCase_ == 6)) { - req_ = lgraph.Lgraph.DelVertexRequest.getDefaultInstance(); - } - delVertexRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexRequest, lgraph.Lgraph.DelVertexRequest.Builder, lgraph.Lgraph.DelVertexRequestOrBuilder>( - (lgraph.Lgraph.DelVertexRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 6; - onChanged();; - return delVertexRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeRequest, lgraph.Lgraph.DelEdgeRequest.Builder, lgraph.Lgraph.DelEdgeRequestOrBuilder> delEdgeRequestBuilder_; - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public boolean hasDelEdgeRequest() { - return reqCase_ == 7; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public lgraph.Lgraph.DelEdgeRequest getDelEdgeRequest() { - if (delEdgeRequestBuilder_ == null) { - if (reqCase_ == 7) { - return (lgraph.Lgraph.DelEdgeRequest) req_; - } - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } else { - if (reqCase_ == 7) { - return delEdgeRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public Builder setDelEdgeRequest(lgraph.Lgraph.DelEdgeRequest value) { - if (delEdgeRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delEdgeRequestBuilder_.setMessage(value); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public Builder setDelEdgeRequest( - lgraph.Lgraph.DelEdgeRequest.Builder builderForValue) { - if (delEdgeRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delEdgeRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public Builder mergeDelEdgeRequest(lgraph.Lgraph.DelEdgeRequest value) { - if (delEdgeRequestBuilder_ == null) { - if (reqCase_ == 7 && - req_ != lgraph.Lgraph.DelEdgeRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelEdgeRequest.newBuilder((lgraph.Lgraph.DelEdgeRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 7) { - delEdgeRequestBuilder_.mergeFrom(value); - } - delEdgeRequestBuilder_.setMessage(value); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public Builder clearDelEdgeRequest() { - if (delEdgeRequestBuilder_ == null) { - if (reqCase_ == 7) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 7) { - reqCase_ = 0; - req_ = null; - } - delEdgeRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public lgraph.Lgraph.DelEdgeRequest.Builder getDelEdgeRequestBuilder() { - return getDelEdgeRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - public lgraph.Lgraph.DelEdgeRequestOrBuilder getDelEdgeRequestOrBuilder() { - if ((reqCase_ == 7) && (delEdgeRequestBuilder_ != null)) { - return delEdgeRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 7) { - return (lgraph.Lgraph.DelEdgeRequest) req_; - } - return lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelEdgeRequest del_edge_request = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeRequest, lgraph.Lgraph.DelEdgeRequest.Builder, lgraph.Lgraph.DelEdgeRequestOrBuilder> - getDelEdgeRequestFieldBuilder() { - if (delEdgeRequestBuilder_ == null) { - if (!(reqCase_ == 7)) { - req_ = lgraph.Lgraph.DelEdgeRequest.getDefaultInstance(); - } - delEdgeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeRequest, lgraph.Lgraph.DelEdgeRequest.Builder, lgraph.Lgraph.DelEdgeRequestOrBuilder>( - (lgraph.Lgraph.DelEdgeRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 7; - onChanged();; - return delEdgeRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexRequest, lgraph.Lgraph.ModVertexRequest.Builder, lgraph.Lgraph.ModVertexRequestOrBuilder> modVertexRequestBuilder_; - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public boolean hasModVertexRequest() { - return reqCase_ == 8; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public lgraph.Lgraph.ModVertexRequest getModVertexRequest() { - if (modVertexRequestBuilder_ == null) { - if (reqCase_ == 8) { - return (lgraph.Lgraph.ModVertexRequest) req_; - } - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } else { - if (reqCase_ == 8) { - return modVertexRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public Builder setModVertexRequest(lgraph.Lgraph.ModVertexRequest value) { - if (modVertexRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - modVertexRequestBuilder_.setMessage(value); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public Builder setModVertexRequest( - lgraph.Lgraph.ModVertexRequest.Builder builderForValue) { - if (modVertexRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - modVertexRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public Builder mergeModVertexRequest(lgraph.Lgraph.ModVertexRequest value) { - if (modVertexRequestBuilder_ == null) { - if (reqCase_ == 8 && - req_ != lgraph.Lgraph.ModVertexRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ModVertexRequest.newBuilder((lgraph.Lgraph.ModVertexRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 8) { - modVertexRequestBuilder_.mergeFrom(value); - } - modVertexRequestBuilder_.setMessage(value); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public Builder clearModVertexRequest() { - if (modVertexRequestBuilder_ == null) { - if (reqCase_ == 8) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 8) { - reqCase_ = 0; - req_ = null; - } - modVertexRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public lgraph.Lgraph.ModVertexRequest.Builder getModVertexRequestBuilder() { - return getModVertexRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - public lgraph.Lgraph.ModVertexRequestOrBuilder getModVertexRequestOrBuilder() { - if ((reqCase_ == 8) && (modVertexRequestBuilder_ != null)) { - return modVertexRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 8) { - return (lgraph.Lgraph.ModVertexRequest) req_; - } - return lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModVertexRequest mod_vertex_request = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexRequest, lgraph.Lgraph.ModVertexRequest.Builder, lgraph.Lgraph.ModVertexRequestOrBuilder> - getModVertexRequestFieldBuilder() { - if (modVertexRequestBuilder_ == null) { - if (!(reqCase_ == 8)) { - req_ = lgraph.Lgraph.ModVertexRequest.getDefaultInstance(); - } - modVertexRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexRequest, lgraph.Lgraph.ModVertexRequest.Builder, lgraph.Lgraph.ModVertexRequestOrBuilder>( - (lgraph.Lgraph.ModVertexRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 8; - onChanged();; - return modVertexRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeRequest, lgraph.Lgraph.ModEdgeRequest.Builder, lgraph.Lgraph.ModEdgeRequestOrBuilder> modEdgeRequestBuilder_; - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public boolean hasModEdgeRequest() { - return reqCase_ == 9; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public lgraph.Lgraph.ModEdgeRequest getModEdgeRequest() { - if (modEdgeRequestBuilder_ == null) { - if (reqCase_ == 9) { - return (lgraph.Lgraph.ModEdgeRequest) req_; - } - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } else { - if (reqCase_ == 9) { - return modEdgeRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public Builder setModEdgeRequest(lgraph.Lgraph.ModEdgeRequest value) { - if (modEdgeRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - modEdgeRequestBuilder_.setMessage(value); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public Builder setModEdgeRequest( - lgraph.Lgraph.ModEdgeRequest.Builder builderForValue) { - if (modEdgeRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - modEdgeRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public Builder mergeModEdgeRequest(lgraph.Lgraph.ModEdgeRequest value) { - if (modEdgeRequestBuilder_ == null) { - if (reqCase_ == 9 && - req_ != lgraph.Lgraph.ModEdgeRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ModEdgeRequest.newBuilder((lgraph.Lgraph.ModEdgeRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 9) { - modEdgeRequestBuilder_.mergeFrom(value); - } - modEdgeRequestBuilder_.setMessage(value); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public Builder clearModEdgeRequest() { - if (modEdgeRequestBuilder_ == null) { - if (reqCase_ == 9) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 9) { - reqCase_ = 0; - req_ = null; - } - modEdgeRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public lgraph.Lgraph.ModEdgeRequest.Builder getModEdgeRequestBuilder() { - return getModEdgeRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - public lgraph.Lgraph.ModEdgeRequestOrBuilder getModEdgeRequestOrBuilder() { - if ((reqCase_ == 9) && (modEdgeRequestBuilder_ != null)) { - return modEdgeRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 9) { - return (lgraph.Lgraph.ModEdgeRequest) req_; - } - return lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModEdgeRequest mod_edge_request = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeRequest, lgraph.Lgraph.ModEdgeRequest.Builder, lgraph.Lgraph.ModEdgeRequestOrBuilder> - getModEdgeRequestFieldBuilder() { - if (modEdgeRequestBuilder_ == null) { - if (!(reqCase_ == 9)) { - req_ = lgraph.Lgraph.ModEdgeRequest.getDefaultInstance(); - } - modEdgeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeRequest, lgraph.Lgraph.ModEdgeRequest.Builder, lgraph.Lgraph.ModEdgeRequestOrBuilder>( - (lgraph.Lgraph.ModEdgeRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 9; - onChanged();; - return modEdgeRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphRequest, lgraph.Lgraph.SubGraphRequest.Builder, lgraph.Lgraph.SubGraphRequestOrBuilder> subGraphRequestBuilder_; - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public boolean hasSubGraphRequest() { - return reqCase_ == 10; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public lgraph.Lgraph.SubGraphRequest getSubGraphRequest() { - if (subGraphRequestBuilder_ == null) { - if (reqCase_ == 10) { - return (lgraph.Lgraph.SubGraphRequest) req_; - } - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } else { - if (reqCase_ == 10) { - return subGraphRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public Builder setSubGraphRequest(lgraph.Lgraph.SubGraphRequest value) { - if (subGraphRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - subGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public Builder setSubGraphRequest( - lgraph.Lgraph.SubGraphRequest.Builder builderForValue) { - if (subGraphRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - subGraphRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public Builder mergeSubGraphRequest(lgraph.Lgraph.SubGraphRequest value) { - if (subGraphRequestBuilder_ == null) { - if (reqCase_ == 10 && - req_ != lgraph.Lgraph.SubGraphRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.SubGraphRequest.newBuilder((lgraph.Lgraph.SubGraphRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 10) { - subGraphRequestBuilder_.mergeFrom(value); - } - subGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public Builder clearSubGraphRequest() { - if (subGraphRequestBuilder_ == null) { - if (reqCase_ == 10) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 10) { - reqCase_ = 0; - req_ = null; - } - subGraphRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public lgraph.Lgraph.SubGraphRequest.Builder getSubGraphRequestBuilder() { - return getSubGraphRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - public lgraph.Lgraph.SubGraphRequestOrBuilder getSubGraphRequestOrBuilder() { - if ((reqCase_ == 10) && (subGraphRequestBuilder_ != null)) { - return subGraphRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 10) { - return (lgraph.Lgraph.SubGraphRequest) req_; - } - return lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SubGraphRequest sub_graph_request = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphRequest, lgraph.Lgraph.SubGraphRequest.Builder, lgraph.Lgraph.SubGraphRequestOrBuilder> - getSubGraphRequestFieldBuilder() { - if (subGraphRequestBuilder_ == null) { - if (!(reqCase_ == 10)) { - req_ = lgraph.Lgraph.SubGraphRequest.getDefaultInstance(); - } - subGraphRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphRequest, lgraph.Lgraph.SubGraphRequest.Builder, lgraph.Lgraph.SubGraphRequestOrBuilder>( - (lgraph.Lgraph.SubGraphRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 10; - onChanged();; - return subGraphRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushRequest, lgraph.Lgraph.FlushRequest.Builder, lgraph.Lgraph.FlushRequestOrBuilder> flushRequestBuilder_; - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public boolean hasFlushRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public lgraph.Lgraph.FlushRequest getFlushRequest() { - if (flushRequestBuilder_ == null) { - if (reqCase_ == 11) { - return (lgraph.Lgraph.FlushRequest) req_; - } - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } else { - if (reqCase_ == 11) { - return flushRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public Builder setFlushRequest(lgraph.Lgraph.FlushRequest value) { - if (flushRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - flushRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public Builder setFlushRequest( - lgraph.Lgraph.FlushRequest.Builder builderForValue) { - if (flushRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - flushRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public Builder mergeFlushRequest(lgraph.Lgraph.FlushRequest value) { - if (flushRequestBuilder_ == null) { - if (reqCase_ == 11 && - req_ != lgraph.Lgraph.FlushRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.FlushRequest.newBuilder((lgraph.Lgraph.FlushRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 11) { - flushRequestBuilder_.mergeFrom(value); - } - flushRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public Builder clearFlushRequest() { - if (flushRequestBuilder_ == null) { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - } - flushRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public lgraph.Lgraph.FlushRequest.Builder getFlushRequestBuilder() { - return getFlushRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - public lgraph.Lgraph.FlushRequestOrBuilder getFlushRequestOrBuilder() { - if ((reqCase_ == 11) && (flushRequestBuilder_ != null)) { - return flushRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 11) { - return (lgraph.Lgraph.FlushRequest) req_; - } - return lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.FlushRequest flush_request = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushRequest, lgraph.Lgraph.FlushRequest.Builder, lgraph.Lgraph.FlushRequestOrBuilder> - getFlushRequestFieldBuilder() { - if (flushRequestBuilder_ == null) { - if (!(reqCase_ == 11)) { - req_ = lgraph.Lgraph.FlushRequest.getDefaultInstance(); - } - flushRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushRequest, lgraph.Lgraph.FlushRequest.Builder, lgraph.Lgraph.FlushRequestOrBuilder>( - (lgraph.Lgraph.FlushRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 11; - onChanged();; - return flushRequestBuilder_; - } - - private java.lang.Object graph_ = ""; - /** - * required string graph = 12; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * required string graph = 12; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string graph = 12; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string graph = 12; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - graph_ = value; - onChanged(); - return this; - } - /** - * required string graph = 12; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000800); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * required string graph = 12; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - graph_ = 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:lgraph.GraphApiRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GraphApiRequest) - private static final lgraph.Lgraph.GraphApiRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GraphApiRequest(); - } - - public static lgraph.Lgraph.GraphApiRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphApiRequest(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 lgraph.Lgraph.GraphApiRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GraphApiResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GraphApiResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - boolean hasAddLabelResponse(); - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - lgraph.Lgraph.AddLabelResponse getAddLabelResponse(); - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - lgraph.Lgraph.AddLabelResponseOrBuilder getAddLabelResponseOrBuilder(); - - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - boolean hasAddIndexResponse(); - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - lgraph.Lgraph.AddIndexResponse getAddIndexResponse(); - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - lgraph.Lgraph.AddIndexResponseOrBuilder getAddIndexResponseOrBuilder(); - - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - boolean hasAddVertexesResponse(); - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - lgraph.Lgraph.AddVertexesResponse getAddVertexesResponse(); - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - lgraph.Lgraph.AddVertexesResponseOrBuilder getAddVertexesResponseOrBuilder(); - - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - boolean hasAddEdgesResponse(); - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - lgraph.Lgraph.AddEdgesResponse getAddEdgesResponse(); - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - lgraph.Lgraph.AddEdgesResponseOrBuilder getAddEdgesResponseOrBuilder(); - - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - boolean hasDelIndexResponse(); - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - lgraph.Lgraph.DelIndexResponse getDelIndexResponse(); - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - lgraph.Lgraph.DelIndexResponseOrBuilder getDelIndexResponseOrBuilder(); - - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - boolean hasDelVertexResponse(); - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - lgraph.Lgraph.DelVertexResponse getDelVertexResponse(); - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - lgraph.Lgraph.DelVertexResponseOrBuilder getDelVertexResponseOrBuilder(); - - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - boolean hasDelEdgeResponse(); - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - lgraph.Lgraph.DelEdgeResponse getDelEdgeResponse(); - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - lgraph.Lgraph.DelEdgeResponseOrBuilder getDelEdgeResponseOrBuilder(); - - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - boolean hasModVertexResponse(); - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - lgraph.Lgraph.ModVertexResponse getModVertexResponse(); - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - lgraph.Lgraph.ModVertexResponseOrBuilder getModVertexResponseOrBuilder(); - - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - boolean hasModEdgeResponse(); - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - lgraph.Lgraph.ModEdgeResponse getModEdgeResponse(); - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - lgraph.Lgraph.ModEdgeResponseOrBuilder getModEdgeResponseOrBuilder(); - - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - boolean hasSubGraphResponse(); - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - lgraph.Lgraph.SubGraphResponse getSubGraphResponse(); - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - lgraph.Lgraph.SubGraphResponseOrBuilder getSubGraphResponseOrBuilder(); - - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - boolean hasFlushResponse(); - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - lgraph.Lgraph.FlushResponse getFlushResponse(); - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - lgraph.Lgraph.FlushResponseOrBuilder getFlushResponseOrBuilder(); - - public lgraph.Lgraph.GraphApiResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.GraphApiResponse} - */ - public static final class GraphApiResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GraphApiResponse) - GraphApiResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GraphApiResponse.newBuilder() to construct. - private GraphApiResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphApiResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphApiResponse( - 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: { - lgraph.Lgraph.AddLabelResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AddLabelResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddLabelResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddLabelResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.AddIndexResponse.Builder subBuilder = null; - if (respCase_ == 2) { - subBuilder = ((lgraph.Lgraph.AddIndexResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddIndexResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddIndexResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.AddVertexesResponse.Builder subBuilder = null; - if (respCase_ == 3) { - subBuilder = ((lgraph.Lgraph.AddVertexesResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddVertexesResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddVertexesResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.AddEdgesResponse.Builder subBuilder = null; - if (respCase_ == 4) { - subBuilder = ((lgraph.Lgraph.AddEdgesResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddEdgesResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddEdgesResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.DelIndexResponse.Builder subBuilder = null; - if (respCase_ == 5) { - subBuilder = ((lgraph.Lgraph.DelIndexResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelIndexResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelIndexResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 5; - break; - } - case 50: { - lgraph.Lgraph.DelVertexResponse.Builder subBuilder = null; - if (respCase_ == 6) { - subBuilder = ((lgraph.Lgraph.DelVertexResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelVertexResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelVertexResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 6; - break; - } - case 58: { - lgraph.Lgraph.DelEdgeResponse.Builder subBuilder = null; - if (respCase_ == 7) { - subBuilder = ((lgraph.Lgraph.DelEdgeResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelEdgeResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelEdgeResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 7; - break; - } - case 66: { - lgraph.Lgraph.ModVertexResponse.Builder subBuilder = null; - if (respCase_ == 8) { - subBuilder = ((lgraph.Lgraph.ModVertexResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ModVertexResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModVertexResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 8; - break; - } - case 74: { - lgraph.Lgraph.ModEdgeResponse.Builder subBuilder = null; - if (respCase_ == 9) { - subBuilder = ((lgraph.Lgraph.ModEdgeResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ModEdgeResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModEdgeResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 9; - break; - } - case 82: { - lgraph.Lgraph.SubGraphResponse.Builder subBuilder = null; - if (respCase_ == 10) { - subBuilder = ((lgraph.Lgraph.SubGraphResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.SubGraphResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SubGraphResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 10; - break; - } - case 90: { - lgraph.Lgraph.FlushResponse.Builder subBuilder = null; - if (respCase_ == 11) { - subBuilder = ((lgraph.Lgraph.FlushResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.FlushResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.FlushResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 11; - 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 lgraph.Lgraph.internal_static_lgraph_GraphApiResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphApiResponse.class, lgraph.Lgraph.GraphApiResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - ADD_LABEL_RESPONSE(1), - ADD_INDEX_RESPONSE(2), - ADD_VERTEXES_RESPONSE(3), - ADD_EDGES_RESPONSE(4), - DEL_INDEX_RESPONSE(5), - DEL_VERTEX_RESPONSE(6), - DEL_EDGE_RESPONSE(7), - MOD_VERTEX_RESPONSE(8), - MOD_EDGE_RESPONSE(9), - SUB_GRAPH_RESPONSE(10), - FLUSH_RESPONSE(11), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return ADD_LABEL_RESPONSE; - case 2: return ADD_INDEX_RESPONSE; - case 3: return ADD_VERTEXES_RESPONSE; - case 4: return ADD_EDGES_RESPONSE; - case 5: return DEL_INDEX_RESPONSE; - case 6: return DEL_VERTEX_RESPONSE; - case 7: return DEL_EDGE_RESPONSE; - case 8: return MOD_VERTEX_RESPONSE; - case 9: return MOD_EDGE_RESPONSE; - case 10: return SUB_GRAPH_RESPONSE; - case 11: return FLUSH_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int ADD_LABEL_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public boolean hasAddLabelResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public lgraph.Lgraph.AddLabelResponse getAddLabelResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddLabelResponse) resp_; - } - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public lgraph.Lgraph.AddLabelResponseOrBuilder getAddLabelResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddLabelResponse) resp_; - } - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - - public static final int ADD_INDEX_RESPONSE_FIELD_NUMBER = 2; - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public boolean hasAddIndexResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public lgraph.Lgraph.AddIndexResponse getAddIndexResponse() { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddIndexResponse) resp_; - } - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public lgraph.Lgraph.AddIndexResponseOrBuilder getAddIndexResponseOrBuilder() { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddIndexResponse) resp_; - } - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - - public static final int ADD_VERTEXES_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public boolean hasAddVertexesResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public lgraph.Lgraph.AddVertexesResponse getAddVertexesResponse() { - if (respCase_ == 3) { - return (lgraph.Lgraph.AddVertexesResponse) resp_; - } - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public lgraph.Lgraph.AddVertexesResponseOrBuilder getAddVertexesResponseOrBuilder() { - if (respCase_ == 3) { - return (lgraph.Lgraph.AddVertexesResponse) resp_; - } - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - - public static final int ADD_EDGES_RESPONSE_FIELD_NUMBER = 4; - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public boolean hasAddEdgesResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public lgraph.Lgraph.AddEdgesResponse getAddEdgesResponse() { - if (respCase_ == 4) { - return (lgraph.Lgraph.AddEdgesResponse) resp_; - } - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public lgraph.Lgraph.AddEdgesResponseOrBuilder getAddEdgesResponseOrBuilder() { - if (respCase_ == 4) { - return (lgraph.Lgraph.AddEdgesResponse) resp_; - } - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - - public static final int DEL_INDEX_RESPONSE_FIELD_NUMBER = 5; - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public boolean hasDelIndexResponse() { - return respCase_ == 5; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public lgraph.Lgraph.DelIndexResponse getDelIndexResponse() { - if (respCase_ == 5) { - return (lgraph.Lgraph.DelIndexResponse) resp_; - } - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public lgraph.Lgraph.DelIndexResponseOrBuilder getDelIndexResponseOrBuilder() { - if (respCase_ == 5) { - return (lgraph.Lgraph.DelIndexResponse) resp_; - } - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - - public static final int DEL_VERTEX_RESPONSE_FIELD_NUMBER = 6; - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public boolean hasDelVertexResponse() { - return respCase_ == 6; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public lgraph.Lgraph.DelVertexResponse getDelVertexResponse() { - if (respCase_ == 6) { - return (lgraph.Lgraph.DelVertexResponse) resp_; - } - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public lgraph.Lgraph.DelVertexResponseOrBuilder getDelVertexResponseOrBuilder() { - if (respCase_ == 6) { - return (lgraph.Lgraph.DelVertexResponse) resp_; - } - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - - public static final int DEL_EDGE_RESPONSE_FIELD_NUMBER = 7; - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public boolean hasDelEdgeResponse() { - return respCase_ == 7; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public lgraph.Lgraph.DelEdgeResponse getDelEdgeResponse() { - if (respCase_ == 7) { - return (lgraph.Lgraph.DelEdgeResponse) resp_; - } - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public lgraph.Lgraph.DelEdgeResponseOrBuilder getDelEdgeResponseOrBuilder() { - if (respCase_ == 7) { - return (lgraph.Lgraph.DelEdgeResponse) resp_; - } - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - - public static final int MOD_VERTEX_RESPONSE_FIELD_NUMBER = 8; - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public boolean hasModVertexResponse() { - return respCase_ == 8; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public lgraph.Lgraph.ModVertexResponse getModVertexResponse() { - if (respCase_ == 8) { - return (lgraph.Lgraph.ModVertexResponse) resp_; - } - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public lgraph.Lgraph.ModVertexResponseOrBuilder getModVertexResponseOrBuilder() { - if (respCase_ == 8) { - return (lgraph.Lgraph.ModVertexResponse) resp_; - } - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - - public static final int MOD_EDGE_RESPONSE_FIELD_NUMBER = 9; - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public boolean hasModEdgeResponse() { - return respCase_ == 9; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public lgraph.Lgraph.ModEdgeResponse getModEdgeResponse() { - if (respCase_ == 9) { - return (lgraph.Lgraph.ModEdgeResponse) resp_; - } - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public lgraph.Lgraph.ModEdgeResponseOrBuilder getModEdgeResponseOrBuilder() { - if (respCase_ == 9) { - return (lgraph.Lgraph.ModEdgeResponse) resp_; - } - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - - public static final int SUB_GRAPH_RESPONSE_FIELD_NUMBER = 10; - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public boolean hasSubGraphResponse() { - return respCase_ == 10; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public lgraph.Lgraph.SubGraphResponse getSubGraphResponse() { - if (respCase_ == 10) { - return (lgraph.Lgraph.SubGraphResponse) resp_; - } - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public lgraph.Lgraph.SubGraphResponseOrBuilder getSubGraphResponseOrBuilder() { - if (respCase_ == 10) { - return (lgraph.Lgraph.SubGraphResponse) resp_; - } - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - - public static final int FLUSH_RESPONSE_FIELD_NUMBER = 11; - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public boolean hasFlushResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public lgraph.Lgraph.FlushResponse getFlushResponse() { - if (respCase_ == 11) { - return (lgraph.Lgraph.FlushResponse) resp_; - } - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public lgraph.Lgraph.FlushResponseOrBuilder getFlushResponseOrBuilder() { - if (respCase_ == 11) { - return (lgraph.Lgraph.FlushResponse) resp_; - } - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasAddEdgesResponse()) { - if (!getAddEdgesResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelVertexResponse()) { - if (!getDelVertexResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSubGraphResponse()) { - if (!getSubGraphResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AddLabelResponse) resp_); - } - if (respCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.AddIndexResponse) resp_); - } - if (respCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.AddVertexesResponse) resp_); - } - if (respCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.AddEdgesResponse) resp_); - } - if (respCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.DelIndexResponse) resp_); - } - if (respCase_ == 6) { - output.writeMessage(6, (lgraph.Lgraph.DelVertexResponse) resp_); - } - if (respCase_ == 7) { - output.writeMessage(7, (lgraph.Lgraph.DelEdgeResponse) resp_); - } - if (respCase_ == 8) { - output.writeMessage(8, (lgraph.Lgraph.ModVertexResponse) resp_); - } - if (respCase_ == 9) { - output.writeMessage(9, (lgraph.Lgraph.ModEdgeResponse) resp_); - } - if (respCase_ == 10) { - output.writeMessage(10, (lgraph.Lgraph.SubGraphResponse) resp_); - } - if (respCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.FlushResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AddLabelResponse) resp_); - } - if (respCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.AddIndexResponse) resp_); - } - if (respCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.AddVertexesResponse) resp_); - } - if (respCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.AddEdgesResponse) resp_); - } - if (respCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.DelIndexResponse) resp_); - } - if (respCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (lgraph.Lgraph.DelVertexResponse) resp_); - } - if (respCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (lgraph.Lgraph.DelEdgeResponse) resp_); - } - if (respCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (lgraph.Lgraph.ModVertexResponse) resp_); - } - if (respCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (lgraph.Lgraph.ModEdgeResponse) resp_); - } - if (respCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (lgraph.Lgraph.SubGraphResponse) resp_); - } - if (respCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.FlushResponse) resp_); - } - 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 lgraph.Lgraph.GraphApiResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GraphApiResponse other = (lgraph.Lgraph.GraphApiResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getAddLabelResponse() - .equals(other.getAddLabelResponse()); - break; - case 2: - result = result && getAddIndexResponse() - .equals(other.getAddIndexResponse()); - break; - case 3: - result = result && getAddVertexesResponse() - .equals(other.getAddVertexesResponse()); - break; - case 4: - result = result && getAddEdgesResponse() - .equals(other.getAddEdgesResponse()); - break; - case 5: - result = result && getDelIndexResponse() - .equals(other.getDelIndexResponse()); - break; - case 6: - result = result && getDelVertexResponse() - .equals(other.getDelVertexResponse()); - break; - case 7: - result = result && getDelEdgeResponse() - .equals(other.getDelEdgeResponse()); - break; - case 8: - result = result && getModVertexResponse() - .equals(other.getModVertexResponse()); - break; - case 9: - result = result && getModEdgeResponse() - .equals(other.getModEdgeResponse()); - break; - case 10: - result = result && getSubGraphResponse() - .equals(other.getSubGraphResponse()); - break; - case 11: - result = result && getFlushResponse() - .equals(other.getFlushResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + ADD_LABEL_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddLabelResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + ADD_INDEX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddIndexResponse().hashCode(); - break; - case 3: - hash = (37 * hash) + ADD_VERTEXES_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddVertexesResponse().hashCode(); - break; - case 4: - hash = (37 * hash) + ADD_EDGES_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddEdgesResponse().hashCode(); - break; - case 5: - hash = (37 * hash) + DEL_INDEX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelIndexResponse().hashCode(); - break; - case 6: - hash = (37 * hash) + DEL_VERTEX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelVertexResponse().hashCode(); - break; - case 7: - hash = (37 * hash) + DEL_EDGE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelEdgeResponse().hashCode(); - break; - case 8: - hash = (37 * hash) + MOD_VERTEX_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getModVertexResponse().hashCode(); - break; - case 9: - hash = (37 * hash) + MOD_EDGE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getModEdgeResponse().hashCode(); - break; - case 10: - hash = (37 * hash) + SUB_GRAPH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getSubGraphResponse().hashCode(); - break; - case 11: - hash = (37 * hash) + FLUSH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getFlushResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GraphApiResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphApiResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiResponse 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 lgraph.Lgraph.GraphApiResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiResponse 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 lgraph.Lgraph.GraphApiResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphApiResponse 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(lgraph.Lgraph.GraphApiResponse 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 lgraph.GraphApiResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GraphApiResponse) - lgraph.Lgraph.GraphApiResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphApiResponse.class, lgraph.Lgraph.GraphApiResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GraphApiResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GraphApiResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiResponse build() { - lgraph.Lgraph.GraphApiResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GraphApiResponse buildPartial() { - lgraph.Lgraph.GraphApiResponse result = new lgraph.Lgraph.GraphApiResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (addLabelResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addLabelResponseBuilder_.build(); - } - } - if (respCase_ == 2) { - if (addIndexResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addIndexResponseBuilder_.build(); - } - } - if (respCase_ == 3) { - if (addVertexesResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addVertexesResponseBuilder_.build(); - } - } - if (respCase_ == 4) { - if (addEdgesResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addEdgesResponseBuilder_.build(); - } - } - if (respCase_ == 5) { - if (delIndexResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delIndexResponseBuilder_.build(); - } - } - if (respCase_ == 6) { - if (delVertexResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delVertexResponseBuilder_.build(); - } - } - if (respCase_ == 7) { - if (delEdgeResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delEdgeResponseBuilder_.build(); - } - } - if (respCase_ == 8) { - if (modVertexResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = modVertexResponseBuilder_.build(); - } - } - if (respCase_ == 9) { - if (modEdgeResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = modEdgeResponseBuilder_.build(); - } - } - if (respCase_ == 10) { - if (subGraphResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = subGraphResponseBuilder_.build(); - } - } - if (respCase_ == 11) { - if (flushResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = flushResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GraphApiResponse) { - return mergeFrom((lgraph.Lgraph.GraphApiResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GraphApiResponse other) { - if (other == lgraph.Lgraph.GraphApiResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case ADD_LABEL_RESPONSE: { - mergeAddLabelResponse(other.getAddLabelResponse()); - break; - } - case ADD_INDEX_RESPONSE: { - mergeAddIndexResponse(other.getAddIndexResponse()); - break; - } - case ADD_VERTEXES_RESPONSE: { - mergeAddVertexesResponse(other.getAddVertexesResponse()); - break; - } - case ADD_EDGES_RESPONSE: { - mergeAddEdgesResponse(other.getAddEdgesResponse()); - break; - } - case DEL_INDEX_RESPONSE: { - mergeDelIndexResponse(other.getDelIndexResponse()); - break; - } - case DEL_VERTEX_RESPONSE: { - mergeDelVertexResponse(other.getDelVertexResponse()); - break; - } - case DEL_EDGE_RESPONSE: { - mergeDelEdgeResponse(other.getDelEdgeResponse()); - break; - } - case MOD_VERTEX_RESPONSE: { - mergeModVertexResponse(other.getModVertexResponse()); - break; - } - case MOD_EDGE_RESPONSE: { - mergeModEdgeResponse(other.getModEdgeResponse()); - break; - } - case SUB_GRAPH_RESPONSE: { - mergeSubGraphResponse(other.getSubGraphResponse()); - break; - } - case FLUSH_RESPONSE: { - mergeFlushResponse(other.getFlushResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasAddEdgesResponse()) { - if (!getAddEdgesResponse().isInitialized()) { - return false; - } - } - if (hasDelVertexResponse()) { - if (!getDelVertexResponse().isInitialized()) { - return false; - } - } - if (hasSubGraphResponse()) { - if (!getSubGraphResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GraphApiResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GraphApiResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelResponse, lgraph.Lgraph.AddLabelResponse.Builder, lgraph.Lgraph.AddLabelResponseOrBuilder> addLabelResponseBuilder_; - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public boolean hasAddLabelResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public lgraph.Lgraph.AddLabelResponse getAddLabelResponse() { - if (addLabelResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddLabelResponse) resp_; - } - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return addLabelResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public Builder setAddLabelResponse(lgraph.Lgraph.AddLabelResponse value) { - if (addLabelResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addLabelResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public Builder setAddLabelResponse( - lgraph.Lgraph.AddLabelResponse.Builder builderForValue) { - if (addLabelResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addLabelResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public Builder mergeAddLabelResponse(lgraph.Lgraph.AddLabelResponse value) { - if (addLabelResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.AddLabelResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddLabelResponse.newBuilder((lgraph.Lgraph.AddLabelResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - addLabelResponseBuilder_.mergeFrom(value); - } - addLabelResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public Builder clearAddLabelResponse() { - if (addLabelResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - addLabelResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public lgraph.Lgraph.AddLabelResponse.Builder getAddLabelResponseBuilder() { - return getAddLabelResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - public lgraph.Lgraph.AddLabelResponseOrBuilder getAddLabelResponseOrBuilder() { - if ((respCase_ == 1) && (addLabelResponseBuilder_ != null)) { - return addLabelResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddLabelResponse) resp_; - } - return lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddLabelResponse add_label_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelResponse, lgraph.Lgraph.AddLabelResponse.Builder, lgraph.Lgraph.AddLabelResponseOrBuilder> - getAddLabelResponseFieldBuilder() { - if (addLabelResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.AddLabelResponse.getDefaultInstance(); - } - addLabelResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddLabelResponse, lgraph.Lgraph.AddLabelResponse.Builder, lgraph.Lgraph.AddLabelResponseOrBuilder>( - (lgraph.Lgraph.AddLabelResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return addLabelResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexResponse, lgraph.Lgraph.AddIndexResponse.Builder, lgraph.Lgraph.AddIndexResponseOrBuilder> addIndexResponseBuilder_; - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public boolean hasAddIndexResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public lgraph.Lgraph.AddIndexResponse getAddIndexResponse() { - if (addIndexResponseBuilder_ == null) { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddIndexResponse) resp_; - } - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } else { - if (respCase_ == 2) { - return addIndexResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public Builder setAddIndexResponse(lgraph.Lgraph.AddIndexResponse value) { - if (addIndexResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addIndexResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public Builder setAddIndexResponse( - lgraph.Lgraph.AddIndexResponse.Builder builderForValue) { - if (addIndexResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addIndexResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public Builder mergeAddIndexResponse(lgraph.Lgraph.AddIndexResponse value) { - if (addIndexResponseBuilder_ == null) { - if (respCase_ == 2 && - resp_ != lgraph.Lgraph.AddIndexResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddIndexResponse.newBuilder((lgraph.Lgraph.AddIndexResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 2) { - addIndexResponseBuilder_.mergeFrom(value); - } - addIndexResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public Builder clearAddIndexResponse() { - if (addIndexResponseBuilder_ == null) { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - } - addIndexResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public lgraph.Lgraph.AddIndexResponse.Builder getAddIndexResponseBuilder() { - return getAddIndexResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - public lgraph.Lgraph.AddIndexResponseOrBuilder getAddIndexResponseOrBuilder() { - if ((respCase_ == 2) && (addIndexResponseBuilder_ != null)) { - return addIndexResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddIndexResponse) resp_; - } - return lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddIndexResponse add_index_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexResponse, lgraph.Lgraph.AddIndexResponse.Builder, lgraph.Lgraph.AddIndexResponseOrBuilder> - getAddIndexResponseFieldBuilder() { - if (addIndexResponseBuilder_ == null) { - if (!(respCase_ == 2)) { - resp_ = lgraph.Lgraph.AddIndexResponse.getDefaultInstance(); - } - addIndexResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddIndexResponse, lgraph.Lgraph.AddIndexResponse.Builder, lgraph.Lgraph.AddIndexResponseOrBuilder>( - (lgraph.Lgraph.AddIndexResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 2; - onChanged();; - return addIndexResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesResponse, lgraph.Lgraph.AddVertexesResponse.Builder, lgraph.Lgraph.AddVertexesResponseOrBuilder> addVertexesResponseBuilder_; - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public boolean hasAddVertexesResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public lgraph.Lgraph.AddVertexesResponse getAddVertexesResponse() { - if (addVertexesResponseBuilder_ == null) { - if (respCase_ == 3) { - return (lgraph.Lgraph.AddVertexesResponse) resp_; - } - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } else { - if (respCase_ == 3) { - return addVertexesResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public Builder setAddVertexesResponse(lgraph.Lgraph.AddVertexesResponse value) { - if (addVertexesResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addVertexesResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public Builder setAddVertexesResponse( - lgraph.Lgraph.AddVertexesResponse.Builder builderForValue) { - if (addVertexesResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addVertexesResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public Builder mergeAddVertexesResponse(lgraph.Lgraph.AddVertexesResponse value) { - if (addVertexesResponseBuilder_ == null) { - if (respCase_ == 3 && - resp_ != lgraph.Lgraph.AddVertexesResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddVertexesResponse.newBuilder((lgraph.Lgraph.AddVertexesResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 3) { - addVertexesResponseBuilder_.mergeFrom(value); - } - addVertexesResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public Builder clearAddVertexesResponse() { - if (addVertexesResponseBuilder_ == null) { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - } - addVertexesResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public lgraph.Lgraph.AddVertexesResponse.Builder getAddVertexesResponseBuilder() { - return getAddVertexesResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - public lgraph.Lgraph.AddVertexesResponseOrBuilder getAddVertexesResponseOrBuilder() { - if ((respCase_ == 3) && (addVertexesResponseBuilder_ != null)) { - return addVertexesResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 3) { - return (lgraph.Lgraph.AddVertexesResponse) resp_; - } - return lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddVertexesResponse add_vertexes_response = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesResponse, lgraph.Lgraph.AddVertexesResponse.Builder, lgraph.Lgraph.AddVertexesResponseOrBuilder> - getAddVertexesResponseFieldBuilder() { - if (addVertexesResponseBuilder_ == null) { - if (!(respCase_ == 3)) { - resp_ = lgraph.Lgraph.AddVertexesResponse.getDefaultInstance(); - } - addVertexesResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddVertexesResponse, lgraph.Lgraph.AddVertexesResponse.Builder, lgraph.Lgraph.AddVertexesResponseOrBuilder>( - (lgraph.Lgraph.AddVertexesResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 3; - onChanged();; - return addVertexesResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesResponse, lgraph.Lgraph.AddEdgesResponse.Builder, lgraph.Lgraph.AddEdgesResponseOrBuilder> addEdgesResponseBuilder_; - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public boolean hasAddEdgesResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public lgraph.Lgraph.AddEdgesResponse getAddEdgesResponse() { - if (addEdgesResponseBuilder_ == null) { - if (respCase_ == 4) { - return (lgraph.Lgraph.AddEdgesResponse) resp_; - } - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } else { - if (respCase_ == 4) { - return addEdgesResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public Builder setAddEdgesResponse(lgraph.Lgraph.AddEdgesResponse value) { - if (addEdgesResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addEdgesResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public Builder setAddEdgesResponse( - lgraph.Lgraph.AddEdgesResponse.Builder builderForValue) { - if (addEdgesResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addEdgesResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public Builder mergeAddEdgesResponse(lgraph.Lgraph.AddEdgesResponse value) { - if (addEdgesResponseBuilder_ == null) { - if (respCase_ == 4 && - resp_ != lgraph.Lgraph.AddEdgesResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddEdgesResponse.newBuilder((lgraph.Lgraph.AddEdgesResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 4) { - addEdgesResponseBuilder_.mergeFrom(value); - } - addEdgesResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public Builder clearAddEdgesResponse() { - if (addEdgesResponseBuilder_ == null) { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - } - addEdgesResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public lgraph.Lgraph.AddEdgesResponse.Builder getAddEdgesResponseBuilder() { - return getAddEdgesResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - public lgraph.Lgraph.AddEdgesResponseOrBuilder getAddEdgesResponseOrBuilder() { - if ((respCase_ == 4) && (addEdgesResponseBuilder_ != null)) { - return addEdgesResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 4) { - return (lgraph.Lgraph.AddEdgesResponse) resp_; - } - return lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddEdgesResponse add_edges_response = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesResponse, lgraph.Lgraph.AddEdgesResponse.Builder, lgraph.Lgraph.AddEdgesResponseOrBuilder> - getAddEdgesResponseFieldBuilder() { - if (addEdgesResponseBuilder_ == null) { - if (!(respCase_ == 4)) { - resp_ = lgraph.Lgraph.AddEdgesResponse.getDefaultInstance(); - } - addEdgesResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddEdgesResponse, lgraph.Lgraph.AddEdgesResponse.Builder, lgraph.Lgraph.AddEdgesResponseOrBuilder>( - (lgraph.Lgraph.AddEdgesResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 4; - onChanged();; - return addEdgesResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexResponse, lgraph.Lgraph.DelIndexResponse.Builder, lgraph.Lgraph.DelIndexResponseOrBuilder> delIndexResponseBuilder_; - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public boolean hasDelIndexResponse() { - return respCase_ == 5; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public lgraph.Lgraph.DelIndexResponse getDelIndexResponse() { - if (delIndexResponseBuilder_ == null) { - if (respCase_ == 5) { - return (lgraph.Lgraph.DelIndexResponse) resp_; - } - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } else { - if (respCase_ == 5) { - return delIndexResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public Builder setDelIndexResponse(lgraph.Lgraph.DelIndexResponse value) { - if (delIndexResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delIndexResponseBuilder_.setMessage(value); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public Builder setDelIndexResponse( - lgraph.Lgraph.DelIndexResponse.Builder builderForValue) { - if (delIndexResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delIndexResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public Builder mergeDelIndexResponse(lgraph.Lgraph.DelIndexResponse value) { - if (delIndexResponseBuilder_ == null) { - if (respCase_ == 5 && - resp_ != lgraph.Lgraph.DelIndexResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelIndexResponse.newBuilder((lgraph.Lgraph.DelIndexResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 5) { - delIndexResponseBuilder_.mergeFrom(value); - } - delIndexResponseBuilder_.setMessage(value); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public Builder clearDelIndexResponse() { - if (delIndexResponseBuilder_ == null) { - if (respCase_ == 5) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 5) { - respCase_ = 0; - resp_ = null; - } - delIndexResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public lgraph.Lgraph.DelIndexResponse.Builder getDelIndexResponseBuilder() { - return getDelIndexResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - public lgraph.Lgraph.DelIndexResponseOrBuilder getDelIndexResponseOrBuilder() { - if ((respCase_ == 5) && (delIndexResponseBuilder_ != null)) { - return delIndexResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 5) { - return (lgraph.Lgraph.DelIndexResponse) resp_; - } - return lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelIndexResponse del_index_response = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexResponse, lgraph.Lgraph.DelIndexResponse.Builder, lgraph.Lgraph.DelIndexResponseOrBuilder> - getDelIndexResponseFieldBuilder() { - if (delIndexResponseBuilder_ == null) { - if (!(respCase_ == 5)) { - resp_ = lgraph.Lgraph.DelIndexResponse.getDefaultInstance(); - } - delIndexResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelIndexResponse, lgraph.Lgraph.DelIndexResponse.Builder, lgraph.Lgraph.DelIndexResponseOrBuilder>( - (lgraph.Lgraph.DelIndexResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 5; - onChanged();; - return delIndexResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexResponse, lgraph.Lgraph.DelVertexResponse.Builder, lgraph.Lgraph.DelVertexResponseOrBuilder> delVertexResponseBuilder_; - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public boolean hasDelVertexResponse() { - return respCase_ == 6; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public lgraph.Lgraph.DelVertexResponse getDelVertexResponse() { - if (delVertexResponseBuilder_ == null) { - if (respCase_ == 6) { - return (lgraph.Lgraph.DelVertexResponse) resp_; - } - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } else { - if (respCase_ == 6) { - return delVertexResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public Builder setDelVertexResponse(lgraph.Lgraph.DelVertexResponse value) { - if (delVertexResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delVertexResponseBuilder_.setMessage(value); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public Builder setDelVertexResponse( - lgraph.Lgraph.DelVertexResponse.Builder builderForValue) { - if (delVertexResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delVertexResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public Builder mergeDelVertexResponse(lgraph.Lgraph.DelVertexResponse value) { - if (delVertexResponseBuilder_ == null) { - if (respCase_ == 6 && - resp_ != lgraph.Lgraph.DelVertexResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelVertexResponse.newBuilder((lgraph.Lgraph.DelVertexResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 6) { - delVertexResponseBuilder_.mergeFrom(value); - } - delVertexResponseBuilder_.setMessage(value); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public Builder clearDelVertexResponse() { - if (delVertexResponseBuilder_ == null) { - if (respCase_ == 6) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 6) { - respCase_ = 0; - resp_ = null; - } - delVertexResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public lgraph.Lgraph.DelVertexResponse.Builder getDelVertexResponseBuilder() { - return getDelVertexResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - public lgraph.Lgraph.DelVertexResponseOrBuilder getDelVertexResponseOrBuilder() { - if ((respCase_ == 6) && (delVertexResponseBuilder_ != null)) { - return delVertexResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 6) { - return (lgraph.Lgraph.DelVertexResponse) resp_; - } - return lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelVertexResponse del_vertex_response = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexResponse, lgraph.Lgraph.DelVertexResponse.Builder, lgraph.Lgraph.DelVertexResponseOrBuilder> - getDelVertexResponseFieldBuilder() { - if (delVertexResponseBuilder_ == null) { - if (!(respCase_ == 6)) { - resp_ = lgraph.Lgraph.DelVertexResponse.getDefaultInstance(); - } - delVertexResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelVertexResponse, lgraph.Lgraph.DelVertexResponse.Builder, lgraph.Lgraph.DelVertexResponseOrBuilder>( - (lgraph.Lgraph.DelVertexResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 6; - onChanged();; - return delVertexResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeResponse, lgraph.Lgraph.DelEdgeResponse.Builder, lgraph.Lgraph.DelEdgeResponseOrBuilder> delEdgeResponseBuilder_; - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public boolean hasDelEdgeResponse() { - return respCase_ == 7; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public lgraph.Lgraph.DelEdgeResponse getDelEdgeResponse() { - if (delEdgeResponseBuilder_ == null) { - if (respCase_ == 7) { - return (lgraph.Lgraph.DelEdgeResponse) resp_; - } - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } else { - if (respCase_ == 7) { - return delEdgeResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public Builder setDelEdgeResponse(lgraph.Lgraph.DelEdgeResponse value) { - if (delEdgeResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delEdgeResponseBuilder_.setMessage(value); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public Builder setDelEdgeResponse( - lgraph.Lgraph.DelEdgeResponse.Builder builderForValue) { - if (delEdgeResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delEdgeResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public Builder mergeDelEdgeResponse(lgraph.Lgraph.DelEdgeResponse value) { - if (delEdgeResponseBuilder_ == null) { - if (respCase_ == 7 && - resp_ != lgraph.Lgraph.DelEdgeResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelEdgeResponse.newBuilder((lgraph.Lgraph.DelEdgeResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 7) { - delEdgeResponseBuilder_.mergeFrom(value); - } - delEdgeResponseBuilder_.setMessage(value); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public Builder clearDelEdgeResponse() { - if (delEdgeResponseBuilder_ == null) { - if (respCase_ == 7) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 7) { - respCase_ = 0; - resp_ = null; - } - delEdgeResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public lgraph.Lgraph.DelEdgeResponse.Builder getDelEdgeResponseBuilder() { - return getDelEdgeResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - public lgraph.Lgraph.DelEdgeResponseOrBuilder getDelEdgeResponseOrBuilder() { - if ((respCase_ == 7) && (delEdgeResponseBuilder_ != null)) { - return delEdgeResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 7) { - return (lgraph.Lgraph.DelEdgeResponse) resp_; - } - return lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelEdgeResponse del_edge_response = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeResponse, lgraph.Lgraph.DelEdgeResponse.Builder, lgraph.Lgraph.DelEdgeResponseOrBuilder> - getDelEdgeResponseFieldBuilder() { - if (delEdgeResponseBuilder_ == null) { - if (!(respCase_ == 7)) { - resp_ = lgraph.Lgraph.DelEdgeResponse.getDefaultInstance(); - } - delEdgeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelEdgeResponse, lgraph.Lgraph.DelEdgeResponse.Builder, lgraph.Lgraph.DelEdgeResponseOrBuilder>( - (lgraph.Lgraph.DelEdgeResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 7; - onChanged();; - return delEdgeResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexResponse, lgraph.Lgraph.ModVertexResponse.Builder, lgraph.Lgraph.ModVertexResponseOrBuilder> modVertexResponseBuilder_; - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public boolean hasModVertexResponse() { - return respCase_ == 8; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public lgraph.Lgraph.ModVertexResponse getModVertexResponse() { - if (modVertexResponseBuilder_ == null) { - if (respCase_ == 8) { - return (lgraph.Lgraph.ModVertexResponse) resp_; - } - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } else { - if (respCase_ == 8) { - return modVertexResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public Builder setModVertexResponse(lgraph.Lgraph.ModVertexResponse value) { - if (modVertexResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - modVertexResponseBuilder_.setMessage(value); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public Builder setModVertexResponse( - lgraph.Lgraph.ModVertexResponse.Builder builderForValue) { - if (modVertexResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - modVertexResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public Builder mergeModVertexResponse(lgraph.Lgraph.ModVertexResponse value) { - if (modVertexResponseBuilder_ == null) { - if (respCase_ == 8 && - resp_ != lgraph.Lgraph.ModVertexResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ModVertexResponse.newBuilder((lgraph.Lgraph.ModVertexResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 8) { - modVertexResponseBuilder_.mergeFrom(value); - } - modVertexResponseBuilder_.setMessage(value); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public Builder clearModVertexResponse() { - if (modVertexResponseBuilder_ == null) { - if (respCase_ == 8) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 8) { - respCase_ = 0; - resp_ = null; - } - modVertexResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public lgraph.Lgraph.ModVertexResponse.Builder getModVertexResponseBuilder() { - return getModVertexResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - public lgraph.Lgraph.ModVertexResponseOrBuilder getModVertexResponseOrBuilder() { - if ((respCase_ == 8) && (modVertexResponseBuilder_ != null)) { - return modVertexResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 8) { - return (lgraph.Lgraph.ModVertexResponse) resp_; - } - return lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModVertexResponse mod_vertex_response = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexResponse, lgraph.Lgraph.ModVertexResponse.Builder, lgraph.Lgraph.ModVertexResponseOrBuilder> - getModVertexResponseFieldBuilder() { - if (modVertexResponseBuilder_ == null) { - if (!(respCase_ == 8)) { - resp_ = lgraph.Lgraph.ModVertexResponse.getDefaultInstance(); - } - modVertexResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModVertexResponse, lgraph.Lgraph.ModVertexResponse.Builder, lgraph.Lgraph.ModVertexResponseOrBuilder>( - (lgraph.Lgraph.ModVertexResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 8; - onChanged();; - return modVertexResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeResponse, lgraph.Lgraph.ModEdgeResponse.Builder, lgraph.Lgraph.ModEdgeResponseOrBuilder> modEdgeResponseBuilder_; - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public boolean hasModEdgeResponse() { - return respCase_ == 9; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public lgraph.Lgraph.ModEdgeResponse getModEdgeResponse() { - if (modEdgeResponseBuilder_ == null) { - if (respCase_ == 9) { - return (lgraph.Lgraph.ModEdgeResponse) resp_; - } - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } else { - if (respCase_ == 9) { - return modEdgeResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public Builder setModEdgeResponse(lgraph.Lgraph.ModEdgeResponse value) { - if (modEdgeResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - modEdgeResponseBuilder_.setMessage(value); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public Builder setModEdgeResponse( - lgraph.Lgraph.ModEdgeResponse.Builder builderForValue) { - if (modEdgeResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - modEdgeResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public Builder mergeModEdgeResponse(lgraph.Lgraph.ModEdgeResponse value) { - if (modEdgeResponseBuilder_ == null) { - if (respCase_ == 9 && - resp_ != lgraph.Lgraph.ModEdgeResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ModEdgeResponse.newBuilder((lgraph.Lgraph.ModEdgeResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 9) { - modEdgeResponseBuilder_.mergeFrom(value); - } - modEdgeResponseBuilder_.setMessage(value); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public Builder clearModEdgeResponse() { - if (modEdgeResponseBuilder_ == null) { - if (respCase_ == 9) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 9) { - respCase_ = 0; - resp_ = null; - } - modEdgeResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public lgraph.Lgraph.ModEdgeResponse.Builder getModEdgeResponseBuilder() { - return getModEdgeResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - public lgraph.Lgraph.ModEdgeResponseOrBuilder getModEdgeResponseOrBuilder() { - if ((respCase_ == 9) && (modEdgeResponseBuilder_ != null)) { - return modEdgeResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 9) { - return (lgraph.Lgraph.ModEdgeResponse) resp_; - } - return lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModEdgeResponse mod_edge_response = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeResponse, lgraph.Lgraph.ModEdgeResponse.Builder, lgraph.Lgraph.ModEdgeResponseOrBuilder> - getModEdgeResponseFieldBuilder() { - if (modEdgeResponseBuilder_ == null) { - if (!(respCase_ == 9)) { - resp_ = lgraph.Lgraph.ModEdgeResponse.getDefaultInstance(); - } - modEdgeResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModEdgeResponse, lgraph.Lgraph.ModEdgeResponse.Builder, lgraph.Lgraph.ModEdgeResponseOrBuilder>( - (lgraph.Lgraph.ModEdgeResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 9; - onChanged();; - return modEdgeResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphResponse, lgraph.Lgraph.SubGraphResponse.Builder, lgraph.Lgraph.SubGraphResponseOrBuilder> subGraphResponseBuilder_; - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public boolean hasSubGraphResponse() { - return respCase_ == 10; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public lgraph.Lgraph.SubGraphResponse getSubGraphResponse() { - if (subGraphResponseBuilder_ == null) { - if (respCase_ == 10) { - return (lgraph.Lgraph.SubGraphResponse) resp_; - } - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } else { - if (respCase_ == 10) { - return subGraphResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public Builder setSubGraphResponse(lgraph.Lgraph.SubGraphResponse value) { - if (subGraphResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - subGraphResponseBuilder_.setMessage(value); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public Builder setSubGraphResponse( - lgraph.Lgraph.SubGraphResponse.Builder builderForValue) { - if (subGraphResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - subGraphResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public Builder mergeSubGraphResponse(lgraph.Lgraph.SubGraphResponse value) { - if (subGraphResponseBuilder_ == null) { - if (respCase_ == 10 && - resp_ != lgraph.Lgraph.SubGraphResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.SubGraphResponse.newBuilder((lgraph.Lgraph.SubGraphResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 10) { - subGraphResponseBuilder_.mergeFrom(value); - } - subGraphResponseBuilder_.setMessage(value); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public Builder clearSubGraphResponse() { - if (subGraphResponseBuilder_ == null) { - if (respCase_ == 10) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 10) { - respCase_ = 0; - resp_ = null; - } - subGraphResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public lgraph.Lgraph.SubGraphResponse.Builder getSubGraphResponseBuilder() { - return getSubGraphResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - public lgraph.Lgraph.SubGraphResponseOrBuilder getSubGraphResponseOrBuilder() { - if ((respCase_ == 10) && (subGraphResponseBuilder_ != null)) { - return subGraphResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 10) { - return (lgraph.Lgraph.SubGraphResponse) resp_; - } - return lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SubGraphResponse sub_graph_response = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphResponse, lgraph.Lgraph.SubGraphResponse.Builder, lgraph.Lgraph.SubGraphResponseOrBuilder> - getSubGraphResponseFieldBuilder() { - if (subGraphResponseBuilder_ == null) { - if (!(respCase_ == 10)) { - resp_ = lgraph.Lgraph.SubGraphResponse.getDefaultInstance(); - } - subGraphResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SubGraphResponse, lgraph.Lgraph.SubGraphResponse.Builder, lgraph.Lgraph.SubGraphResponseOrBuilder>( - (lgraph.Lgraph.SubGraphResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 10; - onChanged();; - return subGraphResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushResponse, lgraph.Lgraph.FlushResponse.Builder, lgraph.Lgraph.FlushResponseOrBuilder> flushResponseBuilder_; - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public boolean hasFlushResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public lgraph.Lgraph.FlushResponse getFlushResponse() { - if (flushResponseBuilder_ == null) { - if (respCase_ == 11) { - return (lgraph.Lgraph.FlushResponse) resp_; - } - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } else { - if (respCase_ == 11) { - return flushResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public Builder setFlushResponse(lgraph.Lgraph.FlushResponse value) { - if (flushResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - flushResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public Builder setFlushResponse( - lgraph.Lgraph.FlushResponse.Builder builderForValue) { - if (flushResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - flushResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public Builder mergeFlushResponse(lgraph.Lgraph.FlushResponse value) { - if (flushResponseBuilder_ == null) { - if (respCase_ == 11 && - resp_ != lgraph.Lgraph.FlushResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.FlushResponse.newBuilder((lgraph.Lgraph.FlushResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 11) { - flushResponseBuilder_.mergeFrom(value); - } - flushResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public Builder clearFlushResponse() { - if (flushResponseBuilder_ == null) { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - } - flushResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public lgraph.Lgraph.FlushResponse.Builder getFlushResponseBuilder() { - return getFlushResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - public lgraph.Lgraph.FlushResponseOrBuilder getFlushResponseOrBuilder() { - if ((respCase_ == 11) && (flushResponseBuilder_ != null)) { - return flushResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 11) { - return (lgraph.Lgraph.FlushResponse) resp_; - } - return lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.FlushResponse flush_response = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushResponse, lgraph.Lgraph.FlushResponse.Builder, lgraph.Lgraph.FlushResponseOrBuilder> - getFlushResponseFieldBuilder() { - if (flushResponseBuilder_ == null) { - if (!(respCase_ == 11)) { - resp_ = lgraph.Lgraph.FlushResponse.getDefaultInstance(); - } - flushResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.FlushResponse, lgraph.Lgraph.FlushResponse.Builder, lgraph.Lgraph.FlushResponseOrBuilder>( - (lgraph.Lgraph.FlushResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 11; - onChanged();; - return flushResponseBuilder_; - } - @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:lgraph.GraphApiResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GraphApiResponse) - private static final lgraph.Lgraph.GraphApiResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GraphApiResponse(); - } - - public static lgraph.Lgraph.GraphApiResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphApiResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphApiResponse(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 lgraph.Lgraph.GraphApiResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string keys = 1; - */ - java.util.List - getKeysList(); - /** - * repeated string keys = 1; - */ - int getKeysCount(); - /** - * repeated string keys = 1; - */ - java.lang.String getKeys(int index); - /** - * repeated string keys = 1; - */ - com.google.protobuf.ByteString - getKeysBytes(int index); - - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - java.util.List - getValuesList(); - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - lgraph.Lgraph.ProtoFieldData getValues(int index); - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - int getValuesCount(); - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - java.util.List - getValuesOrBuilderList(); - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index); - } - /** - *
-   *--------------------------------
-   * config
-   *--------------------------------
-   * 
- * - * Protobuf type {@code lgraph.ModConfigRequest} - */ - public static final class ModConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModConfigRequest) - ModConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModConfigRequest.newBuilder() to construct. - private ModConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModConfigRequest() { - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModConfigRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - keys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(bs); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - values_.add( - input.readMessage(lgraph.Lgraph.ProtoFieldData.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - keys_ = keys_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModConfigRequest.class, lgraph.Lgraph.ModConfigRequest.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList keys_; - /** - * repeated string keys = 1; - */ - public com.google.protobuf.ProtocolStringList - getKeysList() { - return keys_; - } - /** - * repeated string keys = 1; - */ - public int getKeysCount() { - return keys_.size(); - } - /** - * repeated string keys = 1; - */ - public java.lang.String getKeys(int index) { - return keys_.get(index); - } - /** - * repeated string keys = 1; - */ - public com.google.protobuf.ByteString - getKeysBytes(int index) { - return keys_.getByteString(index); - } - - public static final int VALUES_FIELD_NUMBER = 2; - private java.util.List values_; - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public java.util.List getValuesList() { - return values_; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldData getValues(int index) { - return values_.get(index); - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index) { - return values_.get(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 { - for (int i = 0; i < keys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i)); - } - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(2, values_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < keys_.size(); i++) { - dataSize += computeStringSizeNoTag(keys_.getRaw(i)); - } - size += dataSize; - size += 1 * getKeysList().size(); - } - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, values_.get(i)); - } - 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 lgraph.Lgraph.ModConfigRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ModConfigRequest other = (lgraph.Lgraph.ModConfigRequest) obj; - - boolean result = true; - result = result && getKeysList() - .equals(other.getKeysList()); - result = result && getValuesList() - .equals(other.getValuesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeysCount() > 0) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeysList().hashCode(); - } - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigRequest 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 lgraph.Lgraph.ModConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigRequest 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 lgraph.Lgraph.ModConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigRequest 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(lgraph.Lgraph.ModConfigRequest 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; - } - /** - *
-     *--------------------------------
-     * config
-     *--------------------------------
-     * 
- * - * Protobuf type {@code lgraph.ModConfigRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModConfigRequest) - lgraph.Lgraph.ModConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModConfigRequest.class, lgraph.Lgraph.ModConfigRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ModConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - valuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigRequest build() { - lgraph.Lgraph.ModConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigRequest buildPartial() { - lgraph.Lgraph.ModConfigRequest result = new lgraph.Lgraph.ModConfigRequest(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - keys_ = keys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModConfigRequest) { - return mergeFrom((lgraph.Lgraph.ModConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModConfigRequest other) { - if (other == lgraph.Lgraph.ModConfigRequest.getDefaultInstance()) return this; - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - 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 { - lgraph.Lgraph.ModConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - keys_ = new com.google.protobuf.LazyStringArrayList(keys_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string keys = 1; - */ - public com.google.protobuf.ProtocolStringList - getKeysList() { - return keys_.getUnmodifiableView(); - } - /** - * repeated string keys = 1; - */ - public int getKeysCount() { - return keys_.size(); - } - /** - * repeated string keys = 1; - */ - public java.lang.String getKeys(int index) { - return keys_.get(index); - } - /** - * repeated string keys = 1; - */ - public com.google.protobuf.ByteString - getKeysBytes(int index) { - return keys_.getByteString(index); - } - /** - * repeated string keys = 1; - */ - public Builder setKeys( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string keys = 1; - */ - public Builder addKeys( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - return this; - } - /** - * repeated string keys = 1; - */ - public Builder addAllKeys( - java.lang.Iterable values) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); - onChanged(); - return this; - } - /** - * repeated string keys = 1; - */ - public Builder clearKeys() { - keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string keys = 1; - */ - public Builder addKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - return this; - } - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> valuesBuilder_; - - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldData getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder setValues( - int index, lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder setValues( - int index, lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder addValues(lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder addValues( - int index, lgraph.Lgraph.ProtoFieldData value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder addValues( - lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder addValues( - int index, lgraph.Lgraph.ProtoFieldData.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldData.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldDataOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldData.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - lgraph.Lgraph.ProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public lgraph.Lgraph.ProtoFieldData.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, lgraph.Lgraph.ProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoFieldData values = 2; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoFieldData, lgraph.Lgraph.ProtoFieldData.Builder, lgraph.Lgraph.ProtoFieldDataOrBuilder>( - values_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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:lgraph.ModConfigRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModConfigRequest) - private static final lgraph.Lgraph.ModConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModConfigRequest(); - } - - public static lgraph.Lgraph.ModConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModConfigRequest(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 lgraph.Lgraph.ModConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModConfigResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModConfigResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ModConfigResponse} - */ - public static final class ModConfigResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModConfigResponse) - ModConfigResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModConfigResponse.newBuilder() to construct. - private ModConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModConfigResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModConfigResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ModConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModConfigResponse.class, lgraph.Lgraph.ModConfigResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ModConfigResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ModConfigResponse other = (lgraph.Lgraph.ModConfigResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModConfigResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModConfigResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigResponse 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 lgraph.Lgraph.ModConfigResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigResponse 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 lgraph.Lgraph.ModConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModConfigResponse 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(lgraph.Lgraph.ModConfigResponse 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 lgraph.ModConfigResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModConfigResponse) - lgraph.Lgraph.ModConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModConfigResponse.class, lgraph.Lgraph.ModConfigResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ModConfigResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModConfigResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigResponse build() { - lgraph.Lgraph.ModConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModConfigResponse buildPartial() { - lgraph.Lgraph.ModConfigResponse result = new lgraph.Lgraph.ModConfigResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModConfigResponse) { - return mergeFrom((lgraph.Lgraph.ModConfigResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModConfigResponse other) { - if (other == lgraph.Lgraph.ModConfigResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ModConfigResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModConfigResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ModConfigResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModConfigResponse) - private static final lgraph.Lgraph.ModConfigResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModConfigResponse(); - } - - public static lgraph.Lgraph.ModConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModConfigResponse(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 lgraph.Lgraph.ModConfigResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - boolean hasModConfigRequest(); - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - lgraph.Lgraph.ModConfigRequest getModConfigRequest(); - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - lgraph.Lgraph.ModConfigRequestOrBuilder getModConfigRequestOrBuilder(); - - public lgraph.Lgraph.ConfigRequest.ReqCase getReqCase(); - } - /** - * Protobuf type {@code lgraph.ConfigRequest} - */ - public static final class ConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ConfigRequest) - ConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigRequest.newBuilder() to construct. - private ConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConfigRequest( - 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: { - lgraph.Lgraph.ModConfigRequest.Builder subBuilder = null; - if (reqCase_ == 1) { - subBuilder = ((lgraph.Lgraph.ModConfigRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ModConfigRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModConfigRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 1; - 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 lgraph.Lgraph.internal_static_lgraph_ConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ConfigRequest.class, lgraph.Lgraph.ConfigRequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - MOD_CONFIG_REQUEST(1), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 1: return MOD_CONFIG_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int MOD_CONFIG_REQUEST_FIELD_NUMBER = 1; - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public boolean hasModConfigRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public lgraph.Lgraph.ModConfigRequest getModConfigRequest() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.ModConfigRequest) req_; - } - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public lgraph.Lgraph.ModConfigRequestOrBuilder getModConfigRequestOrBuilder() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.ModConfigRequest) req_; - } - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - - 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 (reqCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.ModConfigRequest) req_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reqCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.ModConfigRequest) req_); - } - 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 lgraph.Lgraph.ConfigRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ConfigRequest other = (lgraph.Lgraph.ConfigRequest) obj; - - boolean result = true; - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 1: - result = result && getModConfigRequest() - .equals(other.getModConfigRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reqCase_) { - case 1: - hash = (37 * hash) + MOD_CONFIG_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getModConfigRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigRequest 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 lgraph.Lgraph.ConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigRequest 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 lgraph.Lgraph.ConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigRequest 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(lgraph.Lgraph.ConfigRequest 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 lgraph.ConfigRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ConfigRequest) - lgraph.Lgraph.ConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ConfigRequest.class, lgraph.Lgraph.ConfigRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ConfigRequest.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(); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ConfigRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ConfigRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ConfigRequest build() { - lgraph.Lgraph.ConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ConfigRequest buildPartial() { - lgraph.Lgraph.ConfigRequest result = new lgraph.Lgraph.ConfigRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (reqCase_ == 1) { - if (modConfigRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = modConfigRequestBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ConfigRequest) { - return mergeFrom((lgraph.Lgraph.ConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ConfigRequest other) { - if (other == lgraph.Lgraph.ConfigRequest.getDefaultInstance()) return this; - switch (other.getReqCase()) { - case MOD_CONFIG_REQUEST: { - mergeModConfigRequest(other.getModConfigRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - 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 { - lgraph.Lgraph.ConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigRequest, lgraph.Lgraph.ModConfigRequest.Builder, lgraph.Lgraph.ModConfigRequestOrBuilder> modConfigRequestBuilder_; - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public boolean hasModConfigRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public lgraph.Lgraph.ModConfigRequest getModConfigRequest() { - if (modConfigRequestBuilder_ == null) { - if (reqCase_ == 1) { - return (lgraph.Lgraph.ModConfigRequest) req_; - } - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } else { - if (reqCase_ == 1) { - return modConfigRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public Builder setModConfigRequest(lgraph.Lgraph.ModConfigRequest value) { - if (modConfigRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - modConfigRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public Builder setModConfigRequest( - lgraph.Lgraph.ModConfigRequest.Builder builderForValue) { - if (modConfigRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - modConfigRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public Builder mergeModConfigRequest(lgraph.Lgraph.ModConfigRequest value) { - if (modConfigRequestBuilder_ == null) { - if (reqCase_ == 1 && - req_ != lgraph.Lgraph.ModConfigRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ModConfigRequest.newBuilder((lgraph.Lgraph.ModConfigRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 1) { - modConfigRequestBuilder_.mergeFrom(value); - } - modConfigRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public Builder clearModConfigRequest() { - if (modConfigRequestBuilder_ == null) { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - } - modConfigRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public lgraph.Lgraph.ModConfigRequest.Builder getModConfigRequestBuilder() { - return getModConfigRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - public lgraph.Lgraph.ModConfigRequestOrBuilder getModConfigRequestOrBuilder() { - if ((reqCase_ == 1) && (modConfigRequestBuilder_ != null)) { - return modConfigRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 1) { - return (lgraph.Lgraph.ModConfigRequest) req_; - } - return lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModConfigRequest mod_config_request = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigRequest, lgraph.Lgraph.ModConfigRequest.Builder, lgraph.Lgraph.ModConfigRequestOrBuilder> - getModConfigRequestFieldBuilder() { - if (modConfigRequestBuilder_ == null) { - if (!(reqCase_ == 1)) { - req_ = lgraph.Lgraph.ModConfigRequest.getDefaultInstance(); - } - modConfigRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigRequest, lgraph.Lgraph.ModConfigRequest.Builder, lgraph.Lgraph.ModConfigRequestOrBuilder>( - (lgraph.Lgraph.ModConfigRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 1; - onChanged();; - return modConfigRequestBuilder_; - } - @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:lgraph.ConfigRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ConfigRequest) - private static final lgraph.Lgraph.ConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ConfigRequest(); - } - - public static lgraph.Lgraph.ConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigRequest(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 lgraph.Lgraph.ConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConfigResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - boolean hasModConfigResponse(); - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - lgraph.Lgraph.ModConfigResponse getModConfigResponse(); - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - lgraph.Lgraph.ModConfigResponseOrBuilder getModConfigResponseOrBuilder(); - - public lgraph.Lgraph.ConfigResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.ConfigResponse} - */ - public static final class ConfigResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ConfigResponse) - ConfigResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigResponse.newBuilder() to construct. - private ConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConfigResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConfigResponse( - 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: { - lgraph.Lgraph.ModConfigResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.ModConfigResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ModConfigResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModConfigResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - 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 lgraph.Lgraph.internal_static_lgraph_ConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ConfigResponse.class, lgraph.Lgraph.ConfigResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - MOD_CONFIG_RESPONSE(1), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return MOD_CONFIG_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int MOD_CONFIG_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public boolean hasModConfigResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public lgraph.Lgraph.ModConfigResponse getModConfigResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.ModConfigResponse) resp_; - } - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public lgraph.Lgraph.ModConfigResponseOrBuilder getModConfigResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.ModConfigResponse) resp_; - } - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - - 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 (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.ModConfigResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.ModConfigResponse) resp_); - } - 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 lgraph.Lgraph.ConfigResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ConfigResponse other = (lgraph.Lgraph.ConfigResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getModConfigResponse() - .equals(other.getModConfigResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + MOD_CONFIG_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getModConfigResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ConfigResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ConfigResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ConfigResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigResponse 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 lgraph.Lgraph.ConfigResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigResponse 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 lgraph.Lgraph.ConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ConfigResponse 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(lgraph.Lgraph.ConfigResponse 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 lgraph.ConfigResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ConfigResponse) - lgraph.Lgraph.ConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ConfigResponse.class, lgraph.Lgraph.ConfigResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ConfigResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ConfigResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ConfigResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ConfigResponse build() { - lgraph.Lgraph.ConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ConfigResponse buildPartial() { - lgraph.Lgraph.ConfigResponse result = new lgraph.Lgraph.ConfigResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (modConfigResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = modConfigResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ConfigResponse) { - return mergeFrom((lgraph.Lgraph.ConfigResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ConfigResponse other) { - if (other == lgraph.Lgraph.ConfigResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case MOD_CONFIG_RESPONSE: { - mergeModConfigResponse(other.getModConfigResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - 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 { - lgraph.Lgraph.ConfigResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ConfigResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigResponse, lgraph.Lgraph.ModConfigResponse.Builder, lgraph.Lgraph.ModConfigResponseOrBuilder> modConfigResponseBuilder_; - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public boolean hasModConfigResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public lgraph.Lgraph.ModConfigResponse getModConfigResponse() { - if (modConfigResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.ModConfigResponse) resp_; - } - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return modConfigResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public Builder setModConfigResponse(lgraph.Lgraph.ModConfigResponse value) { - if (modConfigResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - modConfigResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public Builder setModConfigResponse( - lgraph.Lgraph.ModConfigResponse.Builder builderForValue) { - if (modConfigResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - modConfigResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public Builder mergeModConfigResponse(lgraph.Lgraph.ModConfigResponse value) { - if (modConfigResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.ModConfigResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ModConfigResponse.newBuilder((lgraph.Lgraph.ModConfigResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - modConfigResponseBuilder_.mergeFrom(value); - } - modConfigResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public Builder clearModConfigResponse() { - if (modConfigResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - modConfigResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public lgraph.Lgraph.ModConfigResponse.Builder getModConfigResponseBuilder() { - return getModConfigResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - public lgraph.Lgraph.ModConfigResponseOrBuilder getModConfigResponseOrBuilder() { - if ((respCase_ == 1) && (modConfigResponseBuilder_ != null)) { - return modConfigResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.ModConfigResponse) resp_; - } - return lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModConfigResponse mod_config_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigResponse, lgraph.Lgraph.ModConfigResponse.Builder, lgraph.Lgraph.ModConfigResponseOrBuilder> - getModConfigResponseFieldBuilder() { - if (modConfigResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.ModConfigResponse.getDefaultInstance(); - } - modConfigResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModConfigResponse, lgraph.Lgraph.ModConfigResponse.Builder, lgraph.Lgraph.ModConfigResponseOrBuilder>( - (lgraph.Lgraph.ModConfigResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return modConfigResponseBuilder_; - } - @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:lgraph.ConfigResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ConfigResponse) - private static final lgraph.Lgraph.ConfigResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ConfigResponse(); - } - - public static lgraph.Lgraph.ConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigResponse(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 lgraph.Lgraph.ConfigResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoDBConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoDBConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 db_size = 1; - */ - boolean hasDbSize(); - /** - * required int64 db_size = 1; - */ - long getDbSize(); - - /** - * required bool async = 2; - */ - boolean hasAsync(); - /** - * required bool async = 2; - */ - boolean getAsync(); - - /** - * required string desc = 3; - */ - boolean hasDesc(); - /** - * required string desc = 3; - */ - java.lang.String getDesc(); - /** - * required string desc = 3; - */ - com.google.protobuf.ByteString - getDescBytes(); - } - /** - *
-   *--------------------------------
-   * graph
-   *--------------------------------
-   * 
- * - * Protobuf type {@code lgraph.ProtoDBConfig} - */ - public static final class ProtoDBConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoDBConfig) - ProtoDBConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoDBConfig.newBuilder() to construct. - private ProtoDBConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoDBConfig() { - dbSize_ = 0L; - async_ = false; - desc_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoDBConfig( - 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 8: { - bitField0_ |= 0x00000001; - dbSize_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - async_ = input.readBool(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - desc_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_ProtoDBConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoDBConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoDBConfig.class, lgraph.Lgraph.ProtoDBConfig.Builder.class); - } - - private int bitField0_; - public static final int DB_SIZE_FIELD_NUMBER = 1; - private long dbSize_; - /** - * required int64 db_size = 1; - */ - public boolean hasDbSize() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 db_size = 1; - */ - public long getDbSize() { - return dbSize_; - } - - public static final int ASYNC_FIELD_NUMBER = 2; - private boolean async_; - /** - * required bool async = 2; - */ - public boolean hasAsync() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bool async = 2; - */ - public boolean getAsync() { - return async_; - } - - public static final int DESC_FIELD_NUMBER = 3; - private volatile java.lang.Object desc_; - /** - * required string desc = 3; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string desc = 3; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } - } - /** - * required string desc = 3; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = 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; - - if (!hasDbSize()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAsync()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDesc()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, dbSize_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, async_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, desc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, dbSize_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, async_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, desc_); - } - 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 lgraph.Lgraph.ProtoDBConfig)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoDBConfig other = (lgraph.Lgraph.ProtoDBConfig) obj; - - boolean result = true; - result = result && (hasDbSize() == other.hasDbSize()); - if (hasDbSize()) { - result = result && (getDbSize() - == other.getDbSize()); - } - result = result && (hasAsync() == other.hasAsync()); - if (hasAsync()) { - result = result && (getAsync() - == other.getAsync()); - } - result = result && (hasDesc() == other.hasDesc()); - if (hasDesc()) { - result = result && getDesc() - .equals(other.getDesc()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDbSize()) { - hash = (37 * hash) + DB_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDbSize()); - } - if (hasAsync()) { - hash = (37 * hash) + ASYNC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAsync()); - } - if (hasDesc()) { - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + getDesc().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoDBConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoDBConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoDBConfig 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 lgraph.Lgraph.ProtoDBConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoDBConfig 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 lgraph.Lgraph.ProtoDBConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoDBConfig 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(lgraph.Lgraph.ProtoDBConfig 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; - } - /** - *
-     *--------------------------------
-     * graph
-     *--------------------------------
-     * 
- * - * Protobuf type {@code lgraph.ProtoDBConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoDBConfig) - lgraph.Lgraph.ProtoDBConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoDBConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoDBConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoDBConfig.class, lgraph.Lgraph.ProtoDBConfig.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoDBConfig.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(); - dbSize_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - async_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoDBConfig_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoDBConfig getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoDBConfig.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoDBConfig build() { - lgraph.Lgraph.ProtoDBConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoDBConfig buildPartial() { - lgraph.Lgraph.ProtoDBConfig result = new lgraph.Lgraph.ProtoDBConfig(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.dbSize_ = dbSize_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.async_ = async_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.desc_ = desc_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoDBConfig) { - return mergeFrom((lgraph.Lgraph.ProtoDBConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoDBConfig other) { - if (other == lgraph.Lgraph.ProtoDBConfig.getDefaultInstance()) return this; - if (other.hasDbSize()) { - setDbSize(other.getDbSize()); - } - if (other.hasAsync()) { - setAsync(other.getAsync()); - } - if (other.hasDesc()) { - bitField0_ |= 0x00000004; - desc_ = other.desc_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasDbSize()) { - return false; - } - if (!hasAsync()) { - return false; - } - if (!hasDesc()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ProtoDBConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoDBConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long dbSize_ ; - /** - * required int64 db_size = 1; - */ - public boolean hasDbSize() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 db_size = 1; - */ - public long getDbSize() { - return dbSize_; - } - /** - * required int64 db_size = 1; - */ - public Builder setDbSize(long value) { - bitField0_ |= 0x00000001; - dbSize_ = value; - onChanged(); - return this; - } - /** - * required int64 db_size = 1; - */ - public Builder clearDbSize() { - bitField0_ = (bitField0_ & ~0x00000001); - dbSize_ = 0L; - onChanged(); - return this; - } - - private boolean async_ ; - /** - * required bool async = 2; - */ - public boolean hasAsync() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bool async = 2; - */ - public boolean getAsync() { - return async_; - } - /** - * required bool async = 2; - */ - public Builder setAsync(boolean value) { - bitField0_ |= 0x00000002; - async_ = value; - onChanged(); - return this; - } - /** - * required bool async = 2; - */ - public Builder clearAsync() { - bitField0_ = (bitField0_ & ~0x00000002); - async_ = false; - onChanged(); - return this; - } - - private java.lang.Object desc_ = ""; - /** - * required string desc = 3; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string desc = 3; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string desc = 3; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string desc = 3; - */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - desc_ = value; - onChanged(); - return this; - } - /** - * required string desc = 3; - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000004); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * required string desc = 3; - */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - desc_ = 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:lgraph.ProtoDBConfig) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoDBConfig) - private static final lgraph.Lgraph.ProtoDBConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoDBConfig(); - } - - public static lgraph.Lgraph.ProtoDBConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoDBConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoDBConfig(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 lgraph.Lgraph.ProtoDBConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddGraphRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddGraphRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - boolean hasConfig(); - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - lgraph.Lgraph.ProtoDBConfig getConfig(); - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigOrBuilder(); - } - /** - * Protobuf type {@code lgraph.AddGraphRequest} - */ - public static final class AddGraphRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddGraphRequest) - AddGraphRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddGraphRequest.newBuilder() to construct. - private AddGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddGraphRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddGraphRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - lgraph.Lgraph.ProtoDBConfig.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(lgraph.Lgraph.ProtoDBConfig.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - 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 lgraph.Lgraph.internal_static_lgraph_AddGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddGraphRequest.class, lgraph.Lgraph.AddGraphRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONFIG_FIELD_NUMBER = 2; - private lgraph.Lgraph.ProtoDBConfig config_; - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public lgraph.Lgraph.ProtoDBConfig getConfig() { - return config_ == null ? lgraph.Lgraph.ProtoDBConfig.getDefaultInstance() : config_; - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? lgraph.Lgraph.ProtoDBConfig.getDefaultInstance() : config_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasConfig()) { - memoizedIsInitialized = 0; - return false; - } - if (!getConfig().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); - } - 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 lgraph.Lgraph.AddGraphRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddGraphRequest other = (lgraph.Lgraph.AddGraphRequest) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasConfig() == other.hasConfig()); - if (hasConfig()) { - result = result && getConfig() - .equals(other.getConfig()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddGraphRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphRequest 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 lgraph.Lgraph.AddGraphRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphRequest 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 lgraph.Lgraph.AddGraphRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphRequest 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(lgraph.Lgraph.AddGraphRequest 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 lgraph.AddGraphRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddGraphRequest) - lgraph.Lgraph.AddGraphRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddGraphRequest.class, lgraph.Lgraph.AddGraphRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddGraphRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (configBuilder_ == null) { - config_ = null; - } else { - configBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphRequest build() { - lgraph.Lgraph.AddGraphRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphRequest buildPartial() { - lgraph.Lgraph.AddGraphRequest result = new lgraph.Lgraph.AddGraphRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddGraphRequest) { - return mergeFrom((lgraph.Lgraph.AddGraphRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddGraphRequest other) { - if (other == lgraph.Lgraph.AddGraphRequest.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasConfig()) { - return false; - } - if (!getConfig().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddGraphRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddGraphRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private lgraph.Lgraph.ProtoDBConfig config_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder> configBuilder_; - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public boolean hasConfig() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public lgraph.Lgraph.ProtoDBConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null ? lgraph.Lgraph.ProtoDBConfig.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public Builder setConfig(lgraph.Lgraph.ProtoDBConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public Builder setConfig( - lgraph.Lgraph.ProtoDBConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public Builder mergeConfig(lgraph.Lgraph.ProtoDBConfig value) { - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - config_ != null && - config_ != lgraph.Lgraph.ProtoDBConfig.getDefaultInstance()) { - config_ = - lgraph.Lgraph.ProtoDBConfig.newBuilder(config_).mergeFrom(value).buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - configBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public lgraph.Lgraph.ProtoDBConfig.Builder getConfigBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - public lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? - lgraph.Lgraph.ProtoDBConfig.getDefaultInstance() : config_; - } - } - /** - * required .lgraph.ProtoDBConfig config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - @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:lgraph.AddGraphRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddGraphRequest) - private static final lgraph.Lgraph.AddGraphRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddGraphRequest(); - } - - public static lgraph.Lgraph.AddGraphRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddGraphRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddGraphRequest(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 lgraph.Lgraph.AddGraphRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddGraphResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddGraphResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.AddGraphResponse} - */ - public static final class AddGraphResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddGraphResponse) - AddGraphResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddGraphResponse.newBuilder() to construct. - private AddGraphResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddGraphResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddGraphResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_AddGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddGraphResponse.class, lgraph.Lgraph.AddGraphResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.AddGraphResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddGraphResponse other = (lgraph.Lgraph.AddGraphResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddGraphResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddGraphResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphResponse 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 lgraph.Lgraph.AddGraphResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphResponse 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 lgraph.Lgraph.AddGraphResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddGraphResponse 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(lgraph.Lgraph.AddGraphResponse 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 lgraph.AddGraphResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddGraphResponse) - lgraph.Lgraph.AddGraphResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddGraphResponse.class, lgraph.Lgraph.AddGraphResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddGraphResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddGraphResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphResponse build() { - lgraph.Lgraph.AddGraphResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddGraphResponse buildPartial() { - lgraph.Lgraph.AddGraphResponse result = new lgraph.Lgraph.AddGraphResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddGraphResponse) { - return mergeFrom((lgraph.Lgraph.AddGraphResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddGraphResponse other) { - if (other == lgraph.Lgraph.AddGraphResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.AddGraphResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddGraphResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.AddGraphResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddGraphResponse) - private static final lgraph.Lgraph.AddGraphResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddGraphResponse(); - } - - public static lgraph.Lgraph.AddGraphResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddGraphResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddGraphResponse(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 lgraph.Lgraph.AddGraphResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteGraphRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DeleteGraphRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code lgraph.DeleteGraphRequest} - */ - public static final class DeleteGraphRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DeleteGraphRequest) - DeleteGraphRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteGraphRequest.newBuilder() to construct. - private DeleteGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteGraphRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteGraphRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_DeleteGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DeleteGraphRequest.class, lgraph.Lgraph.DeleteGraphRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = 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; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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 lgraph.Lgraph.DeleteGraphRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DeleteGraphRequest other = (lgraph.Lgraph.DeleteGraphRequest) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DeleteGraphRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphRequest 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 lgraph.Lgraph.DeleteGraphRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphRequest 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 lgraph.Lgraph.DeleteGraphRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphRequest 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(lgraph.Lgraph.DeleteGraphRequest 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 lgraph.DeleteGraphRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DeleteGraphRequest) - lgraph.Lgraph.DeleteGraphRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DeleteGraphRequest.class, lgraph.Lgraph.DeleteGraphRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DeleteGraphRequest.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphRequest build() { - lgraph.Lgraph.DeleteGraphRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphRequest buildPartial() { - lgraph.Lgraph.DeleteGraphRequest result = new lgraph.Lgraph.DeleteGraphRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DeleteGraphRequest) { - return mergeFrom((lgraph.Lgraph.DeleteGraphRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DeleteGraphRequest other) { - if (other == lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DeleteGraphRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DeleteGraphRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = 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:lgraph.DeleteGraphRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DeleteGraphRequest) - private static final lgraph.Lgraph.DeleteGraphRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DeleteGraphRequest(); - } - - public static lgraph.Lgraph.DeleteGraphRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGraphRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGraphRequest(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 lgraph.Lgraph.DeleteGraphRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteGraphResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DeleteGraphResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DeleteGraphResponse} - */ - public static final class DeleteGraphResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DeleteGraphResponse) - DeleteGraphResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteGraphResponse.newBuilder() to construct. - private DeleteGraphResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteGraphResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteGraphResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DeleteGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DeleteGraphResponse.class, lgraph.Lgraph.DeleteGraphResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DeleteGraphResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DeleteGraphResponse other = (lgraph.Lgraph.DeleteGraphResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DeleteGraphResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DeleteGraphResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphResponse 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 lgraph.Lgraph.DeleteGraphResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphResponse 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 lgraph.Lgraph.DeleteGraphResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DeleteGraphResponse 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(lgraph.Lgraph.DeleteGraphResponse 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 lgraph.DeleteGraphResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DeleteGraphResponse) - lgraph.Lgraph.DeleteGraphResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DeleteGraphResponse.class, lgraph.Lgraph.DeleteGraphResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DeleteGraphResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DeleteGraphResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphResponse build() { - lgraph.Lgraph.DeleteGraphResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DeleteGraphResponse buildPartial() { - lgraph.Lgraph.DeleteGraphResponse result = new lgraph.Lgraph.DeleteGraphResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DeleteGraphResponse) { - return mergeFrom((lgraph.Lgraph.DeleteGraphResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DeleteGraphResponse other) { - if (other == lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DeleteGraphResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DeleteGraphResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DeleteGraphResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DeleteGraphResponse) - private static final lgraph.Lgraph.DeleteGraphResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DeleteGraphResponse(); - } - - public static lgraph.Lgraph.DeleteGraphResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGraphResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGraphResponse(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 lgraph.Lgraph.DeleteGraphResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListGraphsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListGraphsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListGraphsRequest} - */ - public static final class ListGraphsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListGraphsRequest) - ListGraphsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGraphsRequest.newBuilder() to construct. - private ListGraphsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGraphsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListGraphsRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListGraphsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListGraphsRequest.class, lgraph.Lgraph.ListGraphsRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListGraphsRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListGraphsRequest other = (lgraph.Lgraph.ListGraphsRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListGraphsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsRequest 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 lgraph.Lgraph.ListGraphsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsRequest 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 lgraph.Lgraph.ListGraphsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsRequest 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(lgraph.Lgraph.ListGraphsRequest 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 lgraph.ListGraphsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListGraphsRequest) - lgraph.Lgraph.ListGraphsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListGraphsRequest.class, lgraph.Lgraph.ListGraphsRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListGraphsRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsRequest build() { - lgraph.Lgraph.ListGraphsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsRequest buildPartial() { - lgraph.Lgraph.ListGraphsRequest result = new lgraph.Lgraph.ListGraphsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListGraphsRequest) { - return mergeFrom((lgraph.Lgraph.ListGraphsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListGraphsRequest other) { - if (other == lgraph.Lgraph.ListGraphsRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListGraphsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListGraphsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListGraphsRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListGraphsRequest) - private static final lgraph.Lgraph.ListGraphsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListGraphsRequest(); - } - - public static lgraph.Lgraph.ListGraphsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGraphsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGraphsRequest(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 lgraph.Lgraph.ListGraphsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListGraphsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListGraphsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string names = 1; - */ - java.util.List - getNamesList(); - /** - * repeated string names = 1; - */ - int getNamesCount(); - /** - * repeated string names = 1; - */ - java.lang.String getNames(int index); - /** - * repeated string names = 1; - */ - com.google.protobuf.ByteString - getNamesBytes(int index); - - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - java.util.List - getConfigsList(); - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - lgraph.Lgraph.ProtoDBConfig getConfigs(int index); - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - int getConfigsCount(); - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - java.util.List - getConfigsOrBuilderList(); - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigsOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.ListGraphsResponse} - */ - public static final class ListGraphsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListGraphsResponse) - ListGraphsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListGraphsResponse.newBuilder() to construct. - private ListGraphsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGraphsResponse() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - configs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListGraphsResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - names_.add(bs); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - configs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - configs_.add( - input.readMessage(lgraph.Lgraph.ProtoDBConfig.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - names_ = names_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - configs_ = java.util.Collections.unmodifiableList(configs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListGraphsResponse.class, lgraph.Lgraph.ListGraphsResponse.Builder.class); - } - - public static final int NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList names_; - /** - * repeated string names = 1; - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - return names_; - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - - public static final int CONFIGS_FIELD_NUMBER = 2; - private java.util.List configs_; - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public java.util.List getConfigsList() { - return configs_; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public java.util.List - getConfigsOrBuilderList() { - return configs_; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public int getConfigsCount() { - return configs_.size(); - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfig getConfigs(int index) { - return configs_.get(index); - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigsOrBuilder( - int index) { - return configs_.get(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; - - for (int i = 0; i < getConfigsCount(); i++) { - if (!getConfigs(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < names_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, names_.getRaw(i)); - } - for (int i = 0; i < configs_.size(); i++) { - output.writeMessage(2, configs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += computeStringSizeNoTag(names_.getRaw(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); - } - for (int i = 0; i < configs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, configs_.get(i)); - } - 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 lgraph.Lgraph.ListGraphsResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListGraphsResponse other = (lgraph.Lgraph.ListGraphsResponse) obj; - - boolean result = true; - result = result && getNamesList() - .equals(other.getNamesList()); - result = result && getConfigsList() - .equals(other.getConfigsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); - } - if (getConfigsCount() > 0) { - hash = (37 * hash) + CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getConfigsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListGraphsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListGraphsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsResponse 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 lgraph.Lgraph.ListGraphsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsResponse 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 lgraph.Lgraph.ListGraphsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListGraphsResponse 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(lgraph.Lgraph.ListGraphsResponse 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 lgraph.ListGraphsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListGraphsResponse) - lgraph.Lgraph.ListGraphsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListGraphsResponse.class, lgraph.Lgraph.ListGraphsResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListGraphsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (configsBuilder_ == null) { - configs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - configsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListGraphsResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsResponse build() { - lgraph.Lgraph.ListGraphsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListGraphsResponse buildPartial() { - lgraph.Lgraph.ListGraphsResponse result = new lgraph.Lgraph.ListGraphsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = names_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.names_ = names_; - if (configsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - configs_ = java.util.Collections.unmodifiableList(configs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.configs_ = configs_; - } else { - result.configs_ = configsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListGraphsResponse) { - return mergeFrom((lgraph.Lgraph.ListGraphsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListGraphsResponse other) { - if (other == lgraph.Lgraph.ListGraphsResponse.getDefaultInstance()) return this; - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); - } - if (configsBuilder_ == null) { - if (!other.configs_.isEmpty()) { - if (configs_.isEmpty()) { - configs_ = other.configs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureConfigsIsMutable(); - configs_.addAll(other.configs_); - } - onChanged(); - } - } else { - if (!other.configs_.isEmpty()) { - if (configsBuilder_.isEmpty()) { - configsBuilder_.dispose(); - configsBuilder_ = null; - configs_ = other.configs_; - bitField0_ = (bitField0_ & ~0x00000002); - configsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigsFieldBuilder() : null; - } else { - configsBuilder_.addAllMessages(other.configs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getConfigsCount(); i++) { - if (!getConfigs(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ListGraphsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListGraphsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - return names_.getUnmodifiableView(); - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - /** - * repeated string names = 1; - */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addAllNames( - java.lang.Iterable values) { - ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, names_); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder clearNames() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - - private java.util.List configs_ = - java.util.Collections.emptyList(); - private void ensureConfigsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - configs_ = new java.util.ArrayList(configs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder> configsBuilder_; - - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public java.util.List getConfigsList() { - if (configsBuilder_ == null) { - return java.util.Collections.unmodifiableList(configs_); - } else { - return configsBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public int getConfigsCount() { - if (configsBuilder_ == null) { - return configs_.size(); - } else { - return configsBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfig getConfigs(int index) { - if (configsBuilder_ == null) { - return configs_.get(index); - } else { - return configsBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder setConfigs( - int index, lgraph.Lgraph.ProtoDBConfig value) { - if (configsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigsIsMutable(); - configs_.set(index, value); - onChanged(); - } else { - configsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder setConfigs( - int index, lgraph.Lgraph.ProtoDBConfig.Builder builderForValue) { - if (configsBuilder_ == null) { - ensureConfigsIsMutable(); - configs_.set(index, builderForValue.build()); - onChanged(); - } else { - configsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder addConfigs(lgraph.Lgraph.ProtoDBConfig value) { - if (configsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigsIsMutable(); - configs_.add(value); - onChanged(); - } else { - configsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder addConfigs( - int index, lgraph.Lgraph.ProtoDBConfig value) { - if (configsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigsIsMutable(); - configs_.add(index, value); - onChanged(); - } else { - configsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder addConfigs( - lgraph.Lgraph.ProtoDBConfig.Builder builderForValue) { - if (configsBuilder_ == null) { - ensureConfigsIsMutable(); - configs_.add(builderForValue.build()); - onChanged(); - } else { - configsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder addConfigs( - int index, lgraph.Lgraph.ProtoDBConfig.Builder builderForValue) { - if (configsBuilder_ == null) { - ensureConfigsIsMutable(); - configs_.add(index, builderForValue.build()); - onChanged(); - } else { - configsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder addAllConfigs( - java.lang.Iterable values) { - if (configsBuilder_ == null) { - ensureConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configs_); - onChanged(); - } else { - configsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder clearConfigs() { - if (configsBuilder_ == null) { - configs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - configsBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public Builder removeConfigs(int index) { - if (configsBuilder_ == null) { - ensureConfigsIsMutable(); - configs_.remove(index); - onChanged(); - } else { - configsBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfig.Builder getConfigsBuilder( - int index) { - return getConfigsFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfigOrBuilder getConfigsOrBuilder( - int index) { - if (configsBuilder_ == null) { - return configs_.get(index); } else { - return configsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public java.util.List - getConfigsOrBuilderList() { - if (configsBuilder_ != null) { - return configsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(configs_); - } - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfig.Builder addConfigsBuilder() { - return getConfigsFieldBuilder().addBuilder( - lgraph.Lgraph.ProtoDBConfig.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public lgraph.Lgraph.ProtoDBConfig.Builder addConfigsBuilder( - int index) { - return getConfigsFieldBuilder().addBuilder( - index, lgraph.Lgraph.ProtoDBConfig.getDefaultInstance()); - } - /** - * repeated .lgraph.ProtoDBConfig configs = 2; - */ - public java.util.List - getConfigsBuilderList() { - return getConfigsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder> - getConfigsFieldBuilder() { - if (configsBuilder_ == null) { - configsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ProtoDBConfig, lgraph.Lgraph.ProtoDBConfig.Builder, lgraph.Lgraph.ProtoDBConfigOrBuilder>( - configs_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - configs_ = null; - } - return configsBuilder_; - } - @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:lgraph.ListGraphsResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListGraphsResponse) - private static final lgraph.Lgraph.ListGraphsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListGraphsResponse(); - } - - public static lgraph.Lgraph.ListGraphsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGraphsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGraphsResponse(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 lgraph.Lgraph.ListGraphsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GraphRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GraphRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - boolean hasAddGraphRequest(); - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - lgraph.Lgraph.AddGraphRequest getAddGraphRequest(); - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - lgraph.Lgraph.AddGraphRequestOrBuilder getAddGraphRequestOrBuilder(); - - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - boolean hasDeleteGraphRequest(); - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - lgraph.Lgraph.DeleteGraphRequest getDeleteGraphRequest(); - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - lgraph.Lgraph.DeleteGraphRequestOrBuilder getDeleteGraphRequestOrBuilder(); - - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - boolean hasListGraphsRequest(); - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - lgraph.Lgraph.ListGraphsRequest getListGraphsRequest(); - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - lgraph.Lgraph.ListGraphsRequestOrBuilder getListGraphsRequestOrBuilder(); - - public lgraph.Lgraph.GraphRequest.ReqCase getReqCase(); - } - /** - * Protobuf type {@code lgraph.GraphRequest} - */ - public static final class GraphRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GraphRequest) - GraphRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GraphRequest.newBuilder() to construct. - private GraphRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphRequest( - 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: { - lgraph.Lgraph.AddGraphRequest.Builder subBuilder = null; - if (reqCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AddGraphRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddGraphRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddGraphRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.DeleteGraphRequest.Builder subBuilder = null; - if (reqCase_ == 2) { - subBuilder = ((lgraph.Lgraph.DeleteGraphRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DeleteGraphRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DeleteGraphRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.ListGraphsRequest.Builder subBuilder = null; - if (reqCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ListGraphsRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ListGraphsRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListGraphsRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 3; - 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 lgraph.Lgraph.internal_static_lgraph_GraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphRequest.class, lgraph.Lgraph.GraphRequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - ADD_GRAPH_REQUEST(1), - DELETE_GRAPH_REQUEST(2), - LIST_GRAPHS_REQUEST(3), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 1: return ADD_GRAPH_REQUEST; - case 2: return DELETE_GRAPH_REQUEST; - case 3: return LIST_GRAPHS_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int ADD_GRAPH_REQUEST_FIELD_NUMBER = 1; - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public boolean hasAddGraphRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public lgraph.Lgraph.AddGraphRequest getAddGraphRequest() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddGraphRequest) req_; - } - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public lgraph.Lgraph.AddGraphRequestOrBuilder getAddGraphRequestOrBuilder() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddGraphRequest) req_; - } - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - - public static final int DELETE_GRAPH_REQUEST_FIELD_NUMBER = 2; - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public boolean hasDeleteGraphRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public lgraph.Lgraph.DeleteGraphRequest getDeleteGraphRequest() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphRequest) req_; - } - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public lgraph.Lgraph.DeleteGraphRequestOrBuilder getDeleteGraphRequestOrBuilder() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphRequest) req_; - } - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - - public static final int LIST_GRAPHS_REQUEST_FIELD_NUMBER = 3; - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public boolean hasListGraphsRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public lgraph.Lgraph.ListGraphsRequest getListGraphsRequest() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ListGraphsRequest) req_; - } - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public lgraph.Lgraph.ListGraphsRequestOrBuilder getListGraphsRequestOrBuilder() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ListGraphsRequest) req_; - } - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasAddGraphRequest()) { - if (!getAddGraphRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDeleteGraphRequest()) { - if (!getDeleteGraphRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reqCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AddGraphRequest) req_); - } - if (reqCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.DeleteGraphRequest) req_); - } - if (reqCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ListGraphsRequest) req_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reqCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AddGraphRequest) req_); - } - if (reqCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.DeleteGraphRequest) req_); - } - if (reqCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ListGraphsRequest) req_); - } - 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 lgraph.Lgraph.GraphRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GraphRequest other = (lgraph.Lgraph.GraphRequest) obj; - - boolean result = true; - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 1: - result = result && getAddGraphRequest() - .equals(other.getAddGraphRequest()); - break; - case 2: - result = result && getDeleteGraphRequest() - .equals(other.getDeleteGraphRequest()); - break; - case 3: - result = result && getListGraphsRequest() - .equals(other.getListGraphsRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reqCase_) { - case 1: - hash = (37 * hash) + ADD_GRAPH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddGraphRequest().hashCode(); - break; - case 2: - hash = (37 * hash) + DELETE_GRAPH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDeleteGraphRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + LIST_GRAPHS_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListGraphsRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GraphRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphRequest 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 lgraph.Lgraph.GraphRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphRequest 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 lgraph.Lgraph.GraphRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphRequest 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(lgraph.Lgraph.GraphRequest 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 lgraph.GraphRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GraphRequest) - lgraph.Lgraph.GraphRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphRequest.class, lgraph.Lgraph.GraphRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GraphRequest.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(); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GraphRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GraphRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GraphRequest build() { - lgraph.Lgraph.GraphRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GraphRequest buildPartial() { - lgraph.Lgraph.GraphRequest result = new lgraph.Lgraph.GraphRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (reqCase_ == 1) { - if (addGraphRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addGraphRequestBuilder_.build(); - } - } - if (reqCase_ == 2) { - if (deleteGraphRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = deleteGraphRequestBuilder_.build(); - } - } - if (reqCase_ == 3) { - if (listGraphsRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listGraphsRequestBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GraphRequest) { - return mergeFrom((lgraph.Lgraph.GraphRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GraphRequest other) { - if (other == lgraph.Lgraph.GraphRequest.getDefaultInstance()) return this; - switch (other.getReqCase()) { - case ADD_GRAPH_REQUEST: { - mergeAddGraphRequest(other.getAddGraphRequest()); - break; - } - case DELETE_GRAPH_REQUEST: { - mergeDeleteGraphRequest(other.getDeleteGraphRequest()); - break; - } - case LIST_GRAPHS_REQUEST: { - mergeListGraphsRequest(other.getListGraphsRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasAddGraphRequest()) { - if (!getAddGraphRequest().isInitialized()) { - return false; - } - } - if (hasDeleteGraphRequest()) { - if (!getDeleteGraphRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GraphRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GraphRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphRequest, lgraph.Lgraph.AddGraphRequest.Builder, lgraph.Lgraph.AddGraphRequestOrBuilder> addGraphRequestBuilder_; - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public boolean hasAddGraphRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public lgraph.Lgraph.AddGraphRequest getAddGraphRequest() { - if (addGraphRequestBuilder_ == null) { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddGraphRequest) req_; - } - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } else { - if (reqCase_ == 1) { - return addGraphRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public Builder setAddGraphRequest(lgraph.Lgraph.AddGraphRequest value) { - if (addGraphRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public Builder setAddGraphRequest( - lgraph.Lgraph.AddGraphRequest.Builder builderForValue) { - if (addGraphRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addGraphRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public Builder mergeAddGraphRequest(lgraph.Lgraph.AddGraphRequest value) { - if (addGraphRequestBuilder_ == null) { - if (reqCase_ == 1 && - req_ != lgraph.Lgraph.AddGraphRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddGraphRequest.newBuilder((lgraph.Lgraph.AddGraphRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 1) { - addGraphRequestBuilder_.mergeFrom(value); - } - addGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public Builder clearAddGraphRequest() { - if (addGraphRequestBuilder_ == null) { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - } - addGraphRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public lgraph.Lgraph.AddGraphRequest.Builder getAddGraphRequestBuilder() { - return getAddGraphRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - public lgraph.Lgraph.AddGraphRequestOrBuilder getAddGraphRequestOrBuilder() { - if ((reqCase_ == 1) && (addGraphRequestBuilder_ != null)) { - return addGraphRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AddGraphRequest) req_; - } - return lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddGraphRequest add_graph_request = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphRequest, lgraph.Lgraph.AddGraphRequest.Builder, lgraph.Lgraph.AddGraphRequestOrBuilder> - getAddGraphRequestFieldBuilder() { - if (addGraphRequestBuilder_ == null) { - if (!(reqCase_ == 1)) { - req_ = lgraph.Lgraph.AddGraphRequest.getDefaultInstance(); - } - addGraphRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphRequest, lgraph.Lgraph.AddGraphRequest.Builder, lgraph.Lgraph.AddGraphRequestOrBuilder>( - (lgraph.Lgraph.AddGraphRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 1; - onChanged();; - return addGraphRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphRequest, lgraph.Lgraph.DeleteGraphRequest.Builder, lgraph.Lgraph.DeleteGraphRequestOrBuilder> deleteGraphRequestBuilder_; - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public boolean hasDeleteGraphRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public lgraph.Lgraph.DeleteGraphRequest getDeleteGraphRequest() { - if (deleteGraphRequestBuilder_ == null) { - if (reqCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphRequest) req_; - } - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } else { - if (reqCase_ == 2) { - return deleteGraphRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public Builder setDeleteGraphRequest(lgraph.Lgraph.DeleteGraphRequest value) { - if (deleteGraphRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - deleteGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public Builder setDeleteGraphRequest( - lgraph.Lgraph.DeleteGraphRequest.Builder builderForValue) { - if (deleteGraphRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - deleteGraphRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public Builder mergeDeleteGraphRequest(lgraph.Lgraph.DeleteGraphRequest value) { - if (deleteGraphRequestBuilder_ == null) { - if (reqCase_ == 2 && - req_ != lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DeleteGraphRequest.newBuilder((lgraph.Lgraph.DeleteGraphRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 2) { - deleteGraphRequestBuilder_.mergeFrom(value); - } - deleteGraphRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public Builder clearDeleteGraphRequest() { - if (deleteGraphRequestBuilder_ == null) { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - } - deleteGraphRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public lgraph.Lgraph.DeleteGraphRequest.Builder getDeleteGraphRequestBuilder() { - return getDeleteGraphRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - public lgraph.Lgraph.DeleteGraphRequestOrBuilder getDeleteGraphRequestOrBuilder() { - if ((reqCase_ == 2) && (deleteGraphRequestBuilder_ != null)) { - return deleteGraphRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphRequest) req_; - } - return lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DeleteGraphRequest delete_graph_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphRequest, lgraph.Lgraph.DeleteGraphRequest.Builder, lgraph.Lgraph.DeleteGraphRequestOrBuilder> - getDeleteGraphRequestFieldBuilder() { - if (deleteGraphRequestBuilder_ == null) { - if (!(reqCase_ == 2)) { - req_ = lgraph.Lgraph.DeleteGraphRequest.getDefaultInstance(); - } - deleteGraphRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphRequest, lgraph.Lgraph.DeleteGraphRequest.Builder, lgraph.Lgraph.DeleteGraphRequestOrBuilder>( - (lgraph.Lgraph.DeleteGraphRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 2; - onChanged();; - return deleteGraphRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsRequest, lgraph.Lgraph.ListGraphsRequest.Builder, lgraph.Lgraph.ListGraphsRequestOrBuilder> listGraphsRequestBuilder_; - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public boolean hasListGraphsRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public lgraph.Lgraph.ListGraphsRequest getListGraphsRequest() { - if (listGraphsRequestBuilder_ == null) { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ListGraphsRequest) req_; - } - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } else { - if (reqCase_ == 3) { - return listGraphsRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public Builder setListGraphsRequest(lgraph.Lgraph.ListGraphsRequest value) { - if (listGraphsRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listGraphsRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public Builder setListGraphsRequest( - lgraph.Lgraph.ListGraphsRequest.Builder builderForValue) { - if (listGraphsRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listGraphsRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public Builder mergeListGraphsRequest(lgraph.Lgraph.ListGraphsRequest value) { - if (listGraphsRequestBuilder_ == null) { - if (reqCase_ == 3 && - req_ != lgraph.Lgraph.ListGraphsRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ListGraphsRequest.newBuilder((lgraph.Lgraph.ListGraphsRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 3) { - listGraphsRequestBuilder_.mergeFrom(value); - } - listGraphsRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public Builder clearListGraphsRequest() { - if (listGraphsRequestBuilder_ == null) { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - } - listGraphsRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public lgraph.Lgraph.ListGraphsRequest.Builder getListGraphsRequestBuilder() { - return getListGraphsRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - public lgraph.Lgraph.ListGraphsRequestOrBuilder getListGraphsRequestOrBuilder() { - if ((reqCase_ == 3) && (listGraphsRequestBuilder_ != null)) { - return listGraphsRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ListGraphsRequest) req_; - } - return lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListGraphsRequest list_graphs_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsRequest, lgraph.Lgraph.ListGraphsRequest.Builder, lgraph.Lgraph.ListGraphsRequestOrBuilder> - getListGraphsRequestFieldBuilder() { - if (listGraphsRequestBuilder_ == null) { - if (!(reqCase_ == 3)) { - req_ = lgraph.Lgraph.ListGraphsRequest.getDefaultInstance(); - } - listGraphsRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsRequest, lgraph.Lgraph.ListGraphsRequest.Builder, lgraph.Lgraph.ListGraphsRequestOrBuilder>( - (lgraph.Lgraph.ListGraphsRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 3; - onChanged();; - return listGraphsRequestBuilder_; - } - @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:lgraph.GraphRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GraphRequest) - private static final lgraph.Lgraph.GraphRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GraphRequest(); - } - - public static lgraph.Lgraph.GraphRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphRequest(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 lgraph.Lgraph.GraphRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GraphResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GraphResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - boolean hasAddGraphResponse(); - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - lgraph.Lgraph.AddGraphResponse getAddGraphResponse(); - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - lgraph.Lgraph.AddGraphResponseOrBuilder getAddGraphResponseOrBuilder(); - - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - boolean hasDeleteGraphResponse(); - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - lgraph.Lgraph.DeleteGraphResponse getDeleteGraphResponse(); - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - lgraph.Lgraph.DeleteGraphResponseOrBuilder getDeleteGraphResponseOrBuilder(); - - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - boolean hasListGraphsResponse(); - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - lgraph.Lgraph.ListGraphsResponse getListGraphsResponse(); - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - lgraph.Lgraph.ListGraphsResponseOrBuilder getListGraphsResponseOrBuilder(); - - public lgraph.Lgraph.GraphResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.GraphResponse} - */ - public static final class GraphResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GraphResponse) - GraphResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GraphResponse.newBuilder() to construct. - private GraphResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GraphResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GraphResponse( - 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: { - lgraph.Lgraph.AddGraphResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AddGraphResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddGraphResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddGraphResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.DeleteGraphResponse.Builder subBuilder = null; - if (respCase_ == 2) { - subBuilder = ((lgraph.Lgraph.DeleteGraphResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DeleteGraphResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DeleteGraphResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.ListGraphsResponse.Builder subBuilder = null; - if (respCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ListGraphsResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ListGraphsResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListGraphsResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 3; - 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 lgraph.Lgraph.internal_static_lgraph_GraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphResponse.class, lgraph.Lgraph.GraphResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - ADD_GRAPH_RESPONSE(1), - DELETE_GRAPH_RESPONSE(2), - LIST_GRAPHS_RESPONSE(3), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return ADD_GRAPH_RESPONSE; - case 2: return DELETE_GRAPH_RESPONSE; - case 3: return LIST_GRAPHS_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int ADD_GRAPH_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public boolean hasAddGraphResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public lgraph.Lgraph.AddGraphResponse getAddGraphResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddGraphResponse) resp_; - } - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public lgraph.Lgraph.AddGraphResponseOrBuilder getAddGraphResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddGraphResponse) resp_; - } - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - - public static final int DELETE_GRAPH_RESPONSE_FIELD_NUMBER = 2; - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public boolean hasDeleteGraphResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public lgraph.Lgraph.DeleteGraphResponse getDeleteGraphResponse() { - if (respCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphResponse) resp_; - } - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public lgraph.Lgraph.DeleteGraphResponseOrBuilder getDeleteGraphResponseOrBuilder() { - if (respCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphResponse) resp_; - } - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - - public static final int LIST_GRAPHS_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public boolean hasListGraphsResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public lgraph.Lgraph.ListGraphsResponse getListGraphsResponse() { - if (respCase_ == 3) { - return (lgraph.Lgraph.ListGraphsResponse) resp_; - } - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public lgraph.Lgraph.ListGraphsResponseOrBuilder getListGraphsResponseOrBuilder() { - if (respCase_ == 3) { - return (lgraph.Lgraph.ListGraphsResponse) resp_; - } - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasListGraphsResponse()) { - if (!getListGraphsResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AddGraphResponse) resp_); - } - if (respCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.DeleteGraphResponse) resp_); - } - if (respCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ListGraphsResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AddGraphResponse) resp_); - } - if (respCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.DeleteGraphResponse) resp_); - } - if (respCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ListGraphsResponse) resp_); - } - 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 lgraph.Lgraph.GraphResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GraphResponse other = (lgraph.Lgraph.GraphResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getAddGraphResponse() - .equals(other.getAddGraphResponse()); - break; - case 2: - result = result && getDeleteGraphResponse() - .equals(other.getDeleteGraphResponse()); - break; - case 3: - result = result && getListGraphsResponse() - .equals(other.getListGraphsResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + ADD_GRAPH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddGraphResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + DELETE_GRAPH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDeleteGraphResponse().hashCode(); - break; - case 3: - hash = (37 * hash) + LIST_GRAPHS_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListGraphsResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GraphResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GraphResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GraphResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphResponse 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 lgraph.Lgraph.GraphResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphResponse 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 lgraph.Lgraph.GraphResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GraphResponse 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(lgraph.Lgraph.GraphResponse 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 lgraph.GraphResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GraphResponse) - lgraph.Lgraph.GraphResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GraphResponse.class, lgraph.Lgraph.GraphResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GraphResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GraphResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GraphResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GraphResponse build() { - lgraph.Lgraph.GraphResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GraphResponse buildPartial() { - lgraph.Lgraph.GraphResponse result = new lgraph.Lgraph.GraphResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (addGraphResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addGraphResponseBuilder_.build(); - } - } - if (respCase_ == 2) { - if (deleteGraphResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = deleteGraphResponseBuilder_.build(); - } - } - if (respCase_ == 3) { - if (listGraphsResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listGraphsResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GraphResponse) { - return mergeFrom((lgraph.Lgraph.GraphResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GraphResponse other) { - if (other == lgraph.Lgraph.GraphResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case ADD_GRAPH_RESPONSE: { - mergeAddGraphResponse(other.getAddGraphResponse()); - break; - } - case DELETE_GRAPH_RESPONSE: { - mergeDeleteGraphResponse(other.getDeleteGraphResponse()); - break; - } - case LIST_GRAPHS_RESPONSE: { - mergeListGraphsResponse(other.getListGraphsResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasListGraphsResponse()) { - if (!getListGraphsResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GraphResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GraphResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphResponse, lgraph.Lgraph.AddGraphResponse.Builder, lgraph.Lgraph.AddGraphResponseOrBuilder> addGraphResponseBuilder_; - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public boolean hasAddGraphResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public lgraph.Lgraph.AddGraphResponse getAddGraphResponse() { - if (addGraphResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddGraphResponse) resp_; - } - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return addGraphResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public Builder setAddGraphResponse(lgraph.Lgraph.AddGraphResponse value) { - if (addGraphResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addGraphResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public Builder setAddGraphResponse( - lgraph.Lgraph.AddGraphResponse.Builder builderForValue) { - if (addGraphResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addGraphResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public Builder mergeAddGraphResponse(lgraph.Lgraph.AddGraphResponse value) { - if (addGraphResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.AddGraphResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddGraphResponse.newBuilder((lgraph.Lgraph.AddGraphResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - addGraphResponseBuilder_.mergeFrom(value); - } - addGraphResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public Builder clearAddGraphResponse() { - if (addGraphResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - addGraphResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public lgraph.Lgraph.AddGraphResponse.Builder getAddGraphResponseBuilder() { - return getAddGraphResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - public lgraph.Lgraph.AddGraphResponseOrBuilder getAddGraphResponseOrBuilder() { - if ((respCase_ == 1) && (addGraphResponseBuilder_ != null)) { - return addGraphResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.AddGraphResponse) resp_; - } - return lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddGraphResponse add_graph_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphResponse, lgraph.Lgraph.AddGraphResponse.Builder, lgraph.Lgraph.AddGraphResponseOrBuilder> - getAddGraphResponseFieldBuilder() { - if (addGraphResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.AddGraphResponse.getDefaultInstance(); - } - addGraphResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddGraphResponse, lgraph.Lgraph.AddGraphResponse.Builder, lgraph.Lgraph.AddGraphResponseOrBuilder>( - (lgraph.Lgraph.AddGraphResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return addGraphResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphResponse, lgraph.Lgraph.DeleteGraphResponse.Builder, lgraph.Lgraph.DeleteGraphResponseOrBuilder> deleteGraphResponseBuilder_; - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public boolean hasDeleteGraphResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public lgraph.Lgraph.DeleteGraphResponse getDeleteGraphResponse() { - if (deleteGraphResponseBuilder_ == null) { - if (respCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphResponse) resp_; - } - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } else { - if (respCase_ == 2) { - return deleteGraphResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public Builder setDeleteGraphResponse(lgraph.Lgraph.DeleteGraphResponse value) { - if (deleteGraphResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - deleteGraphResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public Builder setDeleteGraphResponse( - lgraph.Lgraph.DeleteGraphResponse.Builder builderForValue) { - if (deleteGraphResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - deleteGraphResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public Builder mergeDeleteGraphResponse(lgraph.Lgraph.DeleteGraphResponse value) { - if (deleteGraphResponseBuilder_ == null) { - if (respCase_ == 2 && - resp_ != lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DeleteGraphResponse.newBuilder((lgraph.Lgraph.DeleteGraphResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 2) { - deleteGraphResponseBuilder_.mergeFrom(value); - } - deleteGraphResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public Builder clearDeleteGraphResponse() { - if (deleteGraphResponseBuilder_ == null) { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - } - deleteGraphResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public lgraph.Lgraph.DeleteGraphResponse.Builder getDeleteGraphResponseBuilder() { - return getDeleteGraphResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - public lgraph.Lgraph.DeleteGraphResponseOrBuilder getDeleteGraphResponseOrBuilder() { - if ((respCase_ == 2) && (deleteGraphResponseBuilder_ != null)) { - return deleteGraphResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 2) { - return (lgraph.Lgraph.DeleteGraphResponse) resp_; - } - return lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DeleteGraphResponse delete_graph_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphResponse, lgraph.Lgraph.DeleteGraphResponse.Builder, lgraph.Lgraph.DeleteGraphResponseOrBuilder> - getDeleteGraphResponseFieldBuilder() { - if (deleteGraphResponseBuilder_ == null) { - if (!(respCase_ == 2)) { - resp_ = lgraph.Lgraph.DeleteGraphResponse.getDefaultInstance(); - } - deleteGraphResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DeleteGraphResponse, lgraph.Lgraph.DeleteGraphResponse.Builder, lgraph.Lgraph.DeleteGraphResponseOrBuilder>( - (lgraph.Lgraph.DeleteGraphResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 2; - onChanged();; - return deleteGraphResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsResponse, lgraph.Lgraph.ListGraphsResponse.Builder, lgraph.Lgraph.ListGraphsResponseOrBuilder> listGraphsResponseBuilder_; - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public boolean hasListGraphsResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public lgraph.Lgraph.ListGraphsResponse getListGraphsResponse() { - if (listGraphsResponseBuilder_ == null) { - if (respCase_ == 3) { - return (lgraph.Lgraph.ListGraphsResponse) resp_; - } - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } else { - if (respCase_ == 3) { - return listGraphsResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public Builder setListGraphsResponse(lgraph.Lgraph.ListGraphsResponse value) { - if (listGraphsResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listGraphsResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public Builder setListGraphsResponse( - lgraph.Lgraph.ListGraphsResponse.Builder builderForValue) { - if (listGraphsResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listGraphsResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public Builder mergeListGraphsResponse(lgraph.Lgraph.ListGraphsResponse value) { - if (listGraphsResponseBuilder_ == null) { - if (respCase_ == 3 && - resp_ != lgraph.Lgraph.ListGraphsResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ListGraphsResponse.newBuilder((lgraph.Lgraph.ListGraphsResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 3) { - listGraphsResponseBuilder_.mergeFrom(value); - } - listGraphsResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public Builder clearListGraphsResponse() { - if (listGraphsResponseBuilder_ == null) { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - } - listGraphsResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public lgraph.Lgraph.ListGraphsResponse.Builder getListGraphsResponseBuilder() { - return getListGraphsResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - public lgraph.Lgraph.ListGraphsResponseOrBuilder getListGraphsResponseOrBuilder() { - if ((respCase_ == 3) && (listGraphsResponseBuilder_ != null)) { - return listGraphsResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 3) { - return (lgraph.Lgraph.ListGraphsResponse) resp_; - } - return lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListGraphsResponse list_graphs_response = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsResponse, lgraph.Lgraph.ListGraphsResponse.Builder, lgraph.Lgraph.ListGraphsResponseOrBuilder> - getListGraphsResponseFieldBuilder() { - if (listGraphsResponseBuilder_ == null) { - if (!(respCase_ == 3)) { - resp_ = lgraph.Lgraph.ListGraphsResponse.getDefaultInstance(); - } - listGraphsResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListGraphsResponse, lgraph.Lgraph.ListGraphsResponse.Builder, lgraph.Lgraph.ListGraphsResponseOrBuilder>( - (lgraph.Lgraph.ListGraphsResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 3; - onChanged();; - return listGraphsResponseBuilder_; - } - @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:lgraph.GraphResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GraphResponse) - private static final lgraph.Lgraph.GraphResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GraphResponse(); - } - - public static lgraph.Lgraph.GraphResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GraphResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GraphResponse(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 lgraph.Lgraph.GraphResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AuthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.LoginRequest login = 1; - */ - boolean hasLogin(); - /** - * optional .lgraph.LoginRequest login = 1; - */ - lgraph.Lgraph.LoginRequest getLogin(); - /** - * optional .lgraph.LoginRequest login = 1; - */ - lgraph.Lgraph.LoginRequestOrBuilder getLoginOrBuilder(); - - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - boolean hasLogout(); - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - lgraph.Lgraph.LogoutRequest getLogout(); - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - lgraph.Lgraph.LogoutRequestOrBuilder getLogoutOrBuilder(); - - public lgraph.Lgraph.AuthRequest.ActionCase getActionCase(); - } - /** - *
-   *--------------------------------
-   * acl
-   *--------------------------------
-   * auth
-   * 
- * - * Protobuf type {@code lgraph.AuthRequest} - */ - public static final class AuthRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AuthRequest) - AuthRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthRequest.newBuilder() to construct. - private AuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthRequest( - 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: { - lgraph.Lgraph.LoginRequest.Builder subBuilder = null; - if (actionCase_ == 1) { - subBuilder = ((lgraph.Lgraph.LoginRequest) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.LoginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.LoginRequest) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.LogoutRequest.Builder subBuilder = null; - if (actionCase_ == 2) { - subBuilder = ((lgraph.Lgraph.LogoutRequest) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.LogoutRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.LogoutRequest) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 2; - 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 lgraph.Lgraph.internal_static_lgraph_AuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AuthRequest.class, lgraph.Lgraph.AuthRequest.Builder.class); - } - - private int bitField0_; - private int actionCase_ = 0; - private java.lang.Object action_; - public enum ActionCase - implements com.google.protobuf.Internal.EnumLite { - LOGIN(1), - LOGOUT(2), - ACTION_NOT_SET(0); - private final int value; - private ActionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 1: return LOGIN; - case 2: return LOGOUT; - case 0: return ACTION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public static final int LOGIN_FIELD_NUMBER = 1; - /** - * optional .lgraph.LoginRequest login = 1; - */ - public boolean hasLogin() { - return actionCase_ == 1; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public lgraph.Lgraph.LoginRequest getLogin() { - if (actionCase_ == 1) { - return (lgraph.Lgraph.LoginRequest) action_; - } - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public lgraph.Lgraph.LoginRequestOrBuilder getLoginOrBuilder() { - if (actionCase_ == 1) { - return (lgraph.Lgraph.LoginRequest) action_; - } - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - - public static final int LOGOUT_FIELD_NUMBER = 2; - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public boolean hasLogout() { - return actionCase_ == 2; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public lgraph.Lgraph.LogoutRequest getLogout() { - if (actionCase_ == 2) { - return (lgraph.Lgraph.LogoutRequest) action_; - } - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public lgraph.Lgraph.LogoutRequestOrBuilder getLogoutOrBuilder() { - if (actionCase_ == 2) { - return (lgraph.Lgraph.LogoutRequest) action_; - } - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasLogin()) { - if (!getLogin().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasLogout()) { - if (!getLogout().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (actionCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.LoginRequest) action_); - } - if (actionCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.LogoutRequest) action_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (actionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.LoginRequest) action_); - } - if (actionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.LogoutRequest) action_); - } - 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 lgraph.Lgraph.AuthRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AuthRequest other = (lgraph.Lgraph.AuthRequest) obj; - - boolean result = true; - result = result && getActionCase().equals( - other.getActionCase()); - if (!result) return false; - switch (actionCase_) { - case 1: - result = result && getLogin() - .equals(other.getLogin()); - break; - case 2: - result = result && getLogout() - .equals(other.getLogout()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (actionCase_) { - case 1: - hash = (37 * hash) + LOGIN_FIELD_NUMBER; - hash = (53 * hash) + getLogin().hashCode(); - break; - case 2: - hash = (37 * hash) + LOGOUT_FIELD_NUMBER; - hash = (53 * hash) + getLogout().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AuthRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthRequest 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 lgraph.Lgraph.AuthRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthRequest 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 lgraph.Lgraph.AuthRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthRequest 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(lgraph.Lgraph.AuthRequest 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; - } - /** - *
-     *--------------------------------
-     * acl
-     *--------------------------------
-     * auth
-     * 
- * - * Protobuf type {@code lgraph.AuthRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AuthRequest) - lgraph.Lgraph.AuthRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AuthRequest.class, lgraph.Lgraph.AuthRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AuthRequest.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(); - actionCase_ = 0; - action_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AuthRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AuthRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AuthRequest build() { - lgraph.Lgraph.AuthRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AuthRequest buildPartial() { - lgraph.Lgraph.AuthRequest result = new lgraph.Lgraph.AuthRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (actionCase_ == 1) { - if (loginBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = loginBuilder_.build(); - } - } - if (actionCase_ == 2) { - if (logoutBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = logoutBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.actionCase_ = actionCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AuthRequest) { - return mergeFrom((lgraph.Lgraph.AuthRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AuthRequest other) { - if (other == lgraph.Lgraph.AuthRequest.getDefaultInstance()) return this; - switch (other.getActionCase()) { - case LOGIN: { - mergeLogin(other.getLogin()); - break; - } - case LOGOUT: { - mergeLogout(other.getLogout()); - break; - } - case ACTION_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasLogin()) { - if (!getLogin().isInitialized()) { - return false; - } - } - if (hasLogout()) { - if (!getLogout().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AuthRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AuthRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int actionCase_ = 0; - private java.lang.Object action_; - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoginRequest, lgraph.Lgraph.LoginRequest.Builder, lgraph.Lgraph.LoginRequestOrBuilder> loginBuilder_; - /** - * optional .lgraph.LoginRequest login = 1; - */ - public boolean hasLogin() { - return actionCase_ == 1; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public lgraph.Lgraph.LoginRequest getLogin() { - if (loginBuilder_ == null) { - if (actionCase_ == 1) { - return (lgraph.Lgraph.LoginRequest) action_; - } - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } else { - if (actionCase_ == 1) { - return loginBuilder_.getMessage(); - } - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public Builder setLogin(lgraph.Lgraph.LoginRequest value) { - if (loginBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - loginBuilder_.setMessage(value); - } - actionCase_ = 1; - return this; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public Builder setLogin( - lgraph.Lgraph.LoginRequest.Builder builderForValue) { - if (loginBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - loginBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 1; - return this; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public Builder mergeLogin(lgraph.Lgraph.LoginRequest value) { - if (loginBuilder_ == null) { - if (actionCase_ == 1 && - action_ != lgraph.Lgraph.LoginRequest.getDefaultInstance()) { - action_ = lgraph.Lgraph.LoginRequest.newBuilder((lgraph.Lgraph.LoginRequest) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 1) { - loginBuilder_.mergeFrom(value); - } - loginBuilder_.setMessage(value); - } - actionCase_ = 1; - return this; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public Builder clearLogin() { - if (loginBuilder_ == null) { - if (actionCase_ == 1) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 1) { - actionCase_ = 0; - action_ = null; - } - loginBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public lgraph.Lgraph.LoginRequest.Builder getLoginBuilder() { - return getLoginFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - public lgraph.Lgraph.LoginRequestOrBuilder getLoginOrBuilder() { - if ((actionCase_ == 1) && (loginBuilder_ != null)) { - return loginBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 1) { - return (lgraph.Lgraph.LoginRequest) action_; - } - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoginRequest login = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoginRequest, lgraph.Lgraph.LoginRequest.Builder, lgraph.Lgraph.LoginRequestOrBuilder> - getLoginFieldBuilder() { - if (loginBuilder_ == null) { - if (!(actionCase_ == 1)) { - action_ = lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - loginBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoginRequest, lgraph.Lgraph.LoginRequest.Builder, lgraph.Lgraph.LoginRequestOrBuilder>( - (lgraph.Lgraph.LoginRequest) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 1; - onChanged();; - return loginBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LogoutRequest, lgraph.Lgraph.LogoutRequest.Builder, lgraph.Lgraph.LogoutRequestOrBuilder> logoutBuilder_; - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public boolean hasLogout() { - return actionCase_ == 2; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public lgraph.Lgraph.LogoutRequest getLogout() { - if (logoutBuilder_ == null) { - if (actionCase_ == 2) { - return (lgraph.Lgraph.LogoutRequest) action_; - } - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } else { - if (actionCase_ == 2) { - return logoutBuilder_.getMessage(); - } - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public Builder setLogout(lgraph.Lgraph.LogoutRequest value) { - if (logoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - logoutBuilder_.setMessage(value); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public Builder setLogout( - lgraph.Lgraph.LogoutRequest.Builder builderForValue) { - if (logoutBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - logoutBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public Builder mergeLogout(lgraph.Lgraph.LogoutRequest value) { - if (logoutBuilder_ == null) { - if (actionCase_ == 2 && - action_ != lgraph.Lgraph.LogoutRequest.getDefaultInstance()) { - action_ = lgraph.Lgraph.LogoutRequest.newBuilder((lgraph.Lgraph.LogoutRequest) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 2) { - logoutBuilder_.mergeFrom(value); - } - logoutBuilder_.setMessage(value); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public Builder clearLogout() { - if (logoutBuilder_ == null) { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - } - logoutBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public lgraph.Lgraph.LogoutRequest.Builder getLogoutBuilder() { - return getLogoutFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - public lgraph.Lgraph.LogoutRequestOrBuilder getLogoutOrBuilder() { - if ((actionCase_ == 2) && (logoutBuilder_ != null)) { - return logoutBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 2) { - return (lgraph.Lgraph.LogoutRequest) action_; - } - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LogoutRequest logout = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LogoutRequest, lgraph.Lgraph.LogoutRequest.Builder, lgraph.Lgraph.LogoutRequestOrBuilder> - getLogoutFieldBuilder() { - if (logoutBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - logoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LogoutRequest, lgraph.Lgraph.LogoutRequest.Builder, lgraph.Lgraph.LogoutRequestOrBuilder>( - (lgraph.Lgraph.LogoutRequest) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 2; - onChanged();; - return logoutBuilder_; - } - @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:lgraph.AuthRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AuthRequest) - private static final lgraph.Lgraph.AuthRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AuthRequest(); - } - - public static lgraph.Lgraph.AuthRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthRequest(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 lgraph.Lgraph.AuthRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LoginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string user = 1; - */ - boolean hasUser(); - /** - * required string user = 1; - */ - java.lang.String getUser(); - /** - * required string user = 1; - */ - com.google.protobuf.ByteString - getUserBytes(); - - /** - * required string password = 2; - */ - boolean hasPassword(); - /** - * required string password = 2; - */ - java.lang.String getPassword(); - /** - * required string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - } - /** - * Protobuf type {@code lgraph.LoginRequest} - */ - public static final class LoginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LoginRequest) - LoginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoginRequest.newBuilder() to construct. - private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoginRequest() { - user_ = ""; - password_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoginRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - user_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - password_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_LoginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoginRequest.class, lgraph.Lgraph.LoginRequest.Builder.class); - } - - private int bitField0_; - public static final int USER_FIELD_NUMBER = 1; - private volatile java.lang.Object user_; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * required string password = 2; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } - } - /** - * required string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = 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; - - if (!hasUser()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPassword()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - 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 lgraph.Lgraph.LoginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.LoginRequest other = (lgraph.Lgraph.LoginRequest) obj; - - boolean result = true; - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && (hasPassword() == other.hasPassword()); - if (hasPassword()) { - result = result && getPassword() - .equals(other.getPassword()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - if (hasPassword()) { - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LoginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoginRequest 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 lgraph.Lgraph.LoginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoginRequest 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 lgraph.Lgraph.LoginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoginRequest 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(lgraph.Lgraph.LoginRequest 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 lgraph.LoginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LoginRequest) - lgraph.Lgraph.LoginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LoginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoginRequest.class, lgraph.Lgraph.LoginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.LoginRequest.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(); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - password_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LoginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LoginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.LoginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LoginRequest build() { - lgraph.Lgraph.LoginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LoginRequest buildPartial() { - lgraph.Lgraph.LoginRequest result = new lgraph.Lgraph.LoginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.user_ = user_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.password_ = password_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LoginRequest) { - return mergeFrom((lgraph.Lgraph.LoginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LoginRequest other) { - if (other == lgraph.Lgraph.LoginRequest.getDefaultInstance()) return this; - if (other.hasUser()) { - bitField0_ |= 0x00000001; - user_ = other.user_; - onChanged(); - } - if (other.hasPassword()) { - bitField0_ |= 0x00000002; - password_ = other.password_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasUser()) { - return false; - } - if (!hasPassword()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LoginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LoginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object user_ = ""; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string user = 1; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * required string password = 2; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - onChanged(); - return this; - } - /** - * required string password = 2; - */ - public Builder clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * required string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = 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:lgraph.LoginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.LoginRequest) - private static final lgraph.Lgraph.LoginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LoginRequest(); - } - - public static lgraph.Lgraph.LoginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoginRequest(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 lgraph.Lgraph.LoginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LogoutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LogoutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string token = 1; - */ - boolean hasToken(); - /** - * required string token = 1; - */ - java.lang.String getToken(); - /** - * required string token = 1; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - * Protobuf type {@code lgraph.LogoutRequest} - */ - public static final class LogoutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LogoutRequest) - LogoutRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LogoutRequest.newBuilder() to construct. - private LogoutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LogoutRequest() { - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LogoutRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - token_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_LogoutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LogoutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LogoutRequest.class, lgraph.Lgraph.LogoutRequest.Builder.class); - } - - private int bitField0_; - public static final int TOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object token_; - /** - * required string token = 1; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string token = 1; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } - } - /** - * required string token = 1; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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; - - if (!hasToken()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); - } - 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 lgraph.Lgraph.LogoutRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.LogoutRequest other = (lgraph.Lgraph.LogoutRequest) obj; - - boolean result = true; - result = result && (hasToken() == other.hasToken()); - if (hasToken()) { - result = result && getToken() - .equals(other.getToken()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasToken()) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LogoutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogoutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogoutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogoutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogoutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogoutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogoutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogoutRequest 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 lgraph.Lgraph.LogoutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogoutRequest 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 lgraph.Lgraph.LogoutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogoutRequest 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(lgraph.Lgraph.LogoutRequest 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 lgraph.LogoutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LogoutRequest) - lgraph.Lgraph.LogoutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LogoutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LogoutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LogoutRequest.class, lgraph.Lgraph.LogoutRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.LogoutRequest.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(); - token_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LogoutRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LogoutRequest getDefaultInstanceForType() { - return lgraph.Lgraph.LogoutRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LogoutRequest build() { - lgraph.Lgraph.LogoutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LogoutRequest buildPartial() { - lgraph.Lgraph.LogoutRequest result = new lgraph.Lgraph.LogoutRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LogoutRequest) { - return mergeFrom((lgraph.Lgraph.LogoutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LogoutRequest other) { - if (other == lgraph.Lgraph.LogoutRequest.getDefaultInstance()) return this; - if (other.hasToken()) { - bitField0_ |= 0x00000001; - token_ = other.token_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasToken()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LogoutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LogoutRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object token_ = ""; - /** - * required string token = 1; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string token = 1; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string token = 1; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string token = 1; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - token_ = value; - onChanged(); - return this; - } - /** - * required string token = 1; - */ - public Builder clearToken() { - bitField0_ = (bitField0_ & ~0x00000001); - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * required string token = 1; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - token_ = 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:lgraph.LogoutRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.LogoutRequest) - private static final lgraph.Lgraph.LogoutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LogoutRequest(); - } - - public static lgraph.Lgraph.LogoutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogoutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogoutRequest(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 lgraph.Lgraph.LogoutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AuthResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AuthResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required string token = 1; - */ - boolean hasToken(); - /** - * required string token = 1; - */ - java.lang.String getToken(); - /** - * required string token = 1; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - * Protobuf type {@code lgraph.AuthResponse} - */ - public static final class AuthResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AuthResponse) - AuthResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthResponse.newBuilder() to construct. - private AuthResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthResponse() { - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - token_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_AuthResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AuthResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AuthResponse.class, lgraph.Lgraph.AuthResponse.Builder.class); - } - - private int bitField0_; - public static final int TOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object token_; - /** - * required string token = 1; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string token = 1; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } - } - /** - * required string token = 1; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = 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; - - if (!hasToken()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_); - } - 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 lgraph.Lgraph.AuthResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AuthResponse other = (lgraph.Lgraph.AuthResponse) obj; - - boolean result = true; - result = result && (hasToken() == other.hasToken()); - if (hasToken()) { - result = result && getToken() - .equals(other.getToken()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasToken()) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AuthResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AuthResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AuthResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthResponse 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 lgraph.Lgraph.AuthResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthResponse 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 lgraph.Lgraph.AuthResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AuthResponse 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(lgraph.Lgraph.AuthResponse 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 lgraph.AuthResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AuthResponse) - lgraph.Lgraph.AuthResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AuthResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AuthResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AuthResponse.class, lgraph.Lgraph.AuthResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AuthResponse.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(); - token_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AuthResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AuthResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AuthResponse build() { - lgraph.Lgraph.AuthResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AuthResponse buildPartial() { - lgraph.Lgraph.AuthResponse result = new lgraph.Lgraph.AuthResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AuthResponse) { - return mergeFrom((lgraph.Lgraph.AuthResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AuthResponse other) { - if (other == lgraph.Lgraph.AuthResponse.getDefaultInstance()) return this; - if (other.hasToken()) { - bitField0_ |= 0x00000001; - token_ = other.token_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasToken()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AuthResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AuthResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object token_ = ""; - /** - * required string token = 1; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string token = 1; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string token = 1; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string token = 1; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - token_ = value; - onChanged(); - return this; - } - /** - * required string token = 1; - */ - public Builder clearToken() { - bitField0_ = (bitField0_ & ~0x00000001); - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * required string token = 1; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - token_ = 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:lgraph.AuthResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AuthResponse) - private static final lgraph.Lgraph.AuthResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AuthResponse(); - } - - public static lgraph.Lgraph.AuthResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthResponse(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 lgraph.Lgraph.AuthResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddUserRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string user = 1; - */ - boolean hasUser(); - /** - * required string user = 1; - */ - java.lang.String getUser(); - /** - * required string user = 1; - */ - com.google.protobuf.ByteString - getUserBytes(); - - /** - * required string password = 2; - */ - boolean hasPassword(); - /** - * required string password = 2; - */ - java.lang.String getPassword(); - /** - * required string password = 2; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - - /** - * optional string auth_method = 3; - */ - boolean hasAuthMethod(); - /** - * optional string auth_method = 3; - */ - java.lang.String getAuthMethod(); - /** - * optional string auth_method = 3; - */ - com.google.protobuf.ByteString - getAuthMethodBytes(); - - /** - * optional string desc = 4; - */ - boolean hasDesc(); - /** - * optional string desc = 4; - */ - java.lang.String getDesc(); - /** - * optional string desc = 4; - */ - com.google.protobuf.ByteString - getDescBytes(); - } - /** - *
-   * user
-   * 
- * - * Protobuf type {@code lgraph.AddUserRequest} - */ - public static final class AddUserRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddUserRequest) - AddUserRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddUserRequest.newBuilder() to construct. - private AddUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddUserRequest() { - user_ = ""; - password_ = ""; - authMethod_ = ""; - desc_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddUserRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - user_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - password_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - authMethod_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - desc_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_AddUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddUserRequest.class, lgraph.Lgraph.AddUserRequest.Builder.class); - } - - private int bitField0_; - public static final int USER_FIELD_NUMBER = 1; - private volatile java.lang.Object user_; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * required string password = 2; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } - } - /** - * required string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTH_METHOD_FIELD_NUMBER = 3; - private volatile java.lang.Object authMethod_; - /** - * optional string auth_method = 3; - */ - public boolean hasAuthMethod() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string auth_method = 3; - */ - public java.lang.String getAuthMethod() { - java.lang.Object ref = authMethod_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authMethod_ = s; - } - return s; - } - } - /** - * optional string auth_method = 3; - */ - public com.google.protobuf.ByteString - getAuthMethodBytes() { - java.lang.Object ref = authMethod_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authMethod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESC_FIELD_NUMBER = 4; - private volatile java.lang.Object desc_; - /** - * optional string desc = 4; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } - } - /** - * optional string desc = 4; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = 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; - - if (!hasUser()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPassword()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authMethod_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authMethod_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desc_); - } - 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 lgraph.Lgraph.AddUserRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddUserRequest other = (lgraph.Lgraph.AddUserRequest) obj; - - boolean result = true; - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && (hasPassword() == other.hasPassword()); - if (hasPassword()) { - result = result && getPassword() - .equals(other.getPassword()); - } - result = result && (hasAuthMethod() == other.hasAuthMethod()); - if (hasAuthMethod()) { - result = result && getAuthMethod() - .equals(other.getAuthMethod()); - } - result = result && (hasDesc() == other.hasDesc()); - if (hasDesc()) { - result = result && getDesc() - .equals(other.getDesc()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - if (hasPassword()) { - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - } - if (hasAuthMethod()) { - hash = (37 * hash) + AUTH_METHOD_FIELD_NUMBER; - hash = (53 * hash) + getAuthMethod().hashCode(); - } - if (hasDesc()) { - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + getDesc().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddUserRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserRequest 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 lgraph.Lgraph.AddUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserRequest 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 lgraph.Lgraph.AddUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserRequest 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(lgraph.Lgraph.AddUserRequest 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; - } - /** - *
-     * user
-     * 
- * - * Protobuf type {@code lgraph.AddUserRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddUserRequest) - lgraph.Lgraph.AddUserRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddUserRequest.class, lgraph.Lgraph.AddUserRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddUserRequest.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(); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - password_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - authMethod_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddUserRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddUserRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddUserRequest build() { - lgraph.Lgraph.AddUserRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddUserRequest buildPartial() { - lgraph.Lgraph.AddUserRequest result = new lgraph.Lgraph.AddUserRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.user_ = user_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.password_ = password_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.authMethod_ = authMethod_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.desc_ = desc_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddUserRequest) { - return mergeFrom((lgraph.Lgraph.AddUserRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddUserRequest other) { - if (other == lgraph.Lgraph.AddUserRequest.getDefaultInstance()) return this; - if (other.hasUser()) { - bitField0_ |= 0x00000001; - user_ = other.user_; - onChanged(); - } - if (other.hasPassword()) { - bitField0_ |= 0x00000002; - password_ = other.password_; - onChanged(); - } - if (other.hasAuthMethod()) { - bitField0_ |= 0x00000004; - authMethod_ = other.authMethod_; - onChanged(); - } - if (other.hasDesc()) { - bitField0_ |= 0x00000008; - desc_ = other.desc_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasUser()) { - return false; - } - if (!hasPassword()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddUserRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddUserRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object user_ = ""; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string user = 1; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * required string password = 2; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string password = 2; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string password = 2; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string password = 2; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - onChanged(); - return this; - } - /** - * required string password = 2; - */ - public Builder clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * required string password = 2; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - onChanged(); - return this; - } - - private java.lang.Object authMethod_ = ""; - /** - * optional string auth_method = 3; - */ - public boolean hasAuthMethod() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string auth_method = 3; - */ - public java.lang.String getAuthMethod() { - java.lang.Object ref = authMethod_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authMethod_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string auth_method = 3; - */ - public com.google.protobuf.ByteString - getAuthMethodBytes() { - java.lang.Object ref = authMethod_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authMethod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string auth_method = 3; - */ - public Builder setAuthMethod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - authMethod_ = value; - onChanged(); - return this; - } - /** - * optional string auth_method = 3; - */ - public Builder clearAuthMethod() { - bitField0_ = (bitField0_ & ~0x00000004); - authMethod_ = getDefaultInstance().getAuthMethod(); - onChanged(); - return this; - } - /** - * optional string auth_method = 3; - */ - public Builder setAuthMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - authMethod_ = value; - onChanged(); - return this; - } - - private java.lang.Object desc_ = ""; - /** - * optional string desc = 4; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desc = 4; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desc = 4; - */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = value; - onChanged(); - return this; - } - /** - * optional string desc = 4; - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000008); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * optional string desc = 4; - */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = 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:lgraph.AddUserRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddUserRequest) - private static final lgraph.Lgraph.AddUserRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddUserRequest(); - } - - public static lgraph.Lgraph.AddUserRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddUserRequest(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 lgraph.Lgraph.AddUserRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddUserResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddUserResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.AddUserResponse} - */ - public static final class AddUserResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddUserResponse) - AddUserResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddUserResponse.newBuilder() to construct. - private AddUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddUserResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddUserResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_AddUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddUserResponse.class, lgraph.Lgraph.AddUserResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.AddUserResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddUserResponse other = (lgraph.Lgraph.AddUserResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddUserResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddUserResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddUserResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserResponse 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 lgraph.Lgraph.AddUserResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserResponse 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 lgraph.Lgraph.AddUserResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddUserResponse 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(lgraph.Lgraph.AddUserResponse 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 lgraph.AddUserResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddUserResponse) - lgraph.Lgraph.AddUserResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddUserResponse.class, lgraph.Lgraph.AddUserResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddUserResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddUserResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddUserResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddUserResponse build() { - lgraph.Lgraph.AddUserResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddUserResponse buildPartial() { - lgraph.Lgraph.AddUserResponse result = new lgraph.Lgraph.AddUserResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddUserResponse) { - return mergeFrom((lgraph.Lgraph.AddUserResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddUserResponse other) { - if (other == lgraph.Lgraph.AddUserResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.AddUserResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddUserResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.AddUserResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddUserResponse) - private static final lgraph.Lgraph.AddUserResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddUserResponse(); - } - - public static lgraph.Lgraph.AddUserResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddUserResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddUserResponse(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 lgraph.Lgraph.AddUserResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListOfStringOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListOfString) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string values = 1; - */ - java.util.List - getValuesList(); - /** - * repeated string values = 1; - */ - int getValuesCount(); - /** - * repeated string values = 1; - */ - java.lang.String getValues(int index); - /** - * repeated string values = 1; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - * Protobuf type {@code lgraph.ListOfString} - */ - public static final class ListOfString extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListOfString) - ListOfStringOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListOfString.newBuilder() to construct. - private ListOfString(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListOfString() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListOfString( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(bs); - 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) == 0x00000001)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListOfString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListOfString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListOfString.class, lgraph.Lgraph.ListOfString.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.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 { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().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 lgraph.Lgraph.ListOfString)) { - return super.equals(obj); - } - lgraph.Lgraph.ListOfString other = (lgraph.Lgraph.ListOfString) obj; - - boolean result = true; - result = result && getValuesList() - .equals(other.getValuesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListOfString parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfString parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfString parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfString parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfString parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListOfString parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListOfString parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfString 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 lgraph.Lgraph.ListOfString parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfString 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 lgraph.Lgraph.ListOfString parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListOfString 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(lgraph.Lgraph.ListOfString 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 lgraph.ListOfString} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListOfString) - lgraph.Lgraph.ListOfStringOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListOfString_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListOfString_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListOfString.class, lgraph.Lgraph.ListOfString.Builder.class); - } - - // Construct using lgraph.Lgraph.ListOfString.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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListOfString_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListOfString getDefaultInstanceForType() { - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListOfString build() { - lgraph.Lgraph.ListOfString result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListOfString buildPartial() { - lgraph.Lgraph.ListOfString result = new lgraph.Lgraph.ListOfString(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListOfString) { - return mergeFrom((lgraph.Lgraph.ListOfString)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListOfString other) { - if (other == lgraph.Lgraph.ListOfString.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - 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 { - lgraph.Lgraph.ListOfString parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListOfString) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - * repeated string values = 1; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string values = 1; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.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:lgraph.ListOfString) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListOfString) - private static final lgraph.Lgraph.ListOfString DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListOfString(); - } - - public static lgraph.Lgraph.ListOfString getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOfString parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOfString(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 lgraph.Lgraph.ListOfString getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SetPasswordParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SetPasswordParam) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string old_pass = 1; - */ - boolean hasOldPass(); - /** - * optional string old_pass = 1; - */ - java.lang.String getOldPass(); - /** - * optional string old_pass = 1; - */ - com.google.protobuf.ByteString - getOldPassBytes(); - - /** - * required string new_pass = 2; - */ - boolean hasNewPass(); - /** - * required string new_pass = 2; - */ - java.lang.String getNewPass(); - /** - * required string new_pass = 2; - */ - com.google.protobuf.ByteString - getNewPassBytes(); - } - /** - * Protobuf type {@code lgraph.SetPasswordParam} - */ - public static final class SetPasswordParam extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SetPasswordParam) - SetPasswordParamOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetPasswordParam.newBuilder() to construct. - private SetPasswordParam(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetPasswordParam() { - oldPass_ = ""; - newPass_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SetPasswordParam( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - oldPass_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - newPass_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_SetPasswordParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SetPasswordParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SetPasswordParam.class, lgraph.Lgraph.SetPasswordParam.Builder.class); - } - - private int bitField0_; - public static final int OLD_PASS_FIELD_NUMBER = 1; - private volatile java.lang.Object oldPass_; - /** - * optional string old_pass = 1; - */ - public boolean hasOldPass() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string old_pass = 1; - */ - public java.lang.String getOldPass() { - java.lang.Object ref = oldPass_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oldPass_ = s; - } - return s; - } - } - /** - * optional string old_pass = 1; - */ - public com.google.protobuf.ByteString - getOldPassBytes() { - java.lang.Object ref = oldPass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oldPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEW_PASS_FIELD_NUMBER = 2; - private volatile java.lang.Object newPass_; - /** - * required string new_pass = 2; - */ - public boolean hasNewPass() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string new_pass = 2; - */ - public java.lang.String getNewPass() { - java.lang.Object ref = newPass_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - newPass_ = s; - } - return s; - } - } - /** - * required string new_pass = 2; - */ - public com.google.protobuf.ByteString - getNewPassBytes() { - java.lang.Object ref = newPass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newPass_ = 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; - - if (!hasNewPass()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oldPass_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newPass_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oldPass_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newPass_); - } - 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 lgraph.Lgraph.SetPasswordParam)) { - return super.equals(obj); - } - lgraph.Lgraph.SetPasswordParam other = (lgraph.Lgraph.SetPasswordParam) obj; - - boolean result = true; - result = result && (hasOldPass() == other.hasOldPass()); - if (hasOldPass()) { - result = result && getOldPass() - .equals(other.getOldPass()); - } - result = result && (hasNewPass() == other.hasNewPass()); - if (hasNewPass()) { - result = result && getNewPass() - .equals(other.getNewPass()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasOldPass()) { - hash = (37 * hash) + OLD_PASS_FIELD_NUMBER; - hash = (53 * hash) + getOldPass().hashCode(); - } - if (hasNewPass()) { - hash = (37 * hash) + NEW_PASS_FIELD_NUMBER; - hash = (53 * hash) + getNewPass().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SetPasswordParam parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SetPasswordParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SetPasswordParam 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 lgraph.Lgraph.SetPasswordParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SetPasswordParam 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 lgraph.Lgraph.SetPasswordParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SetPasswordParam 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(lgraph.Lgraph.SetPasswordParam 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 lgraph.SetPasswordParam} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SetPasswordParam) - lgraph.Lgraph.SetPasswordParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SetPasswordParam_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SetPasswordParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SetPasswordParam.class, lgraph.Lgraph.SetPasswordParam.Builder.class); - } - - // Construct using lgraph.Lgraph.SetPasswordParam.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(); - oldPass_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - newPass_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SetPasswordParam_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SetPasswordParam getDefaultInstanceForType() { - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SetPasswordParam build() { - lgraph.Lgraph.SetPasswordParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SetPasswordParam buildPartial() { - lgraph.Lgraph.SetPasswordParam result = new lgraph.Lgraph.SetPasswordParam(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.oldPass_ = oldPass_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.newPass_ = newPass_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SetPasswordParam) { - return mergeFrom((lgraph.Lgraph.SetPasswordParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SetPasswordParam other) { - if (other == lgraph.Lgraph.SetPasswordParam.getDefaultInstance()) return this; - if (other.hasOldPass()) { - bitField0_ |= 0x00000001; - oldPass_ = other.oldPass_; - onChanged(); - } - if (other.hasNewPass()) { - bitField0_ |= 0x00000002; - newPass_ = other.newPass_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasNewPass()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SetPasswordParam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SetPasswordParam) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object oldPass_ = ""; - /** - * optional string old_pass = 1; - */ - public boolean hasOldPass() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string old_pass = 1; - */ - public java.lang.String getOldPass() { - java.lang.Object ref = oldPass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - oldPass_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string old_pass = 1; - */ - public com.google.protobuf.ByteString - getOldPassBytes() { - java.lang.Object ref = oldPass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oldPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string old_pass = 1; - */ - public Builder setOldPass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - oldPass_ = value; - onChanged(); - return this; - } - /** - * optional string old_pass = 1; - */ - public Builder clearOldPass() { - bitField0_ = (bitField0_ & ~0x00000001); - oldPass_ = getDefaultInstance().getOldPass(); - onChanged(); - return this; - } - /** - * optional string old_pass = 1; - */ - public Builder setOldPassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - oldPass_ = value; - onChanged(); - return this; - } - - private java.lang.Object newPass_ = ""; - /** - * required string new_pass = 2; - */ - public boolean hasNewPass() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string new_pass = 2; - */ - public java.lang.String getNewPass() { - java.lang.Object ref = newPass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - newPass_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string new_pass = 2; - */ - public com.google.protobuf.ByteString - getNewPassBytes() { - java.lang.Object ref = newPass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newPass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string new_pass = 2; - */ - public Builder setNewPass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - newPass_ = value; - onChanged(); - return this; - } - /** - * required string new_pass = 2; - */ - public Builder clearNewPass() { - bitField0_ = (bitField0_ & ~0x00000002); - newPass_ = getDefaultInstance().getNewPass(); - onChanged(); - return this; - } - /** - * required string new_pass = 2; - */ - public Builder setNewPassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - newPass_ = 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:lgraph.SetPasswordParam) - } - - // @@protoc_insertion_point(class_scope:lgraph.SetPasswordParam) - private static final lgraph.Lgraph.SetPasswordParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SetPasswordParam(); - } - - public static lgraph.Lgraph.SetPasswordParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetPasswordParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetPasswordParam(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 lgraph.Lgraph.SetPasswordParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModUserRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string user = 1; - */ - boolean hasUser(); - /** - * required string user = 1; - */ - java.lang.String getUser(); - /** - * required string user = 1; - */ - com.google.protobuf.ByteString - getUserBytes(); - - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - boolean hasSetPassword(); - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - lgraph.Lgraph.SetPasswordParam getSetPassword(); - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - lgraph.Lgraph.SetPasswordParamOrBuilder getSetPasswordOrBuilder(); - - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - boolean hasSetRoles(); - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - lgraph.Lgraph.ListOfString getSetRoles(); - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - lgraph.Lgraph.ListOfStringOrBuilder getSetRolesOrBuilder(); - - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - boolean hasAddRoles(); - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - lgraph.Lgraph.ListOfString getAddRoles(); - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - lgraph.Lgraph.ListOfStringOrBuilder getAddRolesOrBuilder(); - - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - boolean hasDelRoles(); - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - lgraph.Lgraph.ListOfString getDelRoles(); - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - lgraph.Lgraph.ListOfStringOrBuilder getDelRolesOrBuilder(); - - /** - * optional bool enable = 6; - */ - boolean hasEnable(); - /** - * optional bool enable = 6; - */ - boolean getEnable(); - - /** - * optional bool disable = 7; - */ - boolean hasDisable(); - /** - * optional bool disable = 7; - */ - boolean getDisable(); - - /** - * optional string set_desc = 8; - */ - boolean hasSetDesc(); - /** - * optional string set_desc = 8; - */ - java.lang.String getSetDesc(); - /** - * optional string set_desc = 8; - */ - com.google.protobuf.ByteString - getSetDescBytes(); - - public lgraph.Lgraph.ModUserRequest.ActionCase getActionCase(); - } - /** - * Protobuf type {@code lgraph.ModUserRequest} - */ - public static final class ModUserRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModUserRequest) - ModUserRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModUserRequest.newBuilder() to construct. - private ModUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModUserRequest() { - user_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModUserRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - user_ = bs; - break; - } - case 18: { - lgraph.Lgraph.SetPasswordParam.Builder subBuilder = null; - if (actionCase_ == 2) { - subBuilder = ((lgraph.Lgraph.SetPasswordParam) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.SetPasswordParam.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SetPasswordParam) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.ListOfString.Builder subBuilder = null; - if (actionCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ListOfString) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.ListOfString.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListOfString) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.ListOfString.Builder subBuilder = null; - if (actionCase_ == 4) { - subBuilder = ((lgraph.Lgraph.ListOfString) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.ListOfString.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListOfString) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.ListOfString.Builder subBuilder = null; - if (actionCase_ == 5) { - subBuilder = ((lgraph.Lgraph.ListOfString) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.ListOfString.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListOfString) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 5; - break; - } - case 48: { - actionCase_ = 6; - action_ = input.readBool(); - break; - } - case 56: { - actionCase_ = 7; - action_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - actionCase_ = 8; - action_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_ModUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModUserRequest.class, lgraph.Lgraph.ModUserRequest.Builder.class); - } - - private int bitField0_; - private int actionCase_ = 0; - private java.lang.Object action_; - public enum ActionCase - implements com.google.protobuf.Internal.EnumLite { - SET_PASSWORD(2), - SET_ROLES(3), - ADD_ROLES(4), - DEL_ROLES(5), - ENABLE(6), - DISABLE(7), - SET_DESC(8), - ACTION_NOT_SET(0); - private final int value; - private ActionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: return SET_PASSWORD; - case 3: return SET_ROLES; - case 4: return ADD_ROLES; - case 5: return DEL_ROLES; - case 6: return ENABLE; - case 7: return DISABLE; - case 8: return SET_DESC; - case 0: return ACTION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public static final int USER_FIELD_NUMBER = 1; - private volatile java.lang.Object user_; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SET_PASSWORD_FIELD_NUMBER = 2; - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public boolean hasSetPassword() { - return actionCase_ == 2; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public lgraph.Lgraph.SetPasswordParam getSetPassword() { - if (actionCase_ == 2) { - return (lgraph.Lgraph.SetPasswordParam) action_; - } - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public lgraph.Lgraph.SetPasswordParamOrBuilder getSetPasswordOrBuilder() { - if (actionCase_ == 2) { - return (lgraph.Lgraph.SetPasswordParam) action_; - } - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - - public static final int SET_ROLES_FIELD_NUMBER = 3; - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public boolean hasSetRoles() { - return actionCase_ == 3; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public lgraph.Lgraph.ListOfString getSetRoles() { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getSetRolesOrBuilder() { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - - public static final int ADD_ROLES_FIELD_NUMBER = 4; - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public boolean hasAddRoles() { - return actionCase_ == 4; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public lgraph.Lgraph.ListOfString getAddRoles() { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getAddRolesOrBuilder() { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - - public static final int DEL_ROLES_FIELD_NUMBER = 5; - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public boolean hasDelRoles() { - return actionCase_ == 5; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public lgraph.Lgraph.ListOfString getDelRoles() { - if (actionCase_ == 5) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getDelRolesOrBuilder() { - if (actionCase_ == 5) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - - public static final int ENABLE_FIELD_NUMBER = 6; - /** - * optional bool enable = 6; - */ - public boolean hasEnable() { - return actionCase_ == 6; - } - /** - * optional bool enable = 6; - */ - public boolean getEnable() { - if (actionCase_ == 6) { - return (java.lang.Boolean) action_; - } - return false; - } - - public static final int DISABLE_FIELD_NUMBER = 7; - /** - * optional bool disable = 7; - */ - public boolean hasDisable() { - return actionCase_ == 7; - } - /** - * optional bool disable = 7; - */ - public boolean getDisable() { - if (actionCase_ == 7) { - return (java.lang.Boolean) action_; - } - return false; - } - - public static final int SET_DESC_FIELD_NUMBER = 8; - /** - * optional string set_desc = 8; - */ - public boolean hasSetDesc() { - return actionCase_ == 8; - } - /** - * optional string set_desc = 8; - */ - public java.lang.String getSetDesc() { - java.lang.Object ref = ""; - if (actionCase_ == 8) { - ref = action_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (actionCase_ == 8)) { - action_ = s; - } - return s; - } - } - /** - * optional string set_desc = 8; - */ - public com.google.protobuf.ByteString - getSetDescBytes() { - java.lang.Object ref = ""; - if (actionCase_ == 8) { - ref = action_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (actionCase_ == 8) { - action_ = 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; - - if (!hasUser()) { - memoizedIsInitialized = 0; - return false; - } - if (hasSetPassword()) { - if (!getSetPassword().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); - } - if (actionCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.SetPasswordParam) action_); - } - if (actionCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 7) { - output.writeBool( - 7, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 8) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, action_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); - } - if (actionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.SetPasswordParam) action_); - } - if (actionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.ListOfString) action_); - } - if (actionCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 7, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 8) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, action_); - } - 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 lgraph.Lgraph.ModUserRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ModUserRequest other = (lgraph.Lgraph.ModUserRequest) obj; - - boolean result = true; - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && getActionCase().equals( - other.getActionCase()); - if (!result) return false; - switch (actionCase_) { - case 2: - result = result && getSetPassword() - .equals(other.getSetPassword()); - break; - case 3: - result = result && getSetRoles() - .equals(other.getSetRoles()); - break; - case 4: - result = result && getAddRoles() - .equals(other.getAddRoles()); - break; - case 5: - result = result && getDelRoles() - .equals(other.getDelRoles()); - break; - case 6: - result = result && (getEnable() - == other.getEnable()); - break; - case 7: - result = result && (getDisable() - == other.getDisable()); - break; - case 8: - result = result && getSetDesc() - .equals(other.getSetDesc()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - switch (actionCase_) { - case 2: - hash = (37 * hash) + SET_PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getSetPassword().hashCode(); - break; - case 3: - hash = (37 * hash) + SET_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getSetRoles().hashCode(); - break; - case 4: - hash = (37 * hash) + ADD_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getAddRoles().hashCode(); - break; - case 5: - hash = (37 * hash) + DEL_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getDelRoles().hashCode(); - break; - case 6: - hash = (37 * hash) + ENABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnable()); - break; - case 7: - hash = (37 * hash) + DISABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisable()); - break; - case 8: - hash = (37 * hash) + SET_DESC_FIELD_NUMBER; - hash = (53 * hash) + getSetDesc().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModUserRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserRequest 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 lgraph.Lgraph.ModUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserRequest 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 lgraph.Lgraph.ModUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserRequest 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(lgraph.Lgraph.ModUserRequest 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 lgraph.ModUserRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModUserRequest) - lgraph.Lgraph.ModUserRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModUserRequest.class, lgraph.Lgraph.ModUserRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ModUserRequest.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(); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - actionCase_ = 0; - action_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModUserRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModUserRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModUserRequest build() { - lgraph.Lgraph.ModUserRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModUserRequest buildPartial() { - lgraph.Lgraph.ModUserRequest result = new lgraph.Lgraph.ModUserRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.user_ = user_; - if (actionCase_ == 2) { - if (setPasswordBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = setPasswordBuilder_.build(); - } - } - if (actionCase_ == 3) { - if (setRolesBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = setRolesBuilder_.build(); - } - } - if (actionCase_ == 4) { - if (addRolesBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = addRolesBuilder_.build(); - } - } - if (actionCase_ == 5) { - if (delRolesBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = delRolesBuilder_.build(); - } - } - if (actionCase_ == 6) { - result.action_ = action_; - } - if (actionCase_ == 7) { - result.action_ = action_; - } - if (actionCase_ == 8) { - result.action_ = action_; - } - result.bitField0_ = to_bitField0_; - result.actionCase_ = actionCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModUserRequest) { - return mergeFrom((lgraph.Lgraph.ModUserRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModUserRequest other) { - if (other == lgraph.Lgraph.ModUserRequest.getDefaultInstance()) return this; - if (other.hasUser()) { - bitField0_ |= 0x00000001; - user_ = other.user_; - onChanged(); - } - switch (other.getActionCase()) { - case SET_PASSWORD: { - mergeSetPassword(other.getSetPassword()); - break; - } - case SET_ROLES: { - mergeSetRoles(other.getSetRoles()); - break; - } - case ADD_ROLES: { - mergeAddRoles(other.getAddRoles()); - break; - } - case DEL_ROLES: { - mergeDelRoles(other.getDelRoles()); - break; - } - case ENABLE: { - setEnable(other.getEnable()); - break; - } - case DISABLE: { - setDisable(other.getDisable()); - break; - } - case SET_DESC: { - actionCase_ = 8; - action_ = other.action_; - onChanged(); - break; - } - case ACTION_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasUser()) { - return false; - } - if (hasSetPassword()) { - if (!getSetPassword().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ModUserRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModUserRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int actionCase_ = 0; - private java.lang.Object action_; - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object user_ = ""; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string user = 1; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SetPasswordParam, lgraph.Lgraph.SetPasswordParam.Builder, lgraph.Lgraph.SetPasswordParamOrBuilder> setPasswordBuilder_; - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public boolean hasSetPassword() { - return actionCase_ == 2; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public lgraph.Lgraph.SetPasswordParam getSetPassword() { - if (setPasswordBuilder_ == null) { - if (actionCase_ == 2) { - return (lgraph.Lgraph.SetPasswordParam) action_; - } - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } else { - if (actionCase_ == 2) { - return setPasswordBuilder_.getMessage(); - } - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public Builder setSetPassword(lgraph.Lgraph.SetPasswordParam value) { - if (setPasswordBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - setPasswordBuilder_.setMessage(value); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public Builder setSetPassword( - lgraph.Lgraph.SetPasswordParam.Builder builderForValue) { - if (setPasswordBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - setPasswordBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public Builder mergeSetPassword(lgraph.Lgraph.SetPasswordParam value) { - if (setPasswordBuilder_ == null) { - if (actionCase_ == 2 && - action_ != lgraph.Lgraph.SetPasswordParam.getDefaultInstance()) { - action_ = lgraph.Lgraph.SetPasswordParam.newBuilder((lgraph.Lgraph.SetPasswordParam) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 2) { - setPasswordBuilder_.mergeFrom(value); - } - setPasswordBuilder_.setMessage(value); - } - actionCase_ = 2; - return this; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public Builder clearSetPassword() { - if (setPasswordBuilder_ == null) { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - } - setPasswordBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public lgraph.Lgraph.SetPasswordParam.Builder getSetPasswordBuilder() { - return getSetPasswordFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - public lgraph.Lgraph.SetPasswordParamOrBuilder getSetPasswordOrBuilder() { - if ((actionCase_ == 2) && (setPasswordBuilder_ != null)) { - return setPasswordBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 2) { - return (lgraph.Lgraph.SetPasswordParam) action_; - } - return lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - } - /** - * optional .lgraph.SetPasswordParam set_password = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SetPasswordParam, lgraph.Lgraph.SetPasswordParam.Builder, lgraph.Lgraph.SetPasswordParamOrBuilder> - getSetPasswordFieldBuilder() { - if (setPasswordBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = lgraph.Lgraph.SetPasswordParam.getDefaultInstance(); - } - setPasswordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SetPasswordParam, lgraph.Lgraph.SetPasswordParam.Builder, lgraph.Lgraph.SetPasswordParamOrBuilder>( - (lgraph.Lgraph.SetPasswordParam) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 2; - onChanged();; - return setPasswordBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> setRolesBuilder_; - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public boolean hasSetRoles() { - return actionCase_ == 3; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public lgraph.Lgraph.ListOfString getSetRoles() { - if (setRolesBuilder_ == null) { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } else { - if (actionCase_ == 3) { - return setRolesBuilder_.getMessage(); - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public Builder setSetRoles(lgraph.Lgraph.ListOfString value) { - if (setRolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - setRolesBuilder_.setMessage(value); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public Builder setSetRoles( - lgraph.Lgraph.ListOfString.Builder builderForValue) { - if (setRolesBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - setRolesBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public Builder mergeSetRoles(lgraph.Lgraph.ListOfString value) { - if (setRolesBuilder_ == null) { - if (actionCase_ == 3 && - action_ != lgraph.Lgraph.ListOfString.getDefaultInstance()) { - action_ = lgraph.Lgraph.ListOfString.newBuilder((lgraph.Lgraph.ListOfString) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 3) { - setRolesBuilder_.mergeFrom(value); - } - setRolesBuilder_.setMessage(value); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public Builder clearSetRoles() { - if (setRolesBuilder_ == null) { - if (actionCase_ == 3) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 3) { - actionCase_ = 0; - action_ = null; - } - setRolesBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public lgraph.Lgraph.ListOfString.Builder getSetRolesBuilder() { - return getSetRolesFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getSetRolesOrBuilder() { - if ((actionCase_ == 3) && (setRolesBuilder_ != null)) { - return setRolesBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString set_roles = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> - getSetRolesFieldBuilder() { - if (setRolesBuilder_ == null) { - if (!(actionCase_ == 3)) { - action_ = lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - setRolesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder>( - (lgraph.Lgraph.ListOfString) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 3; - onChanged();; - return setRolesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> addRolesBuilder_; - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public boolean hasAddRoles() { - return actionCase_ == 4; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public lgraph.Lgraph.ListOfString getAddRoles() { - if (addRolesBuilder_ == null) { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } else { - if (actionCase_ == 4) { - return addRolesBuilder_.getMessage(); - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public Builder setAddRoles(lgraph.Lgraph.ListOfString value) { - if (addRolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - addRolesBuilder_.setMessage(value); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public Builder setAddRoles( - lgraph.Lgraph.ListOfString.Builder builderForValue) { - if (addRolesBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - addRolesBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public Builder mergeAddRoles(lgraph.Lgraph.ListOfString value) { - if (addRolesBuilder_ == null) { - if (actionCase_ == 4 && - action_ != lgraph.Lgraph.ListOfString.getDefaultInstance()) { - action_ = lgraph.Lgraph.ListOfString.newBuilder((lgraph.Lgraph.ListOfString) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 4) { - addRolesBuilder_.mergeFrom(value); - } - addRolesBuilder_.setMessage(value); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public Builder clearAddRoles() { - if (addRolesBuilder_ == null) { - if (actionCase_ == 4) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 4) { - actionCase_ = 0; - action_ = null; - } - addRolesBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public lgraph.Lgraph.ListOfString.Builder getAddRolesBuilder() { - return getAddRolesFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getAddRolesOrBuilder() { - if ((actionCase_ == 4) && (addRolesBuilder_ != null)) { - return addRolesBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString add_roles = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> - getAddRolesFieldBuilder() { - if (addRolesBuilder_ == null) { - if (!(actionCase_ == 4)) { - action_ = lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - addRolesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder>( - (lgraph.Lgraph.ListOfString) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 4; - onChanged();; - return addRolesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> delRolesBuilder_; - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public boolean hasDelRoles() { - return actionCase_ == 5; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public lgraph.Lgraph.ListOfString getDelRoles() { - if (delRolesBuilder_ == null) { - if (actionCase_ == 5) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } else { - if (actionCase_ == 5) { - return delRolesBuilder_.getMessage(); - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public Builder setDelRoles(lgraph.Lgraph.ListOfString value) { - if (delRolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - delRolesBuilder_.setMessage(value); - } - actionCase_ = 5; - return this; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public Builder setDelRoles( - lgraph.Lgraph.ListOfString.Builder builderForValue) { - if (delRolesBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - delRolesBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 5; - return this; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public Builder mergeDelRoles(lgraph.Lgraph.ListOfString value) { - if (delRolesBuilder_ == null) { - if (actionCase_ == 5 && - action_ != lgraph.Lgraph.ListOfString.getDefaultInstance()) { - action_ = lgraph.Lgraph.ListOfString.newBuilder((lgraph.Lgraph.ListOfString) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 5) { - delRolesBuilder_.mergeFrom(value); - } - delRolesBuilder_.setMessage(value); - } - actionCase_ = 5; - return this; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public Builder clearDelRoles() { - if (delRolesBuilder_ == null) { - if (actionCase_ == 5) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 5) { - actionCase_ = 0; - action_ = null; - } - delRolesBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public lgraph.Lgraph.ListOfString.Builder getDelRolesBuilder() { - return getDelRolesFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - public lgraph.Lgraph.ListOfStringOrBuilder getDelRolesOrBuilder() { - if ((actionCase_ == 5) && (delRolesBuilder_ != null)) { - return delRolesBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 5) { - return (lgraph.Lgraph.ListOfString) action_; - } - return lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListOfString del_roles = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder> - getDelRolesFieldBuilder() { - if (delRolesBuilder_ == null) { - if (!(actionCase_ == 5)) { - action_ = lgraph.Lgraph.ListOfString.getDefaultInstance(); - } - delRolesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfString, lgraph.Lgraph.ListOfString.Builder, lgraph.Lgraph.ListOfStringOrBuilder>( - (lgraph.Lgraph.ListOfString) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 5; - onChanged();; - return delRolesBuilder_; - } - - /** - * optional bool enable = 6; - */ - public boolean hasEnable() { - return actionCase_ == 6; - } - /** - * optional bool enable = 6; - */ - public boolean getEnable() { - if (actionCase_ == 6) { - return (java.lang.Boolean) action_; - } - return false; - } - /** - * optional bool enable = 6; - */ - public Builder setEnable(boolean value) { - actionCase_ = 6; - action_ = value; - onChanged(); - return this; - } - /** - * optional bool enable = 6; - */ - public Builder clearEnable() { - if (actionCase_ == 6) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - return this; - } - - /** - * optional bool disable = 7; - */ - public boolean hasDisable() { - return actionCase_ == 7; - } - /** - * optional bool disable = 7; - */ - public boolean getDisable() { - if (actionCase_ == 7) { - return (java.lang.Boolean) action_; - } - return false; - } - /** - * optional bool disable = 7; - */ - public Builder setDisable(boolean value) { - actionCase_ = 7; - action_ = value; - onChanged(); - return this; - } - /** - * optional bool disable = 7; - */ - public Builder clearDisable() { - if (actionCase_ == 7) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - return this; - } - - /** - * optional string set_desc = 8; - */ - public boolean hasSetDesc() { - return actionCase_ == 8; - } - /** - * optional string set_desc = 8; - */ - public java.lang.String getSetDesc() { - java.lang.Object ref = ""; - if (actionCase_ == 8) { - ref = action_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (actionCase_ == 8) { - if (bs.isValidUtf8()) { - action_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string set_desc = 8; - */ - public com.google.protobuf.ByteString - getSetDescBytes() { - java.lang.Object ref = ""; - if (actionCase_ == 8) { - ref = action_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (actionCase_ == 8) { - action_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string set_desc = 8; - */ - public Builder setSetDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - actionCase_ = 8; - action_ = value; - onChanged(); - return this; - } - /** - * optional string set_desc = 8; - */ - public Builder clearSetDesc() { - if (actionCase_ == 8) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - return this; - } - /** - * optional string set_desc = 8; - */ - public Builder setSetDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - actionCase_ = 8; - action_ = 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:lgraph.ModUserRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModUserRequest) - private static final lgraph.Lgraph.ModUserRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModUserRequest(); - } - - public static lgraph.Lgraph.ModUserRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModUserRequest(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 lgraph.Lgraph.ModUserRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModUserResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModUserResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ModUserResponse} - */ - public static final class ModUserResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModUserResponse) - ModUserResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModUserResponse.newBuilder() to construct. - private ModUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModUserResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModUserResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ModUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModUserResponse.class, lgraph.Lgraph.ModUserResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ModUserResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ModUserResponse other = (lgraph.Lgraph.ModUserResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModUserResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModUserResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModUserResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserResponse 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 lgraph.Lgraph.ModUserResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserResponse 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 lgraph.Lgraph.ModUserResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModUserResponse 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(lgraph.Lgraph.ModUserResponse 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 lgraph.ModUserResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModUserResponse) - lgraph.Lgraph.ModUserResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModUserResponse.class, lgraph.Lgraph.ModUserResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ModUserResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModUserResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModUserResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModUserResponse build() { - lgraph.Lgraph.ModUserResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModUserResponse buildPartial() { - lgraph.Lgraph.ModUserResponse result = new lgraph.Lgraph.ModUserResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModUserResponse) { - return mergeFrom((lgraph.Lgraph.ModUserResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModUserResponse other) { - if (other == lgraph.Lgraph.ModUserResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ModUserResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModUserResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ModUserResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModUserResponse) - private static final lgraph.Lgraph.ModUserResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModUserResponse(); - } - - public static lgraph.Lgraph.ModUserResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModUserResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModUserResponse(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 lgraph.Lgraph.ModUserResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelUserRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string user = 1; - */ - boolean hasUser(); - /** - * required string user = 1; - */ - java.lang.String getUser(); - /** - * required string user = 1; - */ - com.google.protobuf.ByteString - getUserBytes(); - } - /** - * Protobuf type {@code lgraph.DelUserRequest} - */ - public static final class DelUserRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelUserRequest) - DelUserRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelUserRequest.newBuilder() to construct. - private DelUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelUserRequest() { - user_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelUserRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - user_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_DelUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelUserRequest.class, lgraph.Lgraph.DelUserRequest.Builder.class); - } - - private int bitField0_; - public static final int USER_FIELD_NUMBER = 1; - private volatile java.lang.Object user_; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = 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; - - if (!hasUser()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); - } - 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 lgraph.Lgraph.DelUserRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelUserRequest other = (lgraph.Lgraph.DelUserRequest) obj; - - boolean result = true; - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelUserRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserRequest 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 lgraph.Lgraph.DelUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserRequest 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 lgraph.Lgraph.DelUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserRequest 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(lgraph.Lgraph.DelUserRequest 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 lgraph.DelUserRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelUserRequest) - lgraph.Lgraph.DelUserRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelUserRequest.class, lgraph.Lgraph.DelUserRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelUserRequest.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(); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelUserRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelUserRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelUserRequest build() { - lgraph.Lgraph.DelUserRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelUserRequest buildPartial() { - lgraph.Lgraph.DelUserRequest result = new lgraph.Lgraph.DelUserRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.user_ = user_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelUserRequest) { - return mergeFrom((lgraph.Lgraph.DelUserRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelUserRequest other) { - if (other == lgraph.Lgraph.DelUserRequest.getDefaultInstance()) return this; - if (other.hasUser()) { - bitField0_ |= 0x00000001; - user_ = other.user_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasUser()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelUserRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelUserRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object user_ = ""; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string user = 1; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = 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:lgraph.DelUserRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelUserRequest) - private static final lgraph.Lgraph.DelUserRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelUserRequest(); - } - - public static lgraph.Lgraph.DelUserRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelUserRequest(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 lgraph.Lgraph.DelUserRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelUserResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelUserResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DelUserResponse} - */ - public static final class DelUserResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelUserResponse) - DelUserResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelUserResponse.newBuilder() to construct. - private DelUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelUserResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelUserResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DelUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelUserResponse.class, lgraph.Lgraph.DelUserResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DelUserResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelUserResponse other = (lgraph.Lgraph.DelUserResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelUserResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelUserResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelUserResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserResponse 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 lgraph.Lgraph.DelUserResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserResponse 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 lgraph.Lgraph.DelUserResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelUserResponse 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(lgraph.Lgraph.DelUserResponse 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 lgraph.DelUserResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelUserResponse) - lgraph.Lgraph.DelUserResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelUserResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelUserResponse.class, lgraph.Lgraph.DelUserResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelUserResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelUserResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelUserResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelUserResponse build() { - lgraph.Lgraph.DelUserResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelUserResponse buildPartial() { - lgraph.Lgraph.DelUserResponse result = new lgraph.Lgraph.DelUserResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelUserResponse) { - return mergeFrom((lgraph.Lgraph.DelUserResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelUserResponse other) { - if (other == lgraph.Lgraph.DelUserResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DelUserResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelUserResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DelUserResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelUserResponse) - private static final lgraph.Lgraph.DelUserResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelUserResponse(); - } - - public static lgraph.Lgraph.DelUserResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelUserResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelUserResponse(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 lgraph.Lgraph.DelUserResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetUserInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetUserInfoRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string user = 1; - */ - boolean hasUser(); - /** - * required string user = 1; - */ - java.lang.String getUser(); - /** - * required string user = 1; - */ - com.google.protobuf.ByteString - getUserBytes(); - } - /** - * Protobuf type {@code lgraph.GetUserInfoRequest} - */ - public static final class GetUserInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetUserInfoRequest) - GetUserInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetUserInfoRequest.newBuilder() to construct. - private GetUserInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetUserInfoRequest() { - user_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetUserInfoRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - user_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_GetUserInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetUserInfoRequest.class, lgraph.Lgraph.GetUserInfoRequest.Builder.class); - } - - private int bitField0_; - public static final int USER_FIELD_NUMBER = 1; - private volatile java.lang.Object user_; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = 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; - - if (!hasUser()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, user_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, user_); - } - 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 lgraph.Lgraph.GetUserInfoRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GetUserInfoRequest other = (lgraph.Lgraph.GetUserInfoRequest) obj; - - boolean result = true; - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetUserInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoRequest 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 lgraph.Lgraph.GetUserInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoRequest 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 lgraph.Lgraph.GetUserInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoRequest 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(lgraph.Lgraph.GetUserInfoRequest 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 lgraph.GetUserInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetUserInfoRequest) - lgraph.Lgraph.GetUserInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetUserInfoRequest.class, lgraph.Lgraph.GetUserInfoRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GetUserInfoRequest.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(); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoRequest build() { - lgraph.Lgraph.GetUserInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoRequest buildPartial() { - lgraph.Lgraph.GetUserInfoRequest result = new lgraph.Lgraph.GetUserInfoRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.user_ = user_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetUserInfoRequest) { - return mergeFrom((lgraph.Lgraph.GetUserInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetUserInfoRequest other) { - if (other == lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance()) return this; - if (other.hasUser()) { - bitField0_ |= 0x00000001; - user_ = other.user_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasUser()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetUserInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetUserInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object user_ = ""; - /** - * required string user = 1; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string user = 1; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string user = 1; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string user = 1; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = value; - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000001); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * required string user = 1; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - user_ = 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:lgraph.GetUserInfoRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetUserInfoRequest) - private static final lgraph.Lgraph.GetUserInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetUserInfoRequest(); - } - - public static lgraph.Lgraph.GetUserInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUserInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetUserInfoRequest(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 lgraph.Lgraph.GetUserInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoUserInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoUserInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * required bool is_disabled = 1; - */ - boolean hasIsDisabled(); - /** - * required bool is_disabled = 1; - */ - boolean getIsDisabled(); - - /** - * repeated string roles = 2; - */ - java.util.List - getRolesList(); - /** - * repeated string roles = 2; - */ - int getRolesCount(); - /** - * repeated string roles = 2; - */ - java.lang.String getRoles(int index); - /** - * repeated string roles = 2; - */ - com.google.protobuf.ByteString - getRolesBytes(int index); - - /** - * optional string auth_method = 3; - */ - boolean hasAuthMethod(); - /** - * optional string auth_method = 3; - */ - java.lang.String getAuthMethod(); - /** - * optional string auth_method = 3; - */ - com.google.protobuf.ByteString - getAuthMethodBytes(); - } - /** - * Protobuf type {@code lgraph.ProtoUserInfo} - */ - public static final class ProtoUserInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoUserInfo) - ProtoUserInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoUserInfo.newBuilder() to construct. - private ProtoUserInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoUserInfo() { - isDisabled_ = false; - roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - authMethod_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoUserInfo( - 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 8: { - bitField0_ |= 0x00000001; - isDisabled_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - roles_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - roles_.add(bs); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - authMethod_ = bs; - 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_ & 0x00000002) == 0x00000002)) { - roles_ = roles_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoUserInfo.class, lgraph.Lgraph.ProtoUserInfo.Builder.class); - } - - private int bitField0_; - public static final int IS_DISABLED_FIELD_NUMBER = 1; - private boolean isDisabled_; - /** - * required bool is_disabled = 1; - */ - public boolean hasIsDisabled() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_disabled = 1; - */ - public boolean getIsDisabled() { - return isDisabled_; - } - - public static final int ROLES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList roles_; - /** - * repeated string roles = 2; - */ - public com.google.protobuf.ProtocolStringList - getRolesList() { - return roles_; - } - /** - * repeated string roles = 2; - */ - public int getRolesCount() { - return roles_.size(); - } - /** - * repeated string roles = 2; - */ - public java.lang.String getRoles(int index) { - return roles_.get(index); - } - /** - * repeated string roles = 2; - */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { - return roles_.getByteString(index); - } - - public static final int AUTH_METHOD_FIELD_NUMBER = 3; - private volatile java.lang.Object authMethod_; - /** - * optional string auth_method = 3; - */ - public boolean hasAuthMethod() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string auth_method = 3; - */ - public java.lang.String getAuthMethod() { - java.lang.Object ref = authMethod_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authMethod_ = s; - } - return s; - } - } - /** - * optional string auth_method = 3; - */ - public com.google.protobuf.ByteString - getAuthMethodBytes() { - java.lang.Object ref = authMethod_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authMethod_ = 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; - - if (!hasIsDisabled()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, isDisabled_); - } - for (int i = 0; i < roles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roles_.getRaw(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authMethod_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isDisabled_); - } - { - int dataSize = 0; - for (int i = 0; i < roles_.size(); i++) { - dataSize += computeStringSizeNoTag(roles_.getRaw(i)); - } - size += dataSize; - size += 1 * getRolesList().size(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authMethod_); - } - 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 lgraph.Lgraph.ProtoUserInfo)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoUserInfo other = (lgraph.Lgraph.ProtoUserInfo) obj; - - boolean result = true; - result = result && (hasIsDisabled() == other.hasIsDisabled()); - if (hasIsDisabled()) { - result = result && (getIsDisabled() - == other.getIsDisabled()); - } - result = result && getRolesList() - .equals(other.getRolesList()); - result = result && (hasAuthMethod() == other.hasAuthMethod()); - if (hasAuthMethod()) { - result = result && getAuthMethod() - .equals(other.getAuthMethod()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsDisabled()) { - hash = (37 * hash) + IS_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDisabled()); - } - if (getRolesCount() > 0) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + getRolesList().hashCode(); - } - if (hasAuthMethod()) { - hash = (37 * hash) + AUTH_METHOD_FIELD_NUMBER; - hash = (53 * hash) + getAuthMethod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoUserInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoUserInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoUserInfo 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 lgraph.Lgraph.ProtoUserInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoUserInfo 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 lgraph.Lgraph.ProtoUserInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoUserInfo 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(lgraph.Lgraph.ProtoUserInfo 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 lgraph.ProtoUserInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoUserInfo) - lgraph.Lgraph.ProtoUserInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoUserInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoUserInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoUserInfo.class, lgraph.Lgraph.ProtoUserInfo.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoUserInfo.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(); - isDisabled_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - authMethod_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoUserInfo_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoUserInfo getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoUserInfo.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoUserInfo build() { - lgraph.Lgraph.ProtoUserInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoUserInfo buildPartial() { - lgraph.Lgraph.ProtoUserInfo result = new lgraph.Lgraph.ProtoUserInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isDisabled_ = isDisabled_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - roles_ = roles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.roles_ = roles_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - result.authMethod_ = authMethod_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoUserInfo) { - return mergeFrom((lgraph.Lgraph.ProtoUserInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoUserInfo other) { - if (other == lgraph.Lgraph.ProtoUserInfo.getDefaultInstance()) return this; - if (other.hasIsDisabled()) { - setIsDisabled(other.getIsDisabled()); - } - if (!other.roles_.isEmpty()) { - if (roles_.isEmpty()) { - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRolesIsMutable(); - roles_.addAll(other.roles_); - } - onChanged(); - } - if (other.hasAuthMethod()) { - bitField0_ |= 0x00000004; - authMethod_ = other.authMethod_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIsDisabled()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ProtoUserInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoUserInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isDisabled_ ; - /** - * required bool is_disabled = 1; - */ - public boolean hasIsDisabled() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_disabled = 1; - */ - public boolean getIsDisabled() { - return isDisabled_; - } - /** - * required bool is_disabled = 1; - */ - public Builder setIsDisabled(boolean value) { - bitField0_ |= 0x00000001; - isDisabled_ = value; - onChanged(); - return this; - } - /** - * required bool is_disabled = 1; - */ - public Builder clearIsDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - isDisabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRolesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - roles_ = new com.google.protobuf.LazyStringArrayList(roles_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string roles = 2; - */ - public com.google.protobuf.ProtocolStringList - getRolesList() { - return roles_.getUnmodifiableView(); - } - /** - * repeated string roles = 2; - */ - public int getRolesCount() { - return roles_.size(); - } - /** - * repeated string roles = 2; - */ - public java.lang.String getRoles(int index) { - return roles_.get(index); - } - /** - * repeated string roles = 2; - */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { - return roles_.getByteString(index); - } - /** - * repeated string roles = 2; - */ - public Builder setRoles( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string roles = 2; - */ - public Builder addRoles( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(value); - onChanged(); - return this; - } - /** - * repeated string roles = 2; - */ - public Builder addAllRoles( - java.lang.Iterable values) { - ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, roles_); - onChanged(); - return this; - } - /** - * repeated string roles = 2; - */ - public Builder clearRoles() { - roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string roles = 2; - */ - public Builder addRolesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(value); - onChanged(); - return this; - } - - private java.lang.Object authMethod_ = ""; - /** - * optional string auth_method = 3; - */ - public boolean hasAuthMethod() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string auth_method = 3; - */ - public java.lang.String getAuthMethod() { - java.lang.Object ref = authMethod_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authMethod_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string auth_method = 3; - */ - public com.google.protobuf.ByteString - getAuthMethodBytes() { - java.lang.Object ref = authMethod_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authMethod_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string auth_method = 3; - */ - public Builder setAuthMethod( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - authMethod_ = value; - onChanged(); - return this; - } - /** - * optional string auth_method = 3; - */ - public Builder clearAuthMethod() { - bitField0_ = (bitField0_ & ~0x00000004); - authMethod_ = getDefaultInstance().getAuthMethod(); - onChanged(); - return this; - } - /** - * optional string auth_method = 3; - */ - public Builder setAuthMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - authMethod_ = 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:lgraph.ProtoUserInfo) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoUserInfo) - private static final lgraph.Lgraph.ProtoUserInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoUserInfo(); - } - - public static lgraph.Lgraph.ProtoUserInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoUserInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoUserInfo(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 lgraph.Lgraph.ProtoUserInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetUserInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetUserInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - boolean hasInfo(); - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - lgraph.Lgraph.ProtoUserInfo getInfo(); - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - lgraph.Lgraph.ProtoUserInfoOrBuilder getInfoOrBuilder(); - } - /** - * Protobuf type {@code lgraph.GetUserInfoResponse} - */ - public static final class GetUserInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetUserInfoResponse) - GetUserInfoResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetUserInfoResponse.newBuilder() to construct. - private GetUserInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetUserInfoResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetUserInfoResponse( - 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: { - lgraph.Lgraph.ProtoUserInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = info_.toBuilder(); - } - info_ = input.readMessage(lgraph.Lgraph.ProtoUserInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(info_); - info_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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 lgraph.Lgraph.internal_static_lgraph_GetUserInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetUserInfoResponse.class, lgraph.Lgraph.GetUserInfoResponse.Builder.class); - } - - private int bitField0_; - public static final int INFO_FIELD_NUMBER = 1; - private lgraph.Lgraph.ProtoUserInfo info_; - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public boolean hasInfo() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public lgraph.Lgraph.ProtoUserInfo getInfo() { - return info_ == null ? lgraph.Lgraph.ProtoUserInfo.getDefaultInstance() : info_; - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public lgraph.Lgraph.ProtoUserInfoOrBuilder getInfoOrBuilder() { - return info_ == null ? lgraph.Lgraph.ProtoUserInfo.getDefaultInstance() : info_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!getInfo().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInfo()); - } - 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 lgraph.Lgraph.GetUserInfoResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GetUserInfoResponse other = (lgraph.Lgraph.GetUserInfoResponse) obj; - - boolean result = true; - result = result && (hasInfo() == other.hasInfo()); - if (hasInfo()) { - result = result && getInfo() - .equals(other.getInfo()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetUserInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetUserInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoResponse 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 lgraph.Lgraph.GetUserInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoResponse 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 lgraph.Lgraph.GetUserInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetUserInfoResponse 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(lgraph.Lgraph.GetUserInfoResponse 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 lgraph.GetUserInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetUserInfoResponse) - lgraph.Lgraph.GetUserInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetUserInfoResponse.class, lgraph.Lgraph.GetUserInfoResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GetUserInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - infoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetUserInfoResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoResponse build() { - lgraph.Lgraph.GetUserInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetUserInfoResponse buildPartial() { - lgraph.Lgraph.GetUserInfoResponse result = new lgraph.Lgraph.GetUserInfoResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetUserInfoResponse) { - return mergeFrom((lgraph.Lgraph.GetUserInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetUserInfoResponse other) { - if (other == lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance()) return this; - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasInfo()) { - return false; - } - if (!getInfo().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetUserInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetUserInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private lgraph.Lgraph.ProtoUserInfo info_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoUserInfo, lgraph.Lgraph.ProtoUserInfo.Builder, lgraph.Lgraph.ProtoUserInfoOrBuilder> infoBuilder_; - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public boolean hasInfo() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public lgraph.Lgraph.ProtoUserInfo getInfo() { - if (infoBuilder_ == null) { - return info_ == null ? lgraph.Lgraph.ProtoUserInfo.getDefaultInstance() : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public Builder setInfo(lgraph.Lgraph.ProtoUserInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public Builder setInfo( - lgraph.Lgraph.ProtoUserInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public Builder mergeInfo(lgraph.Lgraph.ProtoUserInfo value) { - if (infoBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - info_ != null && - info_ != lgraph.Lgraph.ProtoUserInfo.getDefaultInstance()) { - info_ = - lgraph.Lgraph.ProtoUserInfo.newBuilder(info_).mergeFrom(value).buildPartial(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - infoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public lgraph.Lgraph.ProtoUserInfo.Builder getInfoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - public lgraph.Lgraph.ProtoUserInfoOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null ? - lgraph.Lgraph.ProtoUserInfo.getDefaultInstance() : info_; - } - } - /** - * required .lgraph.ProtoUserInfo info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoUserInfo, lgraph.Lgraph.ProtoUserInfo.Builder, lgraph.Lgraph.ProtoUserInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoUserInfo, lgraph.Lgraph.ProtoUserInfo.Builder, lgraph.Lgraph.ProtoUserInfoOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - @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:lgraph.GetUserInfoResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetUserInfoResponse) - private static final lgraph.Lgraph.GetUserInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetUserInfoResponse(); - } - - public static lgraph.Lgraph.GetUserInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetUserInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetUserInfoResponse(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 lgraph.Lgraph.GetUserInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListUserRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListUserRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListUserRequest} - */ - public static final class ListUserRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListUserRequest) - ListUserRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUserRequest.newBuilder() to construct. - private ListUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListUserRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListUserRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListUserRequest.class, lgraph.Lgraph.ListUserRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListUserRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListUserRequest other = (lgraph.Lgraph.ListUserRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListUserRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserRequest 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 lgraph.Lgraph.ListUserRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserRequest 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 lgraph.Lgraph.ListUserRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserRequest 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(lgraph.Lgraph.ListUserRequest 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 lgraph.ListUserRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListUserRequest) - lgraph.Lgraph.ListUserRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListUserRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListUserRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListUserRequest.class, lgraph.Lgraph.ListUserRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListUserRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListUserRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListUserRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListUserRequest build() { - lgraph.Lgraph.ListUserRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListUserRequest buildPartial() { - lgraph.Lgraph.ListUserRequest result = new lgraph.Lgraph.ListUserRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListUserRequest) { - return mergeFrom((lgraph.Lgraph.ListUserRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListUserRequest other) { - if (other == lgraph.Lgraph.ListUserRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListUserRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListUserRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListUserRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListUserRequest) - private static final lgraph.Lgraph.ListUserRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListUserRequest(); - } - - public static lgraph.Lgraph.ListUserRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserRequest(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 lgraph.Lgraph.ListUserRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListUserResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListUserResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - int getUsersCount(); - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - boolean containsUsers( - java.lang.String key); - /** - * Use {@link #getUsersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getUsers(); - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - java.util.Map - getUsersMap(); - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - lgraph.Lgraph.ProtoUserInfo getUsersOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoUserInfo defaultValue); - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - lgraph.Lgraph.ProtoUserInfo getUsersOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code lgraph.ListUserResponse} - */ - public static final class ListUserResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListUserResponse) - ListUserResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUserResponse.newBuilder() to construct. - private ListUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListUserResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListUserResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - users_ = com.google.protobuf.MapField.newMapField( - UsersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - users__ = input.readMessage( - UsersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - users_.getMutableMap().put( - users__.getKey(), users__.getValue()); - 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 lgraph.Lgraph.internal_static_lgraph_ListUserResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetUsers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListUserResponse.class, lgraph.Lgraph.ListUserResponse.Builder.class); - } - - public static final int USERS_FIELD_NUMBER = 1; - private static final class UsersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, lgraph.Lgraph.ProtoUserInfo> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - lgraph.Lgraph.internal_static_lgraph_ListUserResponse_UsersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - lgraph.Lgraph.ProtoUserInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, lgraph.Lgraph.ProtoUserInfo> users_; - private com.google.protobuf.MapField - internalGetUsers() { - if (users_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsersDefaultEntryHolder.defaultEntry); - } - return users_; - } - - public int getUsersCount() { - return internalGetUsers().getMap().size(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public boolean containsUsers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUsers().getMap().containsKey(key); - } - /** - * Use {@link #getUsersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUsers() { - return getUsersMap(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public java.util.Map getUsersMap() { - return internalGetUsers().getMap(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public lgraph.Lgraph.ProtoUserInfo getUsersOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoUserInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUsers().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public lgraph.Lgraph.ProtoUserInfo getUsersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUsers().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (lgraph.Lgraph.ProtoUserInfo item : getUsersMap().values()) { - if (!item.isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUsers(), - UsersDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetUsers().getMap().entrySet()) { - com.google.protobuf.MapEntry - users__ = UsersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, users__); - } - 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 lgraph.Lgraph.ListUserResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListUserResponse other = (lgraph.Lgraph.ListUserResponse) obj; - - boolean result = true; - result = result && internalGetUsers().equals( - other.internalGetUsers()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetUsers().getMap().isEmpty()) { - hash = (37 * hash) + USERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetUsers().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListUserResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListUserResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListUserResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserResponse 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 lgraph.Lgraph.ListUserResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserResponse 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 lgraph.Lgraph.ListUserResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListUserResponse 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(lgraph.Lgraph.ListUserResponse 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 lgraph.ListUserResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListUserResponse) - lgraph.Lgraph.ListUserResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListUserResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetUsers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableUsers(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListUserResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListUserResponse.class, lgraph.Lgraph.ListUserResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListUserResponse.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(); - internalGetMutableUsers().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListUserResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListUserResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListUserResponse build() { - lgraph.Lgraph.ListUserResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListUserResponse buildPartial() { - lgraph.Lgraph.ListUserResponse result = new lgraph.Lgraph.ListUserResponse(this); - int from_bitField0_ = bitField0_; - result.users_ = internalGetUsers(); - result.users_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListUserResponse) { - return mergeFrom((lgraph.Lgraph.ListUserResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListUserResponse other) { - if (other == lgraph.Lgraph.ListUserResponse.getDefaultInstance()) return this; - internalGetMutableUsers().mergeFrom( - other.internalGetUsers()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (lgraph.Lgraph.ProtoUserInfo item : getUsersMap().values()) { - if (!item.isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ListUserResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListUserResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, lgraph.Lgraph.ProtoUserInfo> users_; - private com.google.protobuf.MapField - internalGetUsers() { - if (users_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsersDefaultEntryHolder.defaultEntry); - } - return users_; - } - private com.google.protobuf.MapField - internalGetMutableUsers() { - onChanged();; - if (users_ == null) { - users_ = com.google.protobuf.MapField.newMapField( - UsersDefaultEntryHolder.defaultEntry); - } - if (!users_.isMutable()) { - users_ = users_.copy(); - } - return users_; - } - - public int getUsersCount() { - return internalGetUsers().getMap().size(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public boolean containsUsers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUsers().getMap().containsKey(key); - } - /** - * Use {@link #getUsersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUsers() { - return getUsersMap(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public java.util.Map getUsersMap() { - return internalGetUsers().getMap(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public lgraph.Lgraph.ProtoUserInfo getUsersOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoUserInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUsers().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public lgraph.Lgraph.ProtoUserInfo getUsersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUsers().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearUsers() { - internalGetMutableUsers().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public Builder removeUsers( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUsers().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUsers() { - return internalGetMutableUsers().getMutableMap(); - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - public Builder putUsers( - java.lang.String key, - lgraph.Lgraph.ProtoUserInfo value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUsers().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .lgraph.ProtoUserInfo> users = 1; - */ - - public Builder putAllUsers( - java.util.Map values) { - internalGetMutableUsers().getMutableMap() - .putAll(values); - 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:lgraph.ListUserResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListUserResponse) - private static final lgraph.Lgraph.ListUserResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListUserResponse(); - } - - public static lgraph.Lgraph.ListUserResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUserResponse(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 lgraph.Lgraph.ListUserResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoGraphAccessOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoGraphAccess) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - int getValuesCount(); - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - java.util.Map - getValuesMap(); - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - lgraph.Lgraph.ProtoAccessLevel getValuesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoAccessLevel defaultValue); - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - lgraph.Lgraph.ProtoAccessLevel getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * roles
-   * 
- * - * Protobuf type {@code lgraph.ProtoGraphAccess} - */ - public static final class ProtoGraphAccess extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoGraphAccess) - ProtoGraphAccessOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoGraphAccess.newBuilder() to construct. - private ProtoGraphAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoGraphAccess() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoGraphAccess( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.ByteString bytes = input.readBytes(); - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes); - if (lgraph.Lgraph.ProtoAccessLevel.forNumber(values__.getValue()) == null) { - unknownFields.mergeLengthDelimitedField(1, bytes); - } else { - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - } - 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 lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoGraphAccess.class, lgraph.Lgraph.ProtoGraphAccess.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - lgraph.Lgraph.ProtoAccessLevel.NONE.getNumber()); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, lgraph.Lgraph.ProtoAccessLevel> valuesValueConverter = - com.google.protobuf.Internal.MapAdapter.newEnumConverter( - lgraph.Lgraph.ProtoAccessLevel.internalGetValueMap(), - lgraph.Lgraph.ProtoAccessLevel.NONE); - private static final java.util.Map - internalGetAdaptedValuesMap( - java.util.Map map) { - return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, lgraph.Lgraph.ProtoAccessLevel, java.lang.Integer>( - map, valuesValueConverter); - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map - getValues() { - return getValuesMap(); - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public java.util.Map - getValuesMap() { - return internalGetAdaptedValuesMap( - internalGetValues().getMap());} - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public lgraph.Lgraph.ProtoAccessLevel getValuesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoAccessLevel defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) - ? valuesValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public lgraph.Lgraph.ProtoAccessLevel getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valuesValueConverter.doForward(map.get(key)); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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 lgraph.Lgraph.ProtoGraphAccess)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoGraphAccess other = (lgraph.Lgraph.ProtoGraphAccess) obj; - - boolean result = true; - result = result && internalGetValues().equals( - other.internalGetValues()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoGraphAccess parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoGraphAccess parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoGraphAccess 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 lgraph.Lgraph.ProtoGraphAccess parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoGraphAccess 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 lgraph.Lgraph.ProtoGraphAccess parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoGraphAccess 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(lgraph.Lgraph.ProtoGraphAccess 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; - } - /** - *
-     * roles
-     * 
- * - * Protobuf type {@code lgraph.ProtoGraphAccess} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoGraphAccess) - lgraph.Lgraph.ProtoGraphAccessOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoGraphAccess.class, lgraph.Lgraph.ProtoGraphAccess.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoGraphAccess.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoGraphAccess_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoGraphAccess getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoGraphAccess build() { - lgraph.Lgraph.ProtoGraphAccess result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoGraphAccess buildPartial() { - lgraph.Lgraph.ProtoGraphAccess result = new lgraph.Lgraph.ProtoGraphAccess(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoGraphAccess) { - return mergeFrom((lgraph.Lgraph.ProtoGraphAccess)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoGraphAccess other) { - if (other == lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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 { - lgraph.Lgraph.ProtoGraphAccess parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoGraphAccess) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map - getValues() { - return getValuesMap(); - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public java.util.Map - getValuesMap() { - return internalGetAdaptedValuesMap( - internalGetValues().getMap());} - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public lgraph.Lgraph.ProtoAccessLevel getValuesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoAccessLevel defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) - ? valuesValueConverter.doForward(map.get(key)) - : defaultValue; - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public lgraph.Lgraph.ProtoAccessLevel getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return valuesValueConverter.doForward(map.get(key)); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetAdaptedValuesMap( - internalGetMutableValues().getMutableMap()); - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - public Builder putValues( - java.lang.String key, - lgraph.Lgraph.ProtoAccessLevel value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, valuesValueConverter.doBackward(value)); - return this; - } - /** - * map<string, .lgraph.ProtoAccessLevel> values = 1; - */ - public Builder putAllValues( - java.util.Map values) { - internalGetAdaptedValuesMap( - internalGetMutableValues().getMutableMap()) - .putAll(values); - 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:lgraph.ProtoGraphAccess) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoGraphAccess) - private static final lgraph.Lgraph.ProtoGraphAccess DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoGraphAccess(); - } - - public static lgraph.Lgraph.ProtoGraphAccess getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoGraphAccess parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoGraphAccess(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 lgraph.Lgraph.ProtoGraphAccess getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string role = 1; - */ - boolean hasRole(); - /** - * required string role = 1; - */ - java.lang.String getRole(); - /** - * required string role = 1; - */ - com.google.protobuf.ByteString - getRoleBytes(); - - /** - * optional string desc = 2; - */ - boolean hasDesc(); - /** - * optional string desc = 2; - */ - java.lang.String getDesc(); - /** - * optional string desc = 2; - */ - com.google.protobuf.ByteString - getDescBytes(); - } - /** - * Protobuf type {@code lgraph.AddRoleRequest} - */ - public static final class AddRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddRoleRequest) - AddRoleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddRoleRequest.newBuilder() to construct. - private AddRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddRoleRequest() { - role_ = ""; - desc_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddRoleRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - role_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - desc_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_AddRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddRoleRequest.class, lgraph.Lgraph.AddRoleRequest.Builder.class); - } - - private int bitField0_; - public static final int ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object role_; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESC_FIELD_NUMBER = 2; - private volatile java.lang.Object desc_; - /** - * optional string desc = 2; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string desc = 2; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } - } - /** - * optional string desc = 2; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = 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; - - if (!hasRole()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, desc_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, desc_); - } - 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 lgraph.Lgraph.AddRoleRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AddRoleRequest other = (lgraph.Lgraph.AddRoleRequest) obj; - - boolean result = true; - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - result = result && (hasDesc() == other.hasDesc()); - if (hasDesc()) { - result = result && getDesc() - .equals(other.getDesc()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - if (hasDesc()) { - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + getDesc().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleRequest 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 lgraph.Lgraph.AddRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleRequest 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 lgraph.Lgraph.AddRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleRequest 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(lgraph.Lgraph.AddRoleRequest 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 lgraph.AddRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddRoleRequest) - lgraph.Lgraph.AddRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddRoleRequest.class, lgraph.Lgraph.AddRoleRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AddRoleRequest.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(); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleRequest build() { - lgraph.Lgraph.AddRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleRequest buildPartial() { - lgraph.Lgraph.AddRoleRequest result = new lgraph.Lgraph.AddRoleRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.role_ = role_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.desc_ = desc_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddRoleRequest) { - return mergeFrom((lgraph.Lgraph.AddRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddRoleRequest other) { - if (other == lgraph.Lgraph.AddRoleRequest.getDefaultInstance()) return this; - if (other.hasRole()) { - bitField0_ |= 0x00000001; - role_ = other.role_; - onChanged(); - } - if (other.hasDesc()) { - bitField0_ |= 0x00000002; - desc_ = other.desc_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRole()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AddRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object role_ = ""; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string role = 1; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000001); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - - private java.lang.Object desc_ = ""; - /** - * optional string desc = 2; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string desc = 2; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desc = 2; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desc = 2; - */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - desc_ = value; - onChanged(); - return this; - } - /** - * optional string desc = 2; - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000002); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * optional string desc = 2; - */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - desc_ = 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:lgraph.AddRoleRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddRoleRequest) - private static final lgraph.Lgraph.AddRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddRoleRequest(); - } - - public static lgraph.Lgraph.AddRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddRoleRequest(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 lgraph.Lgraph.AddRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddRoleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AddRoleResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.AddRoleResponse} - */ - public static final class AddRoleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AddRoleResponse) - AddRoleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddRoleResponse.newBuilder() to construct. - private AddRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddRoleResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddRoleResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_AddRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddRoleResponse.class, lgraph.Lgraph.AddRoleResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.AddRoleResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AddRoleResponse other = (lgraph.Lgraph.AddRoleResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AddRoleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AddRoleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleResponse 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 lgraph.Lgraph.AddRoleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleResponse 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 lgraph.Lgraph.AddRoleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AddRoleResponse 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(lgraph.Lgraph.AddRoleResponse 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 lgraph.AddRoleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AddRoleResponse) - lgraph.Lgraph.AddRoleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AddRoleResponse.class, lgraph.Lgraph.AddRoleResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AddRoleResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AddRoleResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleResponse build() { - lgraph.Lgraph.AddRoleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AddRoleResponse buildPartial() { - lgraph.Lgraph.AddRoleResponse result = new lgraph.Lgraph.AddRoleResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AddRoleResponse) { - return mergeFrom((lgraph.Lgraph.AddRoleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AddRoleResponse other) { - if (other == lgraph.Lgraph.AddRoleResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.AddRoleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AddRoleResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.AddRoleResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AddRoleResponse) - private static final lgraph.Lgraph.AddRoleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AddRoleResponse(); - } - - public static lgraph.Lgraph.AddRoleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddRoleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddRoleResponse(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 lgraph.Lgraph.AddRoleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string role = 1; - */ - boolean hasRole(); - /** - * required string role = 1; - */ - java.lang.String getRole(); - /** - * required string role = 1; - */ - com.google.protobuf.ByteString - getRoleBytes(); - } - /** - * Protobuf type {@code lgraph.DelRoleRequest} - */ - public static final class DelRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelRoleRequest) - DelRoleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelRoleRequest.newBuilder() to construct. - private DelRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelRoleRequest() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelRoleRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - role_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_DelRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelRoleRequest.class, lgraph.Lgraph.DelRoleRequest.Builder.class); - } - - private int bitField0_; - public static final int ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object role_; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = 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; - - if (!hasRole()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); - } - 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 lgraph.Lgraph.DelRoleRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelRoleRequest other = (lgraph.Lgraph.DelRoleRequest) obj; - - boolean result = true; - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleRequest 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 lgraph.Lgraph.DelRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleRequest 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 lgraph.Lgraph.DelRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleRequest 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(lgraph.Lgraph.DelRoleRequest 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 lgraph.DelRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelRoleRequest) - lgraph.Lgraph.DelRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelRoleRequest.class, lgraph.Lgraph.DelRoleRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelRoleRequest.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(); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleRequest build() { - lgraph.Lgraph.DelRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleRequest buildPartial() { - lgraph.Lgraph.DelRoleRequest result = new lgraph.Lgraph.DelRoleRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.role_ = role_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelRoleRequest) { - return mergeFrom((lgraph.Lgraph.DelRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelRoleRequest other) { - if (other == lgraph.Lgraph.DelRoleRequest.getDefaultInstance()) return this; - if (other.hasRole()) { - bitField0_ |= 0x00000001; - role_ = other.role_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRole()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object role_ = ""; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string role = 1; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000001); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = 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:lgraph.DelRoleRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelRoleRequest) - private static final lgraph.Lgraph.DelRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelRoleRequest(); - } - - public static lgraph.Lgraph.DelRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelRoleRequest(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 lgraph.Lgraph.DelRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelRoleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelRoleResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DelRoleResponse} - */ - public static final class DelRoleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelRoleResponse) - DelRoleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelRoleResponse.newBuilder() to construct. - private DelRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelRoleResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelRoleResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DelRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelRoleResponse.class, lgraph.Lgraph.DelRoleResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DelRoleResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelRoleResponse other = (lgraph.Lgraph.DelRoleResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelRoleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelRoleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleResponse 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 lgraph.Lgraph.DelRoleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleResponse 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 lgraph.Lgraph.DelRoleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelRoleResponse 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(lgraph.Lgraph.DelRoleResponse 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 lgraph.DelRoleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelRoleResponse) - lgraph.Lgraph.DelRoleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelRoleResponse.class, lgraph.Lgraph.DelRoleResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelRoleResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelRoleResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleResponse build() { - lgraph.Lgraph.DelRoleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelRoleResponse buildPartial() { - lgraph.Lgraph.DelRoleResponse result = new lgraph.Lgraph.DelRoleResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelRoleResponse) { - return mergeFrom((lgraph.Lgraph.DelRoleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelRoleResponse other) { - if (other == lgraph.Lgraph.DelRoleResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DelRoleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelRoleResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DelRoleResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelRoleResponse) - private static final lgraph.Lgraph.DelRoleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelRoleResponse(); - } - - public static lgraph.Lgraph.DelRoleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelRoleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelRoleResponse(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 lgraph.Lgraph.DelRoleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string role = 1; - */ - boolean hasRole(); - /** - * required string role = 1; - */ - java.lang.String getRole(); - /** - * required string role = 1; - */ - com.google.protobuf.ByteString - getRoleBytes(); - - /** - * optional string mod_desc = 2; - */ - boolean hasModDesc(); - /** - * optional string mod_desc = 2; - */ - java.lang.String getModDesc(); - /** - * optional string mod_desc = 2; - */ - com.google.protobuf.ByteString - getModDescBytes(); - - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - boolean hasSetFullGraphAccess(); - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - lgraph.Lgraph.ProtoGraphAccess getSetFullGraphAccess(); - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetFullGraphAccessOrBuilder(); - - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - boolean hasSetDiffGraphAccess(); - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - lgraph.Lgraph.ProtoGraphAccess getSetDiffGraphAccess(); - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetDiffGraphAccessOrBuilder(); - - /** - * optional bool enable = 5; - */ - boolean hasEnable(); - /** - * optional bool enable = 5; - */ - boolean getEnable(); - - /** - * optional bool disable = 6; - */ - boolean hasDisable(); - /** - * optional bool disable = 6; - */ - boolean getDisable(); - - public lgraph.Lgraph.ModRoleRequest.ActionCase getActionCase(); - } - /** - * Protobuf type {@code lgraph.ModRoleRequest} - */ - public static final class ModRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModRoleRequest) - ModRoleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModRoleRequest.newBuilder() to construct. - private ModRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModRoleRequest() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModRoleRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - role_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - actionCase_ = 2; - action_ = bs; - break; - } - case 26: { - lgraph.Lgraph.ProtoGraphAccess.Builder subBuilder = null; - if (actionCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ProtoGraphAccess) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.ProtoGraphAccess.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ProtoGraphAccess) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.ProtoGraphAccess.Builder subBuilder = null; - if (actionCase_ == 4) { - subBuilder = ((lgraph.Lgraph.ProtoGraphAccess) action_).toBuilder(); - } - action_ = - input.readMessage(lgraph.Lgraph.ProtoGraphAccess.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ProtoGraphAccess) action_); - action_ = subBuilder.buildPartial(); - } - actionCase_ = 4; - break; - } - case 40: { - actionCase_ = 5; - action_ = input.readBool(); - break; - } - case 48: { - actionCase_ = 6; - action_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_ModRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModRoleRequest.class, lgraph.Lgraph.ModRoleRequest.Builder.class); - } - - private int bitField0_; - private int actionCase_ = 0; - private java.lang.Object action_; - public enum ActionCase - implements com.google.protobuf.Internal.EnumLite { - MOD_DESC(2), - SET_FULL_GRAPH_ACCESS(3), - SET_DIFF_GRAPH_ACCESS(4), - ENABLE(5), - DISABLE(6), - ACTION_NOT_SET(0); - private final int value; - private ActionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: return MOD_DESC; - case 3: return SET_FULL_GRAPH_ACCESS; - case 4: return SET_DIFF_GRAPH_ACCESS; - case 5: return ENABLE; - case 6: return DISABLE; - case 0: return ACTION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public static final int ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object role_; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MOD_DESC_FIELD_NUMBER = 2; - /** - * optional string mod_desc = 2; - */ - public boolean hasModDesc() { - return actionCase_ == 2; - } - /** - * optional string mod_desc = 2; - */ - public java.lang.String getModDesc() { - java.lang.Object ref = ""; - if (actionCase_ == 2) { - ref = action_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (actionCase_ == 2)) { - action_ = s; - } - return s; - } - } - /** - * optional string mod_desc = 2; - */ - public com.google.protobuf.ByteString - getModDescBytes() { - java.lang.Object ref = ""; - if (actionCase_ == 2) { - ref = action_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (actionCase_ == 2) { - action_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SET_FULL_GRAPH_ACCESS_FIELD_NUMBER = 3; - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public boolean hasSetFullGraphAccess() { - return actionCase_ == 3; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess getSetFullGraphAccess() { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetFullGraphAccessOrBuilder() { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - - public static final int SET_DIFF_GRAPH_ACCESS_FIELD_NUMBER = 4; - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public boolean hasSetDiffGraphAccess() { - return actionCase_ == 4; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public lgraph.Lgraph.ProtoGraphAccess getSetDiffGraphAccess() { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetDiffGraphAccessOrBuilder() { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - - public static final int ENABLE_FIELD_NUMBER = 5; - /** - * optional bool enable = 5; - */ - public boolean hasEnable() { - return actionCase_ == 5; - } - /** - * optional bool enable = 5; - */ - public boolean getEnable() { - if (actionCase_ == 5) { - return (java.lang.Boolean) action_; - } - return false; - } - - public static final int DISABLE_FIELD_NUMBER = 6; - /** - * optional bool disable = 6; - */ - public boolean hasDisable() { - return actionCase_ == 6; - } - /** - * optional bool disable = 6; - */ - public boolean getDisable() { - if (actionCase_ == 6) { - return (java.lang.Boolean) action_; - } - return false; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRole()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); - } - if (actionCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_); - } - if (actionCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ProtoGraphAccess) action_); - } - if (actionCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.ProtoGraphAccess) action_); - } - if (actionCase_ == 5) { - output.writeBool( - 5, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) action_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); - } - if (actionCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_); - } - if (actionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ProtoGraphAccess) action_); - } - if (actionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.ProtoGraphAccess) action_); - } - if (actionCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 5, (boolean)((java.lang.Boolean) action_)); - } - if (actionCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) action_)); - } - 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 lgraph.Lgraph.ModRoleRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ModRoleRequest other = (lgraph.Lgraph.ModRoleRequest) obj; - - boolean result = true; - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - result = result && getActionCase().equals( - other.getActionCase()); - if (!result) return false; - switch (actionCase_) { - case 2: - result = result && getModDesc() - .equals(other.getModDesc()); - break; - case 3: - result = result && getSetFullGraphAccess() - .equals(other.getSetFullGraphAccess()); - break; - case 4: - result = result && getSetDiffGraphAccess() - .equals(other.getSetDiffGraphAccess()); - break; - case 5: - result = result && (getEnable() - == other.getEnable()); - break; - case 6: - result = result && (getDisable() - == other.getDisable()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - switch (actionCase_) { - case 2: - hash = (37 * hash) + MOD_DESC_FIELD_NUMBER; - hash = (53 * hash) + getModDesc().hashCode(); - break; - case 3: - hash = (37 * hash) + SET_FULL_GRAPH_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + getSetFullGraphAccess().hashCode(); - break; - case 4: - hash = (37 * hash) + SET_DIFF_GRAPH_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + getSetDiffGraphAccess().hashCode(); - break; - case 5: - hash = (37 * hash) + ENABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnable()); - break; - case 6: - hash = (37 * hash) + DISABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisable()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleRequest 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 lgraph.Lgraph.ModRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleRequest 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 lgraph.Lgraph.ModRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleRequest 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(lgraph.Lgraph.ModRoleRequest 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 lgraph.ModRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModRoleRequest) - lgraph.Lgraph.ModRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModRoleRequest.class, lgraph.Lgraph.ModRoleRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ModRoleRequest.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(); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - actionCase_ = 0; - action_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleRequest build() { - lgraph.Lgraph.ModRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleRequest buildPartial() { - lgraph.Lgraph.ModRoleRequest result = new lgraph.Lgraph.ModRoleRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.role_ = role_; - if (actionCase_ == 2) { - result.action_ = action_; - } - if (actionCase_ == 3) { - if (setFullGraphAccessBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = setFullGraphAccessBuilder_.build(); - } - } - if (actionCase_ == 4) { - if (setDiffGraphAccessBuilder_ == null) { - result.action_ = action_; - } else { - result.action_ = setDiffGraphAccessBuilder_.build(); - } - } - if (actionCase_ == 5) { - result.action_ = action_; - } - if (actionCase_ == 6) { - result.action_ = action_; - } - result.bitField0_ = to_bitField0_; - result.actionCase_ = actionCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModRoleRequest) { - return mergeFrom((lgraph.Lgraph.ModRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModRoleRequest other) { - if (other == lgraph.Lgraph.ModRoleRequest.getDefaultInstance()) return this; - if (other.hasRole()) { - bitField0_ |= 0x00000001; - role_ = other.role_; - onChanged(); - } - switch (other.getActionCase()) { - case MOD_DESC: { - actionCase_ = 2; - action_ = other.action_; - onChanged(); - break; - } - case SET_FULL_GRAPH_ACCESS: { - mergeSetFullGraphAccess(other.getSetFullGraphAccess()); - break; - } - case SET_DIFF_GRAPH_ACCESS: { - mergeSetDiffGraphAccess(other.getSetDiffGraphAccess()); - break; - } - case ENABLE: { - setEnable(other.getEnable()); - break; - } - case DISABLE: { - setDisable(other.getDisable()); - break; - } - case ACTION_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRole()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ModRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int actionCase_ = 0; - private java.lang.Object action_; - public ActionCase - getActionCase() { - return ActionCase.forNumber( - actionCase_); - } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object role_ = ""; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string role = 1; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000001); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - - /** - * optional string mod_desc = 2; - */ - public boolean hasModDesc() { - return actionCase_ == 2; - } - /** - * optional string mod_desc = 2; - */ - public java.lang.String getModDesc() { - java.lang.Object ref = ""; - if (actionCase_ == 2) { - ref = action_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (actionCase_ == 2) { - if (bs.isValidUtf8()) { - action_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string mod_desc = 2; - */ - public com.google.protobuf.ByteString - getModDescBytes() { - java.lang.Object ref = ""; - if (actionCase_ == 2) { - ref = action_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (actionCase_ == 2) { - action_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string mod_desc = 2; - */ - public Builder setModDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - actionCase_ = 2; - action_ = value; - onChanged(); - return this; - } - /** - * optional string mod_desc = 2; - */ - public Builder clearModDesc() { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - return this; - } - /** - * optional string mod_desc = 2; - */ - public Builder setModDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - actionCase_ = 2; - action_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> setFullGraphAccessBuilder_; - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public boolean hasSetFullGraphAccess() { - return actionCase_ == 3; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess getSetFullGraphAccess() { - if (setFullGraphAccessBuilder_ == null) { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } else { - if (actionCase_ == 3) { - return setFullGraphAccessBuilder_.getMessage(); - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public Builder setSetFullGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (setFullGraphAccessBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - setFullGraphAccessBuilder_.setMessage(value); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public Builder setSetFullGraphAccess( - lgraph.Lgraph.ProtoGraphAccess.Builder builderForValue) { - if (setFullGraphAccessBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - setFullGraphAccessBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public Builder mergeSetFullGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (setFullGraphAccessBuilder_ == null) { - if (actionCase_ == 3 && - action_ != lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance()) { - action_ = lgraph.Lgraph.ProtoGraphAccess.newBuilder((lgraph.Lgraph.ProtoGraphAccess) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 3) { - setFullGraphAccessBuilder_.mergeFrom(value); - } - setFullGraphAccessBuilder_.setMessage(value); - } - actionCase_ = 3; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public Builder clearSetFullGraphAccess() { - if (setFullGraphAccessBuilder_ == null) { - if (actionCase_ == 3) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 3) { - actionCase_ = 0; - action_ = null; - } - setFullGraphAccessBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess.Builder getSetFullGraphAccessBuilder() { - return getSetFullGraphAccessFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetFullGraphAccessOrBuilder() { - if ((actionCase_ == 3) && (setFullGraphAccessBuilder_ != null)) { - return setFullGraphAccessBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 3) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - } - /** - * optional .lgraph.ProtoGraphAccess set_full_graph_access = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> - getSetFullGraphAccessFieldBuilder() { - if (setFullGraphAccessBuilder_ == null) { - if (!(actionCase_ == 3)) { - action_ = lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - setFullGraphAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder>( - (lgraph.Lgraph.ProtoGraphAccess) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 3; - onChanged();; - return setFullGraphAccessBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> setDiffGraphAccessBuilder_; - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public boolean hasSetDiffGraphAccess() { - return actionCase_ == 4; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public lgraph.Lgraph.ProtoGraphAccess getSetDiffGraphAccess() { - if (setDiffGraphAccessBuilder_ == null) { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } else { - if (actionCase_ == 4) { - return setDiffGraphAccessBuilder_.getMessage(); - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public Builder setSetDiffGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (setDiffGraphAccessBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - setDiffGraphAccessBuilder_.setMessage(value); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public Builder setSetDiffGraphAccess( - lgraph.Lgraph.ProtoGraphAccess.Builder builderForValue) { - if (setDiffGraphAccessBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - setDiffGraphAccessBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public Builder mergeSetDiffGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (setDiffGraphAccessBuilder_ == null) { - if (actionCase_ == 4 && - action_ != lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance()) { - action_ = lgraph.Lgraph.ProtoGraphAccess.newBuilder((lgraph.Lgraph.ProtoGraphAccess) action_) - .mergeFrom(value).buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 4) { - setDiffGraphAccessBuilder_.mergeFrom(value); - } - setDiffGraphAccessBuilder_.setMessage(value); - } - actionCase_ = 4; - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public Builder clearSetDiffGraphAccess() { - if (setDiffGraphAccessBuilder_ == null) { - if (actionCase_ == 4) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 4) { - actionCase_ = 0; - action_ = null; - } - setDiffGraphAccessBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public lgraph.Lgraph.ProtoGraphAccess.Builder getSetDiffGraphAccessBuilder() { - return getSetDiffGraphAccessFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getSetDiffGraphAccessOrBuilder() { - if ((actionCase_ == 4) && (setDiffGraphAccessBuilder_ != null)) { - return setDiffGraphAccessBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 4) { - return (lgraph.Lgraph.ProtoGraphAccess) action_; - } - return lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - } - /** - * optional .lgraph.ProtoGraphAccess set_diff_graph_access = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> - getSetDiffGraphAccessFieldBuilder() { - if (setDiffGraphAccessBuilder_ == null) { - if (!(actionCase_ == 4)) { - action_ = lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance(); - } - setDiffGraphAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder>( - (lgraph.Lgraph.ProtoGraphAccess) action_, - getParentForChildren(), - isClean()); - action_ = null; - } - actionCase_ = 4; - onChanged();; - return setDiffGraphAccessBuilder_; - } - - /** - * optional bool enable = 5; - */ - public boolean hasEnable() { - return actionCase_ == 5; - } - /** - * optional bool enable = 5; - */ - public boolean getEnable() { - if (actionCase_ == 5) { - return (java.lang.Boolean) action_; - } - return false; - } - /** - * optional bool enable = 5; - */ - public Builder setEnable(boolean value) { - actionCase_ = 5; - action_ = value; - onChanged(); - return this; - } - /** - * optional bool enable = 5; - */ - public Builder clearEnable() { - if (actionCase_ == 5) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - return this; - } - - /** - * optional bool disable = 6; - */ - public boolean hasDisable() { - return actionCase_ == 6; - } - /** - * optional bool disable = 6; - */ - public boolean getDisable() { - if (actionCase_ == 6) { - return (java.lang.Boolean) action_; - } - return false; - } - /** - * optional bool disable = 6; - */ - public Builder setDisable(boolean value) { - actionCase_ = 6; - action_ = value; - onChanged(); - return this; - } - /** - * optional bool disable = 6; - */ - public Builder clearDisable() { - if (actionCase_ == 6) { - actionCase_ = 0; - action_ = null; - 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:lgraph.ModRoleRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModRoleRequest) - private static final lgraph.Lgraph.ModRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModRoleRequest(); - } - - public static lgraph.Lgraph.ModRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModRoleRequest(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 lgraph.Lgraph.ModRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ModRoleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ModRoleResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ModRoleResponse} - */ - public static final class ModRoleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ModRoleResponse) - ModRoleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ModRoleResponse.newBuilder() to construct. - private ModRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ModRoleResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ModRoleResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ModRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModRoleResponse.class, lgraph.Lgraph.ModRoleResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ModRoleResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ModRoleResponse other = (lgraph.Lgraph.ModRoleResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ModRoleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ModRoleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleResponse 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 lgraph.Lgraph.ModRoleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleResponse 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 lgraph.Lgraph.ModRoleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ModRoleResponse 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(lgraph.Lgraph.ModRoleResponse 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 lgraph.ModRoleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ModRoleResponse) - lgraph.Lgraph.ModRoleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ModRoleResponse.class, lgraph.Lgraph.ModRoleResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ModRoleResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ModRoleResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleResponse build() { - lgraph.Lgraph.ModRoleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ModRoleResponse buildPartial() { - lgraph.Lgraph.ModRoleResponse result = new lgraph.Lgraph.ModRoleResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ModRoleResponse) { - return mergeFrom((lgraph.Lgraph.ModRoleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ModRoleResponse other) { - if (other == lgraph.Lgraph.ModRoleResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ModRoleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ModRoleResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ModRoleResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ModRoleResponse) - private static final lgraph.Lgraph.ModRoleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ModRoleResponse(); - } - - public static lgraph.Lgraph.ModRoleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModRoleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ModRoleResponse(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 lgraph.Lgraph.ModRoleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetRoleInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetRoleInfoRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string role = 1; - */ - boolean hasRole(); - /** - * required string role = 1; - */ - java.lang.String getRole(); - /** - * required string role = 1; - */ - com.google.protobuf.ByteString - getRoleBytes(); - } - /** - * Protobuf type {@code lgraph.GetRoleInfoRequest} - */ - public static final class GetRoleInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetRoleInfoRequest) - GetRoleInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRoleInfoRequest.newBuilder() to construct. - private GetRoleInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetRoleInfoRequest() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetRoleInfoRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - role_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_GetRoleInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetRoleInfoRequest.class, lgraph.Lgraph.GetRoleInfoRequest.Builder.class); - } - - private int bitField0_; - public static final int ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object role_; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = 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; - - if (!hasRole()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, role_); - } - 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 lgraph.Lgraph.GetRoleInfoRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GetRoleInfoRequest other = (lgraph.Lgraph.GetRoleInfoRequest) obj; - - boolean result = true; - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoRequest 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 lgraph.Lgraph.GetRoleInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoRequest 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 lgraph.Lgraph.GetRoleInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoRequest 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(lgraph.Lgraph.GetRoleInfoRequest 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 lgraph.GetRoleInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetRoleInfoRequest) - lgraph.Lgraph.GetRoleInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetRoleInfoRequest.class, lgraph.Lgraph.GetRoleInfoRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GetRoleInfoRequest.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(); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoRequest build() { - lgraph.Lgraph.GetRoleInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoRequest buildPartial() { - lgraph.Lgraph.GetRoleInfoRequest result = new lgraph.Lgraph.GetRoleInfoRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.role_ = role_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetRoleInfoRequest) { - return mergeFrom((lgraph.Lgraph.GetRoleInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetRoleInfoRequest other) { - if (other == lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance()) return this; - if (other.hasRole()) { - bitField0_ |= 0x00000001; - role_ = other.role_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRole()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetRoleInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetRoleInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object role_ = ""; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - role_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string role = 1; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000001); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = 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:lgraph.GetRoleInfoRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetRoleInfoRequest) - private static final lgraph.Lgraph.GetRoleInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetRoleInfoRequest(); - } - - public static lgraph.Lgraph.GetRoleInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRoleInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRoleInfoRequest(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 lgraph.Lgraph.GetRoleInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtoRoleInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ProtoRoleInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * required bool is_disabled = 1; - */ - boolean hasIsDisabled(); - /** - * required bool is_disabled = 1; - */ - boolean getIsDisabled(); - - /** - * required string desc = 2; - */ - boolean hasDesc(); - /** - * required string desc = 2; - */ - java.lang.String getDesc(); - /** - * required string desc = 2; - */ - com.google.protobuf.ByteString - getDescBytes(); - - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - boolean hasGraphAccess(); - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - lgraph.Lgraph.ProtoGraphAccess getGraphAccess(); - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - lgraph.Lgraph.ProtoGraphAccessOrBuilder getGraphAccessOrBuilder(); - } - /** - * Protobuf type {@code lgraph.ProtoRoleInfo} - */ - public static final class ProtoRoleInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ProtoRoleInfo) - ProtoRoleInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtoRoleInfo.newBuilder() to construct. - private ProtoRoleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtoRoleInfo() { - isDisabled_ = false; - desc_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtoRoleInfo( - 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 8: { - bitField0_ |= 0x00000001; - isDisabled_ = input.readBool(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - desc_ = bs; - break; - } - case 26: { - lgraph.Lgraph.ProtoGraphAccess.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = graphAccess_.toBuilder(); - } - graphAccess_ = input.readMessage(lgraph.Lgraph.ProtoGraphAccess.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(graphAccess_); - graphAccess_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - 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 lgraph.Lgraph.internal_static_lgraph_ProtoRoleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoRoleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoRoleInfo.class, lgraph.Lgraph.ProtoRoleInfo.Builder.class); - } - - private int bitField0_; - public static final int IS_DISABLED_FIELD_NUMBER = 1; - private boolean isDisabled_; - /** - * required bool is_disabled = 1; - */ - public boolean hasIsDisabled() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_disabled = 1; - */ - public boolean getIsDisabled() { - return isDisabled_; - } - - public static final int DESC_FIELD_NUMBER = 2; - private volatile java.lang.Object desc_; - /** - * required string desc = 2; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string desc = 2; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } - } - /** - * required string desc = 2; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRAPH_ACCESS_FIELD_NUMBER = 3; - private lgraph.Lgraph.ProtoGraphAccess graphAccess_; - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public boolean hasGraphAccess() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess getGraphAccess() { - return graphAccess_ == null ? lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance() : graphAccess_; - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getGraphAccessOrBuilder() { - return graphAccess_ == null ? lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance() : graphAccess_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasIsDisabled()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDesc()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasGraphAccess()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, isDisabled_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, desc_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, getGraphAccess()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isDisabled_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, desc_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGraphAccess()); - } - 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 lgraph.Lgraph.ProtoRoleInfo)) { - return super.equals(obj); - } - lgraph.Lgraph.ProtoRoleInfo other = (lgraph.Lgraph.ProtoRoleInfo) obj; - - boolean result = true; - result = result && (hasIsDisabled() == other.hasIsDisabled()); - if (hasIsDisabled()) { - result = result && (getIsDisabled() - == other.getIsDisabled()); - } - result = result && (hasDesc() == other.hasDesc()); - if (hasDesc()) { - result = result && getDesc() - .equals(other.getDesc()); - } - result = result && (hasGraphAccess() == other.hasGraphAccess()); - if (hasGraphAccess()) { - result = result && getGraphAccess() - .equals(other.getGraphAccess()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsDisabled()) { - hash = (37 * hash) + IS_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDisabled()); - } - if (hasDesc()) { - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + getDesc().hashCode(); - } - if (hasGraphAccess()) { - hash = (37 * hash) + GRAPH_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + getGraphAccess().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ProtoRoleInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ProtoRoleInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoRoleInfo 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 lgraph.Lgraph.ProtoRoleInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoRoleInfo 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 lgraph.Lgraph.ProtoRoleInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ProtoRoleInfo 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(lgraph.Lgraph.ProtoRoleInfo 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 lgraph.ProtoRoleInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ProtoRoleInfo) - lgraph.Lgraph.ProtoRoleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ProtoRoleInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ProtoRoleInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ProtoRoleInfo.class, lgraph.Lgraph.ProtoRoleInfo.Builder.class); - } - - // Construct using lgraph.Lgraph.ProtoRoleInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getGraphAccessFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isDisabled_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (graphAccessBuilder_ == null) { - graphAccess_ = null; - } else { - graphAccessBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ProtoRoleInfo_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoRoleInfo getDefaultInstanceForType() { - return lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ProtoRoleInfo build() { - lgraph.Lgraph.ProtoRoleInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ProtoRoleInfo buildPartial() { - lgraph.Lgraph.ProtoRoleInfo result = new lgraph.Lgraph.ProtoRoleInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.isDisabled_ = isDisabled_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.desc_ = desc_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (graphAccessBuilder_ == null) { - result.graphAccess_ = graphAccess_; - } else { - result.graphAccess_ = graphAccessBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ProtoRoleInfo) { - return mergeFrom((lgraph.Lgraph.ProtoRoleInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ProtoRoleInfo other) { - if (other == lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance()) return this; - if (other.hasIsDisabled()) { - setIsDisabled(other.getIsDisabled()); - } - if (other.hasDesc()) { - bitField0_ |= 0x00000002; - desc_ = other.desc_; - onChanged(); - } - if (other.hasGraphAccess()) { - mergeGraphAccess(other.getGraphAccess()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIsDisabled()) { - return false; - } - if (!hasDesc()) { - return false; - } - if (!hasGraphAccess()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ProtoRoleInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ProtoRoleInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isDisabled_ ; - /** - * required bool is_disabled = 1; - */ - public boolean hasIsDisabled() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool is_disabled = 1; - */ - public boolean getIsDisabled() { - return isDisabled_; - } - /** - * required bool is_disabled = 1; - */ - public Builder setIsDisabled(boolean value) { - bitField0_ |= 0x00000001; - isDisabled_ = value; - onChanged(); - return this; - } - /** - * required bool is_disabled = 1; - */ - public Builder clearIsDisabled() { - bitField0_ = (bitField0_ & ~0x00000001); - isDisabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object desc_ = ""; - /** - * required string desc = 2; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string desc = 2; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string desc = 2; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string desc = 2; - */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - desc_ = value; - onChanged(); - return this; - } - /** - * required string desc = 2; - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000002); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * required string desc = 2; - */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - desc_ = value; - onChanged(); - return this; - } - - private lgraph.Lgraph.ProtoGraphAccess graphAccess_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> graphAccessBuilder_; - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public boolean hasGraphAccess() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess getGraphAccess() { - if (graphAccessBuilder_ == null) { - return graphAccess_ == null ? lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance() : graphAccess_; - } else { - return graphAccessBuilder_.getMessage(); - } - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public Builder setGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (graphAccessBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - graphAccess_ = value; - onChanged(); - } else { - graphAccessBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public Builder setGraphAccess( - lgraph.Lgraph.ProtoGraphAccess.Builder builderForValue) { - if (graphAccessBuilder_ == null) { - graphAccess_ = builderForValue.build(); - onChanged(); - } else { - graphAccessBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public Builder mergeGraphAccess(lgraph.Lgraph.ProtoGraphAccess value) { - if (graphAccessBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - graphAccess_ != null && - graphAccess_ != lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance()) { - graphAccess_ = - lgraph.Lgraph.ProtoGraphAccess.newBuilder(graphAccess_).mergeFrom(value).buildPartial(); - } else { - graphAccess_ = value; - } - onChanged(); - } else { - graphAccessBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public Builder clearGraphAccess() { - if (graphAccessBuilder_ == null) { - graphAccess_ = null; - onChanged(); - } else { - graphAccessBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccess.Builder getGraphAccessBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getGraphAccessFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - public lgraph.Lgraph.ProtoGraphAccessOrBuilder getGraphAccessOrBuilder() { - if (graphAccessBuilder_ != null) { - return graphAccessBuilder_.getMessageOrBuilder(); - } else { - return graphAccess_ == null ? - lgraph.Lgraph.ProtoGraphAccess.getDefaultInstance() : graphAccess_; - } - } - /** - * required .lgraph.ProtoGraphAccess graph_access = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder> - getGraphAccessFieldBuilder() { - if (graphAccessBuilder_ == null) { - graphAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoGraphAccess, lgraph.Lgraph.ProtoGraphAccess.Builder, lgraph.Lgraph.ProtoGraphAccessOrBuilder>( - getGraphAccess(), - getParentForChildren(), - isClean()); - graphAccess_ = null; - } - return graphAccessBuilder_; - } - @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:lgraph.ProtoRoleInfo) - } - - // @@protoc_insertion_point(class_scope:lgraph.ProtoRoleInfo) - private static final lgraph.Lgraph.ProtoRoleInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ProtoRoleInfo(); - } - - public static lgraph.Lgraph.ProtoRoleInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoRoleInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtoRoleInfo(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 lgraph.Lgraph.ProtoRoleInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetRoleInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetRoleInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - boolean hasInfo(); - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - lgraph.Lgraph.ProtoRoleInfo getInfo(); - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - lgraph.Lgraph.ProtoRoleInfoOrBuilder getInfoOrBuilder(); - } - /** - * Protobuf type {@code lgraph.GetRoleInfoResponse} - */ - public static final class GetRoleInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetRoleInfoResponse) - GetRoleInfoResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetRoleInfoResponse.newBuilder() to construct. - private GetRoleInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetRoleInfoResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetRoleInfoResponse( - 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: { - lgraph.Lgraph.ProtoRoleInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = info_.toBuilder(); - } - info_ = input.readMessage(lgraph.Lgraph.ProtoRoleInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(info_); - info_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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 lgraph.Lgraph.internal_static_lgraph_GetRoleInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetRoleInfoResponse.class, lgraph.Lgraph.GetRoleInfoResponse.Builder.class); - } - - private int bitField0_; - public static final int INFO_FIELD_NUMBER = 1; - private lgraph.Lgraph.ProtoRoleInfo info_; - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public boolean hasInfo() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public lgraph.Lgraph.ProtoRoleInfo getInfo() { - return info_ == null ? lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance() : info_; - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public lgraph.Lgraph.ProtoRoleInfoOrBuilder getInfoOrBuilder() { - return info_ == null ? lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance() : info_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!getInfo().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getInfo()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInfo()); - } - 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 lgraph.Lgraph.GetRoleInfoResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GetRoleInfoResponse other = (lgraph.Lgraph.GetRoleInfoResponse) obj; - - boolean result = true; - result = result && (hasInfo() == other.hasInfo()); - if (hasInfo()) { - result = result && getInfo() - .equals(other.getInfo()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInfo()) { - hash = (37 * hash) + INFO_FIELD_NUMBER; - hash = (53 * hash) + getInfo().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetRoleInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoResponse 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 lgraph.Lgraph.GetRoleInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoResponse 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 lgraph.Lgraph.GetRoleInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetRoleInfoResponse 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(lgraph.Lgraph.GetRoleInfoResponse 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 lgraph.GetRoleInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetRoleInfoResponse) - lgraph.Lgraph.GetRoleInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetRoleInfoResponse.class, lgraph.Lgraph.GetRoleInfoResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GetRoleInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (infoBuilder_ == null) { - info_ = null; - } else { - infoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetRoleInfoResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoResponse build() { - lgraph.Lgraph.GetRoleInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetRoleInfoResponse buildPartial() { - lgraph.Lgraph.GetRoleInfoResponse result = new lgraph.Lgraph.GetRoleInfoResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (infoBuilder_ == null) { - result.info_ = info_; - } else { - result.info_ = infoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetRoleInfoResponse) { - return mergeFrom((lgraph.Lgraph.GetRoleInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetRoleInfoResponse other) { - if (other == lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance()) return this; - if (other.hasInfo()) { - mergeInfo(other.getInfo()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasInfo()) { - return false; - } - if (!getInfo().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetRoleInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetRoleInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private lgraph.Lgraph.ProtoRoleInfo info_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoRoleInfo, lgraph.Lgraph.ProtoRoleInfo.Builder, lgraph.Lgraph.ProtoRoleInfoOrBuilder> infoBuilder_; - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public boolean hasInfo() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public lgraph.Lgraph.ProtoRoleInfo getInfo() { - if (infoBuilder_ == null) { - return info_ == null ? lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance() : info_; - } else { - return infoBuilder_.getMessage(); - } - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public Builder setInfo(lgraph.Lgraph.ProtoRoleInfo value) { - if (infoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - info_ = value; - onChanged(); - } else { - infoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public Builder setInfo( - lgraph.Lgraph.ProtoRoleInfo.Builder builderForValue) { - if (infoBuilder_ == null) { - info_ = builderForValue.build(); - onChanged(); - } else { - infoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public Builder mergeInfo(lgraph.Lgraph.ProtoRoleInfo value) { - if (infoBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - info_ != null && - info_ != lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance()) { - info_ = - lgraph.Lgraph.ProtoRoleInfo.newBuilder(info_).mergeFrom(value).buildPartial(); - } else { - info_ = value; - } - onChanged(); - } else { - infoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public Builder clearInfo() { - if (infoBuilder_ == null) { - info_ = null; - onChanged(); - } else { - infoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public lgraph.Lgraph.ProtoRoleInfo.Builder getInfoBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getInfoFieldBuilder().getBuilder(); - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - public lgraph.Lgraph.ProtoRoleInfoOrBuilder getInfoOrBuilder() { - if (infoBuilder_ != null) { - return infoBuilder_.getMessageOrBuilder(); - } else { - return info_ == null ? - lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance() : info_; - } - } - /** - * required .lgraph.ProtoRoleInfo info = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoRoleInfo, lgraph.Lgraph.ProtoRoleInfo.Builder, lgraph.Lgraph.ProtoRoleInfoOrBuilder> - getInfoFieldBuilder() { - if (infoBuilder_ == null) { - infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ProtoRoleInfo, lgraph.Lgraph.ProtoRoleInfo.Builder, lgraph.Lgraph.ProtoRoleInfoOrBuilder>( - getInfo(), - getParentForChildren(), - isClean()); - info_ = null; - } - return infoBuilder_; - } - @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:lgraph.GetRoleInfoResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetRoleInfoResponse) - private static final lgraph.Lgraph.GetRoleInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetRoleInfoResponse(); - } - - public static lgraph.Lgraph.GetRoleInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRoleInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRoleInfoResponse(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 lgraph.Lgraph.GetRoleInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListRoleRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListRoleRequest} - */ - public static final class ListRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListRoleRequest) - ListRoleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRoleRequest.newBuilder() to construct. - private ListRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRoleRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRoleRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListRoleRequest.class, lgraph.Lgraph.ListRoleRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListRoleRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListRoleRequest other = (lgraph.Lgraph.ListRoleRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleRequest 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 lgraph.Lgraph.ListRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleRequest 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 lgraph.Lgraph.ListRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleRequest 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(lgraph.Lgraph.ListRoleRequest 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 lgraph.ListRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListRoleRequest) - lgraph.Lgraph.ListRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListRoleRequest.class, lgraph.Lgraph.ListRoleRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListRoleRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleRequest build() { - lgraph.Lgraph.ListRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleRequest buildPartial() { - lgraph.Lgraph.ListRoleRequest result = new lgraph.Lgraph.ListRoleRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListRoleRequest) { - return mergeFrom((lgraph.Lgraph.ListRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListRoleRequest other) { - if (other == lgraph.Lgraph.ListRoleRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListRoleRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListRoleRequest) - private static final lgraph.Lgraph.ListRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListRoleRequest(); - } - - public static lgraph.Lgraph.ListRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRoleRequest(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 lgraph.Lgraph.ListRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListRoleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListRoleResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - int getRolesCount(); - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - boolean containsRoles( - java.lang.String key); - /** - * Use {@link #getRolesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRoles(); - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - java.util.Map - getRolesMap(); - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - lgraph.Lgraph.ProtoRoleInfo getRolesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoRoleInfo defaultValue); - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - lgraph.Lgraph.ProtoRoleInfo getRolesOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code lgraph.ListRoleResponse} - */ - public static final class ListRoleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListRoleResponse) - ListRoleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListRoleResponse.newBuilder() to construct. - private ListRoleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRoleResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRoleResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - roles_ = com.google.protobuf.MapField.newMapField( - RolesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - roles__ = input.readMessage( - RolesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - roles_.getMutableMap().put( - roles__.getKey(), roles__.getValue()); - 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 lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRoles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListRoleResponse.class, lgraph.Lgraph.ListRoleResponse.Builder.class); - } - - public static final int ROLES_FIELD_NUMBER = 1; - private static final class RolesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, lgraph.Lgraph.ProtoRoleInfo> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_RolesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - lgraph.Lgraph.ProtoRoleInfo.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, lgraph.Lgraph.ProtoRoleInfo> roles_; - private com.google.protobuf.MapField - internalGetRoles() { - if (roles_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RolesDefaultEntryHolder.defaultEntry); - } - return roles_; - } - - public int getRolesCount() { - return internalGetRoles().getMap().size(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public boolean containsRoles( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRoles().getMap().containsKey(key); - } - /** - * Use {@link #getRolesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRoles() { - return getRolesMap(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public java.util.Map getRolesMap() { - return internalGetRoles().getMap(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public lgraph.Lgraph.ProtoRoleInfo getRolesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoRoleInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRoles().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public lgraph.Lgraph.ProtoRoleInfo getRolesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRoles().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (lgraph.Lgraph.ProtoRoleInfo item : getRolesMap().values()) { - if (!item.isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRoles(), - RolesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRoles().getMap().entrySet()) { - com.google.protobuf.MapEntry - roles__ = RolesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, roles__); - } - 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 lgraph.Lgraph.ListRoleResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListRoleResponse other = (lgraph.Lgraph.ListRoleResponse) obj; - - boolean result = true; - result = result && internalGetRoles().equals( - other.internalGetRoles()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetRoles().getMap().isEmpty()) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetRoles().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListRoleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListRoleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleResponse 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 lgraph.Lgraph.ListRoleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleResponse 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 lgraph.Lgraph.ListRoleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListRoleResponse 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(lgraph.Lgraph.ListRoleResponse 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 lgraph.ListRoleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListRoleResponse) - lgraph.Lgraph.ListRoleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRoles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRoles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListRoleResponse.class, lgraph.Lgraph.ListRoleResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListRoleResponse.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(); - internalGetMutableRoles().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListRoleResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleResponse build() { - lgraph.Lgraph.ListRoleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListRoleResponse buildPartial() { - lgraph.Lgraph.ListRoleResponse result = new lgraph.Lgraph.ListRoleResponse(this); - int from_bitField0_ = bitField0_; - result.roles_ = internalGetRoles(); - result.roles_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListRoleResponse) { - return mergeFrom((lgraph.Lgraph.ListRoleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListRoleResponse other) { - if (other == lgraph.Lgraph.ListRoleResponse.getDefaultInstance()) return this; - internalGetMutableRoles().mergeFrom( - other.internalGetRoles()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (lgraph.Lgraph.ProtoRoleInfo item : getRolesMap().values()) { - if (!item.isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ListRoleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListRoleResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, lgraph.Lgraph.ProtoRoleInfo> roles_; - private com.google.protobuf.MapField - internalGetRoles() { - if (roles_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RolesDefaultEntryHolder.defaultEntry); - } - return roles_; - } - private com.google.protobuf.MapField - internalGetMutableRoles() { - onChanged();; - if (roles_ == null) { - roles_ = com.google.protobuf.MapField.newMapField( - RolesDefaultEntryHolder.defaultEntry); - } - if (!roles_.isMutable()) { - roles_ = roles_.copy(); - } - return roles_; - } - - public int getRolesCount() { - return internalGetRoles().getMap().size(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public boolean containsRoles( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRoles().getMap().containsKey(key); - } - /** - * Use {@link #getRolesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRoles() { - return getRolesMap(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public java.util.Map getRolesMap() { - return internalGetRoles().getMap(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public lgraph.Lgraph.ProtoRoleInfo getRolesOrDefault( - java.lang.String key, - lgraph.Lgraph.ProtoRoleInfo defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRoles().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public lgraph.Lgraph.ProtoRoleInfo getRolesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRoles().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRoles() { - internalGetMutableRoles().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public Builder removeRoles( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRoles().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRoles() { - return internalGetMutableRoles().getMutableMap(); - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - public Builder putRoles( - java.lang.String key, - lgraph.Lgraph.ProtoRoleInfo value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRoles().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .lgraph.ProtoRoleInfo> roles = 1; - */ - - public Builder putAllRoles( - java.util.Map values) { - internalGetMutableRoles().getMutableMap() - .putAll(values); - 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:lgraph.ListRoleResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListRoleResponse) - private static final lgraph.Lgraph.ListRoleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListRoleResponse(); - } - - public static lgraph.Lgraph.ListRoleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRoleResponse(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 lgraph.Lgraph.ListRoleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AclRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AclRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - boolean hasAuthRequest(); - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - lgraph.Lgraph.AuthRequest getAuthRequest(); - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - lgraph.Lgraph.AuthRequestOrBuilder getAuthRequestOrBuilder(); - - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - boolean hasAddUserRequest(); - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - lgraph.Lgraph.AddUserRequest getAddUserRequest(); - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - lgraph.Lgraph.AddUserRequestOrBuilder getAddUserRequestOrBuilder(); - - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - boolean hasModUserRequest(); - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - lgraph.Lgraph.ModUserRequest getModUserRequest(); - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - lgraph.Lgraph.ModUserRequestOrBuilder getModUserRequestOrBuilder(); - - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - boolean hasDelUserRequest(); - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - lgraph.Lgraph.DelUserRequest getDelUserRequest(); - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - lgraph.Lgraph.DelUserRequestOrBuilder getDelUserRequestOrBuilder(); - - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - boolean hasListUserInfoRequest(); - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - lgraph.Lgraph.GetUserInfoRequest getListUserInfoRequest(); - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - lgraph.Lgraph.GetUserInfoRequestOrBuilder getListUserInfoRequestOrBuilder(); - - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - boolean hasAddRoleRequest(); - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - lgraph.Lgraph.AddRoleRequest getAddRoleRequest(); - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - lgraph.Lgraph.AddRoleRequestOrBuilder getAddRoleRequestOrBuilder(); - - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - boolean hasModRoleRequest(); - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - lgraph.Lgraph.ModRoleRequest getModRoleRequest(); - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - lgraph.Lgraph.ModRoleRequestOrBuilder getModRoleRequestOrBuilder(); - - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - boolean hasDelRoleRequest(); - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - lgraph.Lgraph.DelRoleRequest getDelRoleRequest(); - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - lgraph.Lgraph.DelRoleRequestOrBuilder getDelRoleRequestOrBuilder(); - - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - boolean hasListRoleInfoRequest(); - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - lgraph.Lgraph.GetRoleInfoRequest getListRoleInfoRequest(); - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - lgraph.Lgraph.GetRoleInfoRequestOrBuilder getListRoleInfoRequestOrBuilder(); - - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - boolean hasListUserRequest(); - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - lgraph.Lgraph.ListUserRequest getListUserRequest(); - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - lgraph.Lgraph.ListUserRequestOrBuilder getListUserRequestOrBuilder(); - - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - boolean hasListRoleRequest(); - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - lgraph.Lgraph.ListRoleRequest getListRoleRequest(); - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - lgraph.Lgraph.ListRoleRequestOrBuilder getListRoleRequestOrBuilder(); - - public lgraph.Lgraph.AclRequest.ReqCase getReqCase(); - } - /** - * Protobuf type {@code lgraph.AclRequest} - */ - public static final class AclRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AclRequest) - AclRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AclRequest.newBuilder() to construct. - private AclRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AclRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AclRequest( - 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: { - lgraph.Lgraph.AuthRequest.Builder subBuilder = null; - if (reqCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AuthRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AuthRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AuthRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.AddUserRequest.Builder subBuilder = null; - if (reqCase_ == 2) { - subBuilder = ((lgraph.Lgraph.AddUserRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddUserRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddUserRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.ModUserRequest.Builder subBuilder = null; - if (reqCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ModUserRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ModUserRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModUserRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.DelUserRequest.Builder subBuilder = null; - if (reqCase_ == 4) { - subBuilder = ((lgraph.Lgraph.DelUserRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelUserRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelUserRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.GetUserInfoRequest.Builder subBuilder = null; - if (reqCase_ == 5) { - subBuilder = ((lgraph.Lgraph.GetUserInfoRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.GetUserInfoRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetUserInfoRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 5; - break; - } - case 50: { - lgraph.Lgraph.AddRoleRequest.Builder subBuilder = null; - if (reqCase_ == 6) { - subBuilder = ((lgraph.Lgraph.AddRoleRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AddRoleRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddRoleRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 6; - break; - } - case 58: { - lgraph.Lgraph.ModRoleRequest.Builder subBuilder = null; - if (reqCase_ == 7) { - subBuilder = ((lgraph.Lgraph.ModRoleRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ModRoleRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModRoleRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 7; - break; - } - case 66: { - lgraph.Lgraph.DelRoleRequest.Builder subBuilder = null; - if (reqCase_ == 8) { - subBuilder = ((lgraph.Lgraph.DelRoleRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelRoleRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelRoleRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 8; - break; - } - case 74: { - lgraph.Lgraph.GetRoleInfoRequest.Builder subBuilder = null; - if (reqCase_ == 9) { - subBuilder = ((lgraph.Lgraph.GetRoleInfoRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.GetRoleInfoRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetRoleInfoRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 9; - break; - } - case 82: { - lgraph.Lgraph.ListUserRequest.Builder subBuilder = null; - if (reqCase_ == 10) { - subBuilder = ((lgraph.Lgraph.ListUserRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ListUserRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListUserRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 10; - break; - } - case 90: { - lgraph.Lgraph.ListRoleRequest.Builder subBuilder = null; - if (reqCase_ == 11) { - subBuilder = ((lgraph.Lgraph.ListRoleRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ListRoleRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListRoleRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 11; - 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 lgraph.Lgraph.internal_static_lgraph_AclRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AclRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AclRequest.class, lgraph.Lgraph.AclRequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - AUTH_REQUEST(1), - ADD_USER_REQUEST(2), - MOD_USER_REQUEST(3), - DEL_USER_REQUEST(4), - LIST_USER_INFO_REQUEST(5), - ADD_ROLE_REQUEST(6), - MOD_ROLE_REQUEST(7), - DEL_ROLE_REQUEST(8), - LIST_ROLE_INFO_REQUEST(9), - LIST_USER_REQUEST(10), - LIST_ROLE_REQUEST(11), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 1: return AUTH_REQUEST; - case 2: return ADD_USER_REQUEST; - case 3: return MOD_USER_REQUEST; - case 4: return DEL_USER_REQUEST; - case 5: return LIST_USER_INFO_REQUEST; - case 6: return ADD_ROLE_REQUEST; - case 7: return MOD_ROLE_REQUEST; - case 8: return DEL_ROLE_REQUEST; - case 9: return LIST_ROLE_INFO_REQUEST; - case 10: return LIST_USER_REQUEST; - case 11: return LIST_ROLE_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int AUTH_REQUEST_FIELD_NUMBER = 1; - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public boolean hasAuthRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public lgraph.Lgraph.AuthRequest getAuthRequest() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AuthRequest) req_; - } - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public lgraph.Lgraph.AuthRequestOrBuilder getAuthRequestOrBuilder() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AuthRequest) req_; - } - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - - public static final int ADD_USER_REQUEST_FIELD_NUMBER = 2; - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public boolean hasAddUserRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public lgraph.Lgraph.AddUserRequest getAddUserRequest() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddUserRequest) req_; - } - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public lgraph.Lgraph.AddUserRequestOrBuilder getAddUserRequestOrBuilder() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddUserRequest) req_; - } - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - - public static final int MOD_USER_REQUEST_FIELD_NUMBER = 3; - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public boolean hasModUserRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public lgraph.Lgraph.ModUserRequest getModUserRequest() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ModUserRequest) req_; - } - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public lgraph.Lgraph.ModUserRequestOrBuilder getModUserRequestOrBuilder() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ModUserRequest) req_; - } - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - - public static final int DEL_USER_REQUEST_FIELD_NUMBER = 4; - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public boolean hasDelUserRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public lgraph.Lgraph.DelUserRequest getDelUserRequest() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.DelUserRequest) req_; - } - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public lgraph.Lgraph.DelUserRequestOrBuilder getDelUserRequestOrBuilder() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.DelUserRequest) req_; - } - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - - public static final int LIST_USER_INFO_REQUEST_FIELD_NUMBER = 5; - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public boolean hasListUserInfoRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public lgraph.Lgraph.GetUserInfoRequest getListUserInfoRequest() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoRequest) req_; - } - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public lgraph.Lgraph.GetUserInfoRequestOrBuilder getListUserInfoRequestOrBuilder() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoRequest) req_; - } - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - - public static final int ADD_ROLE_REQUEST_FIELD_NUMBER = 6; - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public boolean hasAddRoleRequest() { - return reqCase_ == 6; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public lgraph.Lgraph.AddRoleRequest getAddRoleRequest() { - if (reqCase_ == 6) { - return (lgraph.Lgraph.AddRoleRequest) req_; - } - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public lgraph.Lgraph.AddRoleRequestOrBuilder getAddRoleRequestOrBuilder() { - if (reqCase_ == 6) { - return (lgraph.Lgraph.AddRoleRequest) req_; - } - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - - public static final int MOD_ROLE_REQUEST_FIELD_NUMBER = 7; - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public boolean hasModRoleRequest() { - return reqCase_ == 7; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public lgraph.Lgraph.ModRoleRequest getModRoleRequest() { - if (reqCase_ == 7) { - return (lgraph.Lgraph.ModRoleRequest) req_; - } - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public lgraph.Lgraph.ModRoleRequestOrBuilder getModRoleRequestOrBuilder() { - if (reqCase_ == 7) { - return (lgraph.Lgraph.ModRoleRequest) req_; - } - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - - public static final int DEL_ROLE_REQUEST_FIELD_NUMBER = 8; - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public boolean hasDelRoleRequest() { - return reqCase_ == 8; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public lgraph.Lgraph.DelRoleRequest getDelRoleRequest() { - if (reqCase_ == 8) { - return (lgraph.Lgraph.DelRoleRequest) req_; - } - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public lgraph.Lgraph.DelRoleRequestOrBuilder getDelRoleRequestOrBuilder() { - if (reqCase_ == 8) { - return (lgraph.Lgraph.DelRoleRequest) req_; - } - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - - public static final int LIST_ROLE_INFO_REQUEST_FIELD_NUMBER = 9; - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public boolean hasListRoleInfoRequest() { - return reqCase_ == 9; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public lgraph.Lgraph.GetRoleInfoRequest getListRoleInfoRequest() { - if (reqCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoRequest) req_; - } - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public lgraph.Lgraph.GetRoleInfoRequestOrBuilder getListRoleInfoRequestOrBuilder() { - if (reqCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoRequest) req_; - } - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - - public static final int LIST_USER_REQUEST_FIELD_NUMBER = 10; - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public boolean hasListUserRequest() { - return reqCase_ == 10; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public lgraph.Lgraph.ListUserRequest getListUserRequest() { - if (reqCase_ == 10) { - return (lgraph.Lgraph.ListUserRequest) req_; - } - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public lgraph.Lgraph.ListUserRequestOrBuilder getListUserRequestOrBuilder() { - if (reqCase_ == 10) { - return (lgraph.Lgraph.ListUserRequest) req_; - } - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - - public static final int LIST_ROLE_REQUEST_FIELD_NUMBER = 11; - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public boolean hasListRoleRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public lgraph.Lgraph.ListRoleRequest getListRoleRequest() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.ListRoleRequest) req_; - } - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public lgraph.Lgraph.ListRoleRequestOrBuilder getListRoleRequestOrBuilder() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.ListRoleRequest) req_; - } - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasAuthRequest()) { - if (!getAuthRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAddUserRequest()) { - if (!getAddUserRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasModUserRequest()) { - if (!getModUserRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelUserRequest()) { - if (!getDelUserRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListUserInfoRequest()) { - if (!getListUserInfoRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAddRoleRequest()) { - if (!getAddRoleRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasModRoleRequest()) { - if (!getModRoleRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelRoleRequest()) { - if (!getDelRoleRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListRoleInfoRequest()) { - if (!getListRoleInfoRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reqCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AuthRequest) req_); - } - if (reqCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.AddUserRequest) req_); - } - if (reqCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ModUserRequest) req_); - } - if (reqCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.DelUserRequest) req_); - } - if (reqCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.GetUserInfoRequest) req_); - } - if (reqCase_ == 6) { - output.writeMessage(6, (lgraph.Lgraph.AddRoleRequest) req_); - } - if (reqCase_ == 7) { - output.writeMessage(7, (lgraph.Lgraph.ModRoleRequest) req_); - } - if (reqCase_ == 8) { - output.writeMessage(8, (lgraph.Lgraph.DelRoleRequest) req_); - } - if (reqCase_ == 9) { - output.writeMessage(9, (lgraph.Lgraph.GetRoleInfoRequest) req_); - } - if (reqCase_ == 10) { - output.writeMessage(10, (lgraph.Lgraph.ListUserRequest) req_); - } - if (reqCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.ListRoleRequest) req_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reqCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AuthRequest) req_); - } - if (reqCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.AddUserRequest) req_); - } - if (reqCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ModUserRequest) req_); - } - if (reqCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.DelUserRequest) req_); - } - if (reqCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.GetUserInfoRequest) req_); - } - if (reqCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (lgraph.Lgraph.AddRoleRequest) req_); - } - if (reqCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (lgraph.Lgraph.ModRoleRequest) req_); - } - if (reqCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (lgraph.Lgraph.DelRoleRequest) req_); - } - if (reqCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (lgraph.Lgraph.GetRoleInfoRequest) req_); - } - if (reqCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (lgraph.Lgraph.ListUserRequest) req_); - } - if (reqCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.ListRoleRequest) req_); - } - 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 lgraph.Lgraph.AclRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.AclRequest other = (lgraph.Lgraph.AclRequest) obj; - - boolean result = true; - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 1: - result = result && getAuthRequest() - .equals(other.getAuthRequest()); - break; - case 2: - result = result && getAddUserRequest() - .equals(other.getAddUserRequest()); - break; - case 3: - result = result && getModUserRequest() - .equals(other.getModUserRequest()); - break; - case 4: - result = result && getDelUserRequest() - .equals(other.getDelUserRequest()); - break; - case 5: - result = result && getListUserInfoRequest() - .equals(other.getListUserInfoRequest()); - break; - case 6: - result = result && getAddRoleRequest() - .equals(other.getAddRoleRequest()); - break; - case 7: - result = result && getModRoleRequest() - .equals(other.getModRoleRequest()); - break; - case 8: - result = result && getDelRoleRequest() - .equals(other.getDelRoleRequest()); - break; - case 9: - result = result && getListRoleInfoRequest() - .equals(other.getListRoleInfoRequest()); - break; - case 10: - result = result && getListUserRequest() - .equals(other.getListUserRequest()); - break; - case 11: - result = result && getListRoleRequest() - .equals(other.getListRoleRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reqCase_) { - case 1: - hash = (37 * hash) + AUTH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAuthRequest().hashCode(); - break; - case 2: - hash = (37 * hash) + ADD_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddUserRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + MOD_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getModUserRequest().hashCode(); - break; - case 4: - hash = (37 * hash) + DEL_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelUserRequest().hashCode(); - break; - case 5: - hash = (37 * hash) + LIST_USER_INFO_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListUserInfoRequest().hashCode(); - break; - case 6: - hash = (37 * hash) + ADD_ROLE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAddRoleRequest().hashCode(); - break; - case 7: - hash = (37 * hash) + MOD_ROLE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getModRoleRequest().hashCode(); - break; - case 8: - hash = (37 * hash) + DEL_ROLE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelRoleRequest().hashCode(); - break; - case 9: - hash = (37 * hash) + LIST_ROLE_INFO_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListRoleInfoRequest().hashCode(); - break; - case 10: - hash = (37 * hash) + LIST_USER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListUserRequest().hashCode(); - break; - case 11: - hash = (37 * hash) + LIST_ROLE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListRoleRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AclRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclRequest 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 lgraph.Lgraph.AclRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclRequest 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 lgraph.Lgraph.AclRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclRequest 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(lgraph.Lgraph.AclRequest 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 lgraph.AclRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AclRequest) - lgraph.Lgraph.AclRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AclRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AclRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AclRequest.class, lgraph.Lgraph.AclRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.AclRequest.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(); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AclRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AclRequest getDefaultInstanceForType() { - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AclRequest build() { - lgraph.Lgraph.AclRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AclRequest buildPartial() { - lgraph.Lgraph.AclRequest result = new lgraph.Lgraph.AclRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (reqCase_ == 1) { - if (authRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = authRequestBuilder_.build(); - } - } - if (reqCase_ == 2) { - if (addUserRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addUserRequestBuilder_.build(); - } - } - if (reqCase_ == 3) { - if (modUserRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = modUserRequestBuilder_.build(); - } - } - if (reqCase_ == 4) { - if (delUserRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delUserRequestBuilder_.build(); - } - } - if (reqCase_ == 5) { - if (listUserInfoRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listUserInfoRequestBuilder_.build(); - } - } - if (reqCase_ == 6) { - if (addRoleRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = addRoleRequestBuilder_.build(); - } - } - if (reqCase_ == 7) { - if (modRoleRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = modRoleRequestBuilder_.build(); - } - } - if (reqCase_ == 8) { - if (delRoleRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delRoleRequestBuilder_.build(); - } - } - if (reqCase_ == 9) { - if (listRoleInfoRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listRoleInfoRequestBuilder_.build(); - } - } - if (reqCase_ == 10) { - if (listUserRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listUserRequestBuilder_.build(); - } - } - if (reqCase_ == 11) { - if (listRoleRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listRoleRequestBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AclRequest) { - return mergeFrom((lgraph.Lgraph.AclRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AclRequest other) { - if (other == lgraph.Lgraph.AclRequest.getDefaultInstance()) return this; - switch (other.getReqCase()) { - case AUTH_REQUEST: { - mergeAuthRequest(other.getAuthRequest()); - break; - } - case ADD_USER_REQUEST: { - mergeAddUserRequest(other.getAddUserRequest()); - break; - } - case MOD_USER_REQUEST: { - mergeModUserRequest(other.getModUserRequest()); - break; - } - case DEL_USER_REQUEST: { - mergeDelUserRequest(other.getDelUserRequest()); - break; - } - case LIST_USER_INFO_REQUEST: { - mergeListUserInfoRequest(other.getListUserInfoRequest()); - break; - } - case ADD_ROLE_REQUEST: { - mergeAddRoleRequest(other.getAddRoleRequest()); - break; - } - case MOD_ROLE_REQUEST: { - mergeModRoleRequest(other.getModRoleRequest()); - break; - } - case DEL_ROLE_REQUEST: { - mergeDelRoleRequest(other.getDelRoleRequest()); - break; - } - case LIST_ROLE_INFO_REQUEST: { - mergeListRoleInfoRequest(other.getListRoleInfoRequest()); - break; - } - case LIST_USER_REQUEST: { - mergeListUserRequest(other.getListUserRequest()); - break; - } - case LIST_ROLE_REQUEST: { - mergeListRoleRequest(other.getListRoleRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasAuthRequest()) { - if (!getAuthRequest().isInitialized()) { - return false; - } - } - if (hasAddUserRequest()) { - if (!getAddUserRequest().isInitialized()) { - return false; - } - } - if (hasModUserRequest()) { - if (!getModUserRequest().isInitialized()) { - return false; - } - } - if (hasDelUserRequest()) { - if (!getDelUserRequest().isInitialized()) { - return false; - } - } - if (hasListUserInfoRequest()) { - if (!getListUserInfoRequest().isInitialized()) { - return false; - } - } - if (hasAddRoleRequest()) { - if (!getAddRoleRequest().isInitialized()) { - return false; - } - } - if (hasModRoleRequest()) { - if (!getModRoleRequest().isInitialized()) { - return false; - } - } - if (hasDelRoleRequest()) { - if (!getDelRoleRequest().isInitialized()) { - return false; - } - } - if (hasListRoleInfoRequest()) { - if (!getListRoleInfoRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AclRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AclRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthRequest, lgraph.Lgraph.AuthRequest.Builder, lgraph.Lgraph.AuthRequestOrBuilder> authRequestBuilder_; - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public boolean hasAuthRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public lgraph.Lgraph.AuthRequest getAuthRequest() { - if (authRequestBuilder_ == null) { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AuthRequest) req_; - } - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } else { - if (reqCase_ == 1) { - return authRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public Builder setAuthRequest(lgraph.Lgraph.AuthRequest value) { - if (authRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - authRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public Builder setAuthRequest( - lgraph.Lgraph.AuthRequest.Builder builderForValue) { - if (authRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - authRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public Builder mergeAuthRequest(lgraph.Lgraph.AuthRequest value) { - if (authRequestBuilder_ == null) { - if (reqCase_ == 1 && - req_ != lgraph.Lgraph.AuthRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AuthRequest.newBuilder((lgraph.Lgraph.AuthRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 1) { - authRequestBuilder_.mergeFrom(value); - } - authRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public Builder clearAuthRequest() { - if (authRequestBuilder_ == null) { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - } - authRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public lgraph.Lgraph.AuthRequest.Builder getAuthRequestBuilder() { - return getAuthRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - public lgraph.Lgraph.AuthRequestOrBuilder getAuthRequestOrBuilder() { - if ((reqCase_ == 1) && (authRequestBuilder_ != null)) { - return authRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 1) { - return (lgraph.Lgraph.AuthRequest) req_; - } - return lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AuthRequest auth_request = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthRequest, lgraph.Lgraph.AuthRequest.Builder, lgraph.Lgraph.AuthRequestOrBuilder> - getAuthRequestFieldBuilder() { - if (authRequestBuilder_ == null) { - if (!(reqCase_ == 1)) { - req_ = lgraph.Lgraph.AuthRequest.getDefaultInstance(); - } - authRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthRequest, lgraph.Lgraph.AuthRequest.Builder, lgraph.Lgraph.AuthRequestOrBuilder>( - (lgraph.Lgraph.AuthRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 1; - onChanged();; - return authRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserRequest, lgraph.Lgraph.AddUserRequest.Builder, lgraph.Lgraph.AddUserRequestOrBuilder> addUserRequestBuilder_; - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public boolean hasAddUserRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public lgraph.Lgraph.AddUserRequest getAddUserRequest() { - if (addUserRequestBuilder_ == null) { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddUserRequest) req_; - } - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } else { - if (reqCase_ == 2) { - return addUserRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public Builder setAddUserRequest(lgraph.Lgraph.AddUserRequest value) { - if (addUserRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addUserRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public Builder setAddUserRequest( - lgraph.Lgraph.AddUserRequest.Builder builderForValue) { - if (addUserRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addUserRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public Builder mergeAddUserRequest(lgraph.Lgraph.AddUserRequest value) { - if (addUserRequestBuilder_ == null) { - if (reqCase_ == 2 && - req_ != lgraph.Lgraph.AddUserRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddUserRequest.newBuilder((lgraph.Lgraph.AddUserRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 2) { - addUserRequestBuilder_.mergeFrom(value); - } - addUserRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public Builder clearAddUserRequest() { - if (addUserRequestBuilder_ == null) { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - } - addUserRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public lgraph.Lgraph.AddUserRequest.Builder getAddUserRequestBuilder() { - return getAddUserRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - public lgraph.Lgraph.AddUserRequestOrBuilder getAddUserRequestOrBuilder() { - if ((reqCase_ == 2) && (addUserRequestBuilder_ != null)) { - return addUserRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 2) { - return (lgraph.Lgraph.AddUserRequest) req_; - } - return lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddUserRequest add_user_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserRequest, lgraph.Lgraph.AddUserRequest.Builder, lgraph.Lgraph.AddUserRequestOrBuilder> - getAddUserRequestFieldBuilder() { - if (addUserRequestBuilder_ == null) { - if (!(reqCase_ == 2)) { - req_ = lgraph.Lgraph.AddUserRequest.getDefaultInstance(); - } - addUserRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserRequest, lgraph.Lgraph.AddUserRequest.Builder, lgraph.Lgraph.AddUserRequestOrBuilder>( - (lgraph.Lgraph.AddUserRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 2; - onChanged();; - return addUserRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserRequest, lgraph.Lgraph.ModUserRequest.Builder, lgraph.Lgraph.ModUserRequestOrBuilder> modUserRequestBuilder_; - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public boolean hasModUserRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public lgraph.Lgraph.ModUserRequest getModUserRequest() { - if (modUserRequestBuilder_ == null) { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ModUserRequest) req_; - } - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } else { - if (reqCase_ == 3) { - return modUserRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public Builder setModUserRequest(lgraph.Lgraph.ModUserRequest value) { - if (modUserRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - modUserRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public Builder setModUserRequest( - lgraph.Lgraph.ModUserRequest.Builder builderForValue) { - if (modUserRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - modUserRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public Builder mergeModUserRequest(lgraph.Lgraph.ModUserRequest value) { - if (modUserRequestBuilder_ == null) { - if (reqCase_ == 3 && - req_ != lgraph.Lgraph.ModUserRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ModUserRequest.newBuilder((lgraph.Lgraph.ModUserRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 3) { - modUserRequestBuilder_.mergeFrom(value); - } - modUserRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public Builder clearModUserRequest() { - if (modUserRequestBuilder_ == null) { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - } - modUserRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public lgraph.Lgraph.ModUserRequest.Builder getModUserRequestBuilder() { - return getModUserRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - public lgraph.Lgraph.ModUserRequestOrBuilder getModUserRequestOrBuilder() { - if ((reqCase_ == 3) && (modUserRequestBuilder_ != null)) { - return modUserRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 3) { - return (lgraph.Lgraph.ModUserRequest) req_; - } - return lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModUserRequest mod_user_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserRequest, lgraph.Lgraph.ModUserRequest.Builder, lgraph.Lgraph.ModUserRequestOrBuilder> - getModUserRequestFieldBuilder() { - if (modUserRequestBuilder_ == null) { - if (!(reqCase_ == 3)) { - req_ = lgraph.Lgraph.ModUserRequest.getDefaultInstance(); - } - modUserRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserRequest, lgraph.Lgraph.ModUserRequest.Builder, lgraph.Lgraph.ModUserRequestOrBuilder>( - (lgraph.Lgraph.ModUserRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 3; - onChanged();; - return modUserRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserRequest, lgraph.Lgraph.DelUserRequest.Builder, lgraph.Lgraph.DelUserRequestOrBuilder> delUserRequestBuilder_; - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public boolean hasDelUserRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public lgraph.Lgraph.DelUserRequest getDelUserRequest() { - if (delUserRequestBuilder_ == null) { - if (reqCase_ == 4) { - return (lgraph.Lgraph.DelUserRequest) req_; - } - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } else { - if (reqCase_ == 4) { - return delUserRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public Builder setDelUserRequest(lgraph.Lgraph.DelUserRequest value) { - if (delUserRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delUserRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public Builder setDelUserRequest( - lgraph.Lgraph.DelUserRequest.Builder builderForValue) { - if (delUserRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delUserRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public Builder mergeDelUserRequest(lgraph.Lgraph.DelUserRequest value) { - if (delUserRequestBuilder_ == null) { - if (reqCase_ == 4 && - req_ != lgraph.Lgraph.DelUserRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelUserRequest.newBuilder((lgraph.Lgraph.DelUserRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 4) { - delUserRequestBuilder_.mergeFrom(value); - } - delUserRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public Builder clearDelUserRequest() { - if (delUserRequestBuilder_ == null) { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - } - delUserRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public lgraph.Lgraph.DelUserRequest.Builder getDelUserRequestBuilder() { - return getDelUserRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - public lgraph.Lgraph.DelUserRequestOrBuilder getDelUserRequestOrBuilder() { - if ((reqCase_ == 4) && (delUserRequestBuilder_ != null)) { - return delUserRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 4) { - return (lgraph.Lgraph.DelUserRequest) req_; - } - return lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelUserRequest del_user_request = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserRequest, lgraph.Lgraph.DelUserRequest.Builder, lgraph.Lgraph.DelUserRequestOrBuilder> - getDelUserRequestFieldBuilder() { - if (delUserRequestBuilder_ == null) { - if (!(reqCase_ == 4)) { - req_ = lgraph.Lgraph.DelUserRequest.getDefaultInstance(); - } - delUserRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserRequest, lgraph.Lgraph.DelUserRequest.Builder, lgraph.Lgraph.DelUserRequestOrBuilder>( - (lgraph.Lgraph.DelUserRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 4; - onChanged();; - return delUserRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoRequest, lgraph.Lgraph.GetUserInfoRequest.Builder, lgraph.Lgraph.GetUserInfoRequestOrBuilder> listUserInfoRequestBuilder_; - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public boolean hasListUserInfoRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public lgraph.Lgraph.GetUserInfoRequest getListUserInfoRequest() { - if (listUserInfoRequestBuilder_ == null) { - if (reqCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoRequest) req_; - } - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } else { - if (reqCase_ == 5) { - return listUserInfoRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public Builder setListUserInfoRequest(lgraph.Lgraph.GetUserInfoRequest value) { - if (listUserInfoRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listUserInfoRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public Builder setListUserInfoRequest( - lgraph.Lgraph.GetUserInfoRequest.Builder builderForValue) { - if (listUserInfoRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listUserInfoRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public Builder mergeListUserInfoRequest(lgraph.Lgraph.GetUserInfoRequest value) { - if (listUserInfoRequestBuilder_ == null) { - if (reqCase_ == 5 && - req_ != lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.GetUserInfoRequest.newBuilder((lgraph.Lgraph.GetUserInfoRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 5) { - listUserInfoRequestBuilder_.mergeFrom(value); - } - listUserInfoRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public Builder clearListUserInfoRequest() { - if (listUserInfoRequestBuilder_ == null) { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - } - listUserInfoRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public lgraph.Lgraph.GetUserInfoRequest.Builder getListUserInfoRequestBuilder() { - return getListUserInfoRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - public lgraph.Lgraph.GetUserInfoRequestOrBuilder getListUserInfoRequestOrBuilder() { - if ((reqCase_ == 5) && (listUserInfoRequestBuilder_ != null)) { - return listUserInfoRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoRequest) req_; - } - return lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetUserInfoRequest list_user_info_request = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoRequest, lgraph.Lgraph.GetUserInfoRequest.Builder, lgraph.Lgraph.GetUserInfoRequestOrBuilder> - getListUserInfoRequestFieldBuilder() { - if (listUserInfoRequestBuilder_ == null) { - if (!(reqCase_ == 5)) { - req_ = lgraph.Lgraph.GetUserInfoRequest.getDefaultInstance(); - } - listUserInfoRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoRequest, lgraph.Lgraph.GetUserInfoRequest.Builder, lgraph.Lgraph.GetUserInfoRequestOrBuilder>( - (lgraph.Lgraph.GetUserInfoRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 5; - onChanged();; - return listUserInfoRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleRequest, lgraph.Lgraph.AddRoleRequest.Builder, lgraph.Lgraph.AddRoleRequestOrBuilder> addRoleRequestBuilder_; - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public boolean hasAddRoleRequest() { - return reqCase_ == 6; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public lgraph.Lgraph.AddRoleRequest getAddRoleRequest() { - if (addRoleRequestBuilder_ == null) { - if (reqCase_ == 6) { - return (lgraph.Lgraph.AddRoleRequest) req_; - } - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } else { - if (reqCase_ == 6) { - return addRoleRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public Builder setAddRoleRequest(lgraph.Lgraph.AddRoleRequest value) { - if (addRoleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - addRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public Builder setAddRoleRequest( - lgraph.Lgraph.AddRoleRequest.Builder builderForValue) { - if (addRoleRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - addRoleRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public Builder mergeAddRoleRequest(lgraph.Lgraph.AddRoleRequest value) { - if (addRoleRequestBuilder_ == null) { - if (reqCase_ == 6 && - req_ != lgraph.Lgraph.AddRoleRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AddRoleRequest.newBuilder((lgraph.Lgraph.AddRoleRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 6) { - addRoleRequestBuilder_.mergeFrom(value); - } - addRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public Builder clearAddRoleRequest() { - if (addRoleRequestBuilder_ == null) { - if (reqCase_ == 6) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 6) { - reqCase_ = 0; - req_ = null; - } - addRoleRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public lgraph.Lgraph.AddRoleRequest.Builder getAddRoleRequestBuilder() { - return getAddRoleRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - public lgraph.Lgraph.AddRoleRequestOrBuilder getAddRoleRequestOrBuilder() { - if ((reqCase_ == 6) && (addRoleRequestBuilder_ != null)) { - return addRoleRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 6) { - return (lgraph.Lgraph.AddRoleRequest) req_; - } - return lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddRoleRequest add_role_request = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleRequest, lgraph.Lgraph.AddRoleRequest.Builder, lgraph.Lgraph.AddRoleRequestOrBuilder> - getAddRoleRequestFieldBuilder() { - if (addRoleRequestBuilder_ == null) { - if (!(reqCase_ == 6)) { - req_ = lgraph.Lgraph.AddRoleRequest.getDefaultInstance(); - } - addRoleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleRequest, lgraph.Lgraph.AddRoleRequest.Builder, lgraph.Lgraph.AddRoleRequestOrBuilder>( - (lgraph.Lgraph.AddRoleRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 6; - onChanged();; - return addRoleRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleRequest, lgraph.Lgraph.ModRoleRequest.Builder, lgraph.Lgraph.ModRoleRequestOrBuilder> modRoleRequestBuilder_; - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public boolean hasModRoleRequest() { - return reqCase_ == 7; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public lgraph.Lgraph.ModRoleRequest getModRoleRequest() { - if (modRoleRequestBuilder_ == null) { - if (reqCase_ == 7) { - return (lgraph.Lgraph.ModRoleRequest) req_; - } - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } else { - if (reqCase_ == 7) { - return modRoleRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public Builder setModRoleRequest(lgraph.Lgraph.ModRoleRequest value) { - if (modRoleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - modRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public Builder setModRoleRequest( - lgraph.Lgraph.ModRoleRequest.Builder builderForValue) { - if (modRoleRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - modRoleRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public Builder mergeModRoleRequest(lgraph.Lgraph.ModRoleRequest value) { - if (modRoleRequestBuilder_ == null) { - if (reqCase_ == 7 && - req_ != lgraph.Lgraph.ModRoleRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ModRoleRequest.newBuilder((lgraph.Lgraph.ModRoleRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 7) { - modRoleRequestBuilder_.mergeFrom(value); - } - modRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public Builder clearModRoleRequest() { - if (modRoleRequestBuilder_ == null) { - if (reqCase_ == 7) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 7) { - reqCase_ = 0; - req_ = null; - } - modRoleRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public lgraph.Lgraph.ModRoleRequest.Builder getModRoleRequestBuilder() { - return getModRoleRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - public lgraph.Lgraph.ModRoleRequestOrBuilder getModRoleRequestOrBuilder() { - if ((reqCase_ == 7) && (modRoleRequestBuilder_ != null)) { - return modRoleRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 7) { - return (lgraph.Lgraph.ModRoleRequest) req_; - } - return lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModRoleRequest mod_role_request = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleRequest, lgraph.Lgraph.ModRoleRequest.Builder, lgraph.Lgraph.ModRoleRequestOrBuilder> - getModRoleRequestFieldBuilder() { - if (modRoleRequestBuilder_ == null) { - if (!(reqCase_ == 7)) { - req_ = lgraph.Lgraph.ModRoleRequest.getDefaultInstance(); - } - modRoleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleRequest, lgraph.Lgraph.ModRoleRequest.Builder, lgraph.Lgraph.ModRoleRequestOrBuilder>( - (lgraph.Lgraph.ModRoleRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 7; - onChanged();; - return modRoleRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleRequest, lgraph.Lgraph.DelRoleRequest.Builder, lgraph.Lgraph.DelRoleRequestOrBuilder> delRoleRequestBuilder_; - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public boolean hasDelRoleRequest() { - return reqCase_ == 8; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public lgraph.Lgraph.DelRoleRequest getDelRoleRequest() { - if (delRoleRequestBuilder_ == null) { - if (reqCase_ == 8) { - return (lgraph.Lgraph.DelRoleRequest) req_; - } - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } else { - if (reqCase_ == 8) { - return delRoleRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public Builder setDelRoleRequest(lgraph.Lgraph.DelRoleRequest value) { - if (delRoleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public Builder setDelRoleRequest( - lgraph.Lgraph.DelRoleRequest.Builder builderForValue) { - if (delRoleRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delRoleRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public Builder mergeDelRoleRequest(lgraph.Lgraph.DelRoleRequest value) { - if (delRoleRequestBuilder_ == null) { - if (reqCase_ == 8 && - req_ != lgraph.Lgraph.DelRoleRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelRoleRequest.newBuilder((lgraph.Lgraph.DelRoleRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 8) { - delRoleRequestBuilder_.mergeFrom(value); - } - delRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public Builder clearDelRoleRequest() { - if (delRoleRequestBuilder_ == null) { - if (reqCase_ == 8) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 8) { - reqCase_ = 0; - req_ = null; - } - delRoleRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public lgraph.Lgraph.DelRoleRequest.Builder getDelRoleRequestBuilder() { - return getDelRoleRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - public lgraph.Lgraph.DelRoleRequestOrBuilder getDelRoleRequestOrBuilder() { - if ((reqCase_ == 8) && (delRoleRequestBuilder_ != null)) { - return delRoleRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 8) { - return (lgraph.Lgraph.DelRoleRequest) req_; - } - return lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelRoleRequest del_role_request = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleRequest, lgraph.Lgraph.DelRoleRequest.Builder, lgraph.Lgraph.DelRoleRequestOrBuilder> - getDelRoleRequestFieldBuilder() { - if (delRoleRequestBuilder_ == null) { - if (!(reqCase_ == 8)) { - req_ = lgraph.Lgraph.DelRoleRequest.getDefaultInstance(); - } - delRoleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleRequest, lgraph.Lgraph.DelRoleRequest.Builder, lgraph.Lgraph.DelRoleRequestOrBuilder>( - (lgraph.Lgraph.DelRoleRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 8; - onChanged();; - return delRoleRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoRequest, lgraph.Lgraph.GetRoleInfoRequest.Builder, lgraph.Lgraph.GetRoleInfoRequestOrBuilder> listRoleInfoRequestBuilder_; - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public boolean hasListRoleInfoRequest() { - return reqCase_ == 9; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public lgraph.Lgraph.GetRoleInfoRequest getListRoleInfoRequest() { - if (listRoleInfoRequestBuilder_ == null) { - if (reqCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoRequest) req_; - } - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } else { - if (reqCase_ == 9) { - return listRoleInfoRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public Builder setListRoleInfoRequest(lgraph.Lgraph.GetRoleInfoRequest value) { - if (listRoleInfoRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listRoleInfoRequestBuilder_.setMessage(value); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public Builder setListRoleInfoRequest( - lgraph.Lgraph.GetRoleInfoRequest.Builder builderForValue) { - if (listRoleInfoRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listRoleInfoRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public Builder mergeListRoleInfoRequest(lgraph.Lgraph.GetRoleInfoRequest value) { - if (listRoleInfoRequestBuilder_ == null) { - if (reqCase_ == 9 && - req_ != lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.GetRoleInfoRequest.newBuilder((lgraph.Lgraph.GetRoleInfoRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 9) { - listRoleInfoRequestBuilder_.mergeFrom(value); - } - listRoleInfoRequestBuilder_.setMessage(value); - } - reqCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public Builder clearListRoleInfoRequest() { - if (listRoleInfoRequestBuilder_ == null) { - if (reqCase_ == 9) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 9) { - reqCase_ = 0; - req_ = null; - } - listRoleInfoRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public lgraph.Lgraph.GetRoleInfoRequest.Builder getListRoleInfoRequestBuilder() { - return getListRoleInfoRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - public lgraph.Lgraph.GetRoleInfoRequestOrBuilder getListRoleInfoRequestOrBuilder() { - if ((reqCase_ == 9) && (listRoleInfoRequestBuilder_ != null)) { - return listRoleInfoRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoRequest) req_; - } - return lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetRoleInfoRequest list_role_info_request = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoRequest, lgraph.Lgraph.GetRoleInfoRequest.Builder, lgraph.Lgraph.GetRoleInfoRequestOrBuilder> - getListRoleInfoRequestFieldBuilder() { - if (listRoleInfoRequestBuilder_ == null) { - if (!(reqCase_ == 9)) { - req_ = lgraph.Lgraph.GetRoleInfoRequest.getDefaultInstance(); - } - listRoleInfoRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoRequest, lgraph.Lgraph.GetRoleInfoRequest.Builder, lgraph.Lgraph.GetRoleInfoRequestOrBuilder>( - (lgraph.Lgraph.GetRoleInfoRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 9; - onChanged();; - return listRoleInfoRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserRequest, lgraph.Lgraph.ListUserRequest.Builder, lgraph.Lgraph.ListUserRequestOrBuilder> listUserRequestBuilder_; - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public boolean hasListUserRequest() { - return reqCase_ == 10; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public lgraph.Lgraph.ListUserRequest getListUserRequest() { - if (listUserRequestBuilder_ == null) { - if (reqCase_ == 10) { - return (lgraph.Lgraph.ListUserRequest) req_; - } - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } else { - if (reqCase_ == 10) { - return listUserRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public Builder setListUserRequest(lgraph.Lgraph.ListUserRequest value) { - if (listUserRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listUserRequestBuilder_.setMessage(value); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public Builder setListUserRequest( - lgraph.Lgraph.ListUserRequest.Builder builderForValue) { - if (listUserRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listUserRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public Builder mergeListUserRequest(lgraph.Lgraph.ListUserRequest value) { - if (listUserRequestBuilder_ == null) { - if (reqCase_ == 10 && - req_ != lgraph.Lgraph.ListUserRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ListUserRequest.newBuilder((lgraph.Lgraph.ListUserRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 10) { - listUserRequestBuilder_.mergeFrom(value); - } - listUserRequestBuilder_.setMessage(value); - } - reqCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public Builder clearListUserRequest() { - if (listUserRequestBuilder_ == null) { - if (reqCase_ == 10) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 10) { - reqCase_ = 0; - req_ = null; - } - listUserRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public lgraph.Lgraph.ListUserRequest.Builder getListUserRequestBuilder() { - return getListUserRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - public lgraph.Lgraph.ListUserRequestOrBuilder getListUserRequestOrBuilder() { - if ((reqCase_ == 10) && (listUserRequestBuilder_ != null)) { - return listUserRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 10) { - return (lgraph.Lgraph.ListUserRequest) req_; - } - return lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListUserRequest list_user_request = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserRequest, lgraph.Lgraph.ListUserRequest.Builder, lgraph.Lgraph.ListUserRequestOrBuilder> - getListUserRequestFieldBuilder() { - if (listUserRequestBuilder_ == null) { - if (!(reqCase_ == 10)) { - req_ = lgraph.Lgraph.ListUserRequest.getDefaultInstance(); - } - listUserRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserRequest, lgraph.Lgraph.ListUserRequest.Builder, lgraph.Lgraph.ListUserRequestOrBuilder>( - (lgraph.Lgraph.ListUserRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 10; - onChanged();; - return listUserRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleRequest, lgraph.Lgraph.ListRoleRequest.Builder, lgraph.Lgraph.ListRoleRequestOrBuilder> listRoleRequestBuilder_; - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public boolean hasListRoleRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public lgraph.Lgraph.ListRoleRequest getListRoleRequest() { - if (listRoleRequestBuilder_ == null) { - if (reqCase_ == 11) { - return (lgraph.Lgraph.ListRoleRequest) req_; - } - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } else { - if (reqCase_ == 11) { - return listRoleRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public Builder setListRoleRequest(lgraph.Lgraph.ListRoleRequest value) { - if (listRoleRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public Builder setListRoleRequest( - lgraph.Lgraph.ListRoleRequest.Builder builderForValue) { - if (listRoleRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listRoleRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public Builder mergeListRoleRequest(lgraph.Lgraph.ListRoleRequest value) { - if (listRoleRequestBuilder_ == null) { - if (reqCase_ == 11 && - req_ != lgraph.Lgraph.ListRoleRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ListRoleRequest.newBuilder((lgraph.Lgraph.ListRoleRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 11) { - listRoleRequestBuilder_.mergeFrom(value); - } - listRoleRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public Builder clearListRoleRequest() { - if (listRoleRequestBuilder_ == null) { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - } - listRoleRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public lgraph.Lgraph.ListRoleRequest.Builder getListRoleRequestBuilder() { - return getListRoleRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - public lgraph.Lgraph.ListRoleRequestOrBuilder getListRoleRequestOrBuilder() { - if ((reqCase_ == 11) && (listRoleRequestBuilder_ != null)) { - return listRoleRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 11) { - return (lgraph.Lgraph.ListRoleRequest) req_; - } - return lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListRoleRequest list_role_request = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleRequest, lgraph.Lgraph.ListRoleRequest.Builder, lgraph.Lgraph.ListRoleRequestOrBuilder> - getListRoleRequestFieldBuilder() { - if (listRoleRequestBuilder_ == null) { - if (!(reqCase_ == 11)) { - req_ = lgraph.Lgraph.ListRoleRequest.getDefaultInstance(); - } - listRoleRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleRequest, lgraph.Lgraph.ListRoleRequest.Builder, lgraph.Lgraph.ListRoleRequestOrBuilder>( - (lgraph.Lgraph.ListRoleRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 11; - onChanged();; - return listRoleRequestBuilder_; - } - @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:lgraph.AclRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.AclRequest) - private static final lgraph.Lgraph.AclRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AclRequest(); - } - - public static lgraph.Lgraph.AclRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AclRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AclRequest(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 lgraph.Lgraph.AclRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AclResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.AclResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - boolean hasAuthResponse(); - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - lgraph.Lgraph.AuthResponse getAuthResponse(); - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - lgraph.Lgraph.AuthResponseOrBuilder getAuthResponseOrBuilder(); - - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - boolean hasAddUserResponse(); - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - lgraph.Lgraph.AddUserResponse getAddUserResponse(); - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - lgraph.Lgraph.AddUserResponseOrBuilder getAddUserResponseOrBuilder(); - - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - boolean hasModUserResponse(); - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - lgraph.Lgraph.ModUserResponse getModUserResponse(); - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - lgraph.Lgraph.ModUserResponseOrBuilder getModUserResponseOrBuilder(); - - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - boolean hasDelUserResponse(); - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - lgraph.Lgraph.DelUserResponse getDelUserResponse(); - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - lgraph.Lgraph.DelUserResponseOrBuilder getDelUserResponseOrBuilder(); - - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - boolean hasListUserInfoResponse(); - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - lgraph.Lgraph.GetUserInfoResponse getListUserInfoResponse(); - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - lgraph.Lgraph.GetUserInfoResponseOrBuilder getListUserInfoResponseOrBuilder(); - - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - boolean hasAddRoleResponse(); - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - lgraph.Lgraph.AddRoleResponse getAddRoleResponse(); - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - lgraph.Lgraph.AddRoleResponseOrBuilder getAddRoleResponseOrBuilder(); - - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - boolean hasModRoleResponse(); - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - lgraph.Lgraph.ModRoleResponse getModRoleResponse(); - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - lgraph.Lgraph.ModRoleResponseOrBuilder getModRoleResponseOrBuilder(); - - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - boolean hasDelRoleResponse(); - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - lgraph.Lgraph.DelRoleResponse getDelRoleResponse(); - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - lgraph.Lgraph.DelRoleResponseOrBuilder getDelRoleResponseOrBuilder(); - - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - boolean hasListRoleInfoResponse(); - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - lgraph.Lgraph.GetRoleInfoResponse getListRoleInfoResponse(); - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - lgraph.Lgraph.GetRoleInfoResponseOrBuilder getListRoleInfoResponseOrBuilder(); - - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - boolean hasListUserResponse(); - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - lgraph.Lgraph.ListUserResponse getListUserResponse(); - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - lgraph.Lgraph.ListUserResponseOrBuilder getListUserResponseOrBuilder(); - - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - boolean hasListRoleResponse(); - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - lgraph.Lgraph.ListRoleResponse getListRoleResponse(); - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - lgraph.Lgraph.ListRoleResponseOrBuilder getListRoleResponseOrBuilder(); - - public lgraph.Lgraph.AclResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.AclResponse} - */ - public static final class AclResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.AclResponse) - AclResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AclResponse.newBuilder() to construct. - private AclResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AclResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AclResponse( - 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: { - lgraph.Lgraph.AuthResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.AuthResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AuthResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AuthResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.AddUserResponse.Builder subBuilder = null; - if (respCase_ == 2) { - subBuilder = ((lgraph.Lgraph.AddUserResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddUserResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddUserResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.ModUserResponse.Builder subBuilder = null; - if (respCase_ == 3) { - subBuilder = ((lgraph.Lgraph.ModUserResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ModUserResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModUserResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.DelUserResponse.Builder subBuilder = null; - if (respCase_ == 4) { - subBuilder = ((lgraph.Lgraph.DelUserResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelUserResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelUserResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.GetUserInfoResponse.Builder subBuilder = null; - if (respCase_ == 5) { - subBuilder = ((lgraph.Lgraph.GetUserInfoResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.GetUserInfoResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetUserInfoResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 5; - break; - } - case 50: { - lgraph.Lgraph.AddRoleResponse.Builder subBuilder = null; - if (respCase_ == 6) { - subBuilder = ((lgraph.Lgraph.AddRoleResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AddRoleResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AddRoleResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 6; - break; - } - case 58: { - lgraph.Lgraph.ModRoleResponse.Builder subBuilder = null; - if (respCase_ == 7) { - subBuilder = ((lgraph.Lgraph.ModRoleResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ModRoleResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ModRoleResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 7; - break; - } - case 66: { - lgraph.Lgraph.DelRoleResponse.Builder subBuilder = null; - if (respCase_ == 8) { - subBuilder = ((lgraph.Lgraph.DelRoleResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelRoleResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelRoleResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 8; - break; - } - case 74: { - lgraph.Lgraph.GetRoleInfoResponse.Builder subBuilder = null; - if (respCase_ == 9) { - subBuilder = ((lgraph.Lgraph.GetRoleInfoResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.GetRoleInfoResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetRoleInfoResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 9; - break; - } - case 82: { - lgraph.Lgraph.ListUserResponse.Builder subBuilder = null; - if (respCase_ == 10) { - subBuilder = ((lgraph.Lgraph.ListUserResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ListUserResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListUserResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 10; - break; - } - case 90: { - lgraph.Lgraph.ListRoleResponse.Builder subBuilder = null; - if (respCase_ == 11) { - subBuilder = ((lgraph.Lgraph.ListRoleResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ListRoleResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListRoleResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 11; - 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 lgraph.Lgraph.internal_static_lgraph_AclResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AclResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AclResponse.class, lgraph.Lgraph.AclResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - AUTH_RESPONSE(1), - ADD_USER_RESPONSE(2), - MOD_USER_RESPONSE(3), - DEL_USER_RESPONSE(4), - LIST_USER_INFO_RESPONSE(5), - ADD_ROLE_RESPONSE(6), - MOD_ROLE_RESPONSE(7), - DEL_ROLE_RESPONSE(8), - LIST_ROLE_INFO_RESPONSE(9), - LIST_USER_RESPONSE(10), - LIST_ROLE_RESPONSE(11), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return AUTH_RESPONSE; - case 2: return ADD_USER_RESPONSE; - case 3: return MOD_USER_RESPONSE; - case 4: return DEL_USER_RESPONSE; - case 5: return LIST_USER_INFO_RESPONSE; - case 6: return ADD_ROLE_RESPONSE; - case 7: return MOD_ROLE_RESPONSE; - case 8: return DEL_ROLE_RESPONSE; - case 9: return LIST_ROLE_INFO_RESPONSE; - case 10: return LIST_USER_RESPONSE; - case 11: return LIST_ROLE_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int AUTH_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public boolean hasAuthResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public lgraph.Lgraph.AuthResponse getAuthResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AuthResponse) resp_; - } - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public lgraph.Lgraph.AuthResponseOrBuilder getAuthResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.AuthResponse) resp_; - } - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - - public static final int ADD_USER_RESPONSE_FIELD_NUMBER = 2; - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public boolean hasAddUserResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public lgraph.Lgraph.AddUserResponse getAddUserResponse() { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddUserResponse) resp_; - } - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public lgraph.Lgraph.AddUserResponseOrBuilder getAddUserResponseOrBuilder() { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddUserResponse) resp_; - } - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - - public static final int MOD_USER_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public boolean hasModUserResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public lgraph.Lgraph.ModUserResponse getModUserResponse() { - if (respCase_ == 3) { - return (lgraph.Lgraph.ModUserResponse) resp_; - } - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public lgraph.Lgraph.ModUserResponseOrBuilder getModUserResponseOrBuilder() { - if (respCase_ == 3) { - return (lgraph.Lgraph.ModUserResponse) resp_; - } - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - - public static final int DEL_USER_RESPONSE_FIELD_NUMBER = 4; - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public boolean hasDelUserResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public lgraph.Lgraph.DelUserResponse getDelUserResponse() { - if (respCase_ == 4) { - return (lgraph.Lgraph.DelUserResponse) resp_; - } - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public lgraph.Lgraph.DelUserResponseOrBuilder getDelUserResponseOrBuilder() { - if (respCase_ == 4) { - return (lgraph.Lgraph.DelUserResponse) resp_; - } - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - - public static final int LIST_USER_INFO_RESPONSE_FIELD_NUMBER = 5; - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public boolean hasListUserInfoResponse() { - return respCase_ == 5; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public lgraph.Lgraph.GetUserInfoResponse getListUserInfoResponse() { - if (respCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoResponse) resp_; - } - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public lgraph.Lgraph.GetUserInfoResponseOrBuilder getListUserInfoResponseOrBuilder() { - if (respCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoResponse) resp_; - } - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - - public static final int ADD_ROLE_RESPONSE_FIELD_NUMBER = 6; - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public boolean hasAddRoleResponse() { - return respCase_ == 6; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public lgraph.Lgraph.AddRoleResponse getAddRoleResponse() { - if (respCase_ == 6) { - return (lgraph.Lgraph.AddRoleResponse) resp_; - } - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public lgraph.Lgraph.AddRoleResponseOrBuilder getAddRoleResponseOrBuilder() { - if (respCase_ == 6) { - return (lgraph.Lgraph.AddRoleResponse) resp_; - } - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - - public static final int MOD_ROLE_RESPONSE_FIELD_NUMBER = 7; - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public boolean hasModRoleResponse() { - return respCase_ == 7; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public lgraph.Lgraph.ModRoleResponse getModRoleResponse() { - if (respCase_ == 7) { - return (lgraph.Lgraph.ModRoleResponse) resp_; - } - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public lgraph.Lgraph.ModRoleResponseOrBuilder getModRoleResponseOrBuilder() { - if (respCase_ == 7) { - return (lgraph.Lgraph.ModRoleResponse) resp_; - } - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - - public static final int DEL_ROLE_RESPONSE_FIELD_NUMBER = 8; - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public boolean hasDelRoleResponse() { - return respCase_ == 8; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public lgraph.Lgraph.DelRoleResponse getDelRoleResponse() { - if (respCase_ == 8) { - return (lgraph.Lgraph.DelRoleResponse) resp_; - } - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public lgraph.Lgraph.DelRoleResponseOrBuilder getDelRoleResponseOrBuilder() { - if (respCase_ == 8) { - return (lgraph.Lgraph.DelRoleResponse) resp_; - } - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - - public static final int LIST_ROLE_INFO_RESPONSE_FIELD_NUMBER = 9; - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public boolean hasListRoleInfoResponse() { - return respCase_ == 9; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public lgraph.Lgraph.GetRoleInfoResponse getListRoleInfoResponse() { - if (respCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoResponse) resp_; - } - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public lgraph.Lgraph.GetRoleInfoResponseOrBuilder getListRoleInfoResponseOrBuilder() { - if (respCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoResponse) resp_; - } - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - - public static final int LIST_USER_RESPONSE_FIELD_NUMBER = 10; - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public boolean hasListUserResponse() { - return respCase_ == 10; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public lgraph.Lgraph.ListUserResponse getListUserResponse() { - if (respCase_ == 10) { - return (lgraph.Lgraph.ListUserResponse) resp_; - } - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public lgraph.Lgraph.ListUserResponseOrBuilder getListUserResponseOrBuilder() { - if (respCase_ == 10) { - return (lgraph.Lgraph.ListUserResponse) resp_; - } - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - - public static final int LIST_ROLE_RESPONSE_FIELD_NUMBER = 11; - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public boolean hasListRoleResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public lgraph.Lgraph.ListRoleResponse getListRoleResponse() { - if (respCase_ == 11) { - return (lgraph.Lgraph.ListRoleResponse) resp_; - } - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public lgraph.Lgraph.ListRoleResponseOrBuilder getListRoleResponseOrBuilder() { - if (respCase_ == 11) { - return (lgraph.Lgraph.ListRoleResponse) resp_; - } - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasAuthResponse()) { - if (!getAuthResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListUserInfoResponse()) { - if (!getListUserInfoResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListRoleInfoResponse()) { - if (!getListRoleInfoResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListUserResponse()) { - if (!getListUserResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasListRoleResponse()) { - if (!getListRoleResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.AuthResponse) resp_); - } - if (respCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.AddUserResponse) resp_); - } - if (respCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.ModUserResponse) resp_); - } - if (respCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.DelUserResponse) resp_); - } - if (respCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.GetUserInfoResponse) resp_); - } - if (respCase_ == 6) { - output.writeMessage(6, (lgraph.Lgraph.AddRoleResponse) resp_); - } - if (respCase_ == 7) { - output.writeMessage(7, (lgraph.Lgraph.ModRoleResponse) resp_); - } - if (respCase_ == 8) { - output.writeMessage(8, (lgraph.Lgraph.DelRoleResponse) resp_); - } - if (respCase_ == 9) { - output.writeMessage(9, (lgraph.Lgraph.GetRoleInfoResponse) resp_); - } - if (respCase_ == 10) { - output.writeMessage(10, (lgraph.Lgraph.ListUserResponse) resp_); - } - if (respCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.ListRoleResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.AuthResponse) resp_); - } - if (respCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.AddUserResponse) resp_); - } - if (respCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.ModUserResponse) resp_); - } - if (respCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.DelUserResponse) resp_); - } - if (respCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.GetUserInfoResponse) resp_); - } - if (respCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (lgraph.Lgraph.AddRoleResponse) resp_); - } - if (respCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (lgraph.Lgraph.ModRoleResponse) resp_); - } - if (respCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (lgraph.Lgraph.DelRoleResponse) resp_); - } - if (respCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (lgraph.Lgraph.GetRoleInfoResponse) resp_); - } - if (respCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (lgraph.Lgraph.ListUserResponse) resp_); - } - if (respCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.ListRoleResponse) resp_); - } - 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 lgraph.Lgraph.AclResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.AclResponse other = (lgraph.Lgraph.AclResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getAuthResponse() - .equals(other.getAuthResponse()); - break; - case 2: - result = result && getAddUserResponse() - .equals(other.getAddUserResponse()); - break; - case 3: - result = result && getModUserResponse() - .equals(other.getModUserResponse()); - break; - case 4: - result = result && getDelUserResponse() - .equals(other.getDelUserResponse()); - break; - case 5: - result = result && getListUserInfoResponse() - .equals(other.getListUserInfoResponse()); - break; - case 6: - result = result && getAddRoleResponse() - .equals(other.getAddRoleResponse()); - break; - case 7: - result = result && getModRoleResponse() - .equals(other.getModRoleResponse()); - break; - case 8: - result = result && getDelRoleResponse() - .equals(other.getDelRoleResponse()); - break; - case 9: - result = result && getListRoleInfoResponse() - .equals(other.getListRoleInfoResponse()); - break; - case 10: - result = result && getListUserResponse() - .equals(other.getListUserResponse()); - break; - case 11: - result = result && getListRoleResponse() - .equals(other.getListRoleResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + AUTH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAuthResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + ADD_USER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddUserResponse().hashCode(); - break; - case 3: - hash = (37 * hash) + MOD_USER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getModUserResponse().hashCode(); - break; - case 4: - hash = (37 * hash) + DEL_USER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelUserResponse().hashCode(); - break; - case 5: - hash = (37 * hash) + LIST_USER_INFO_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListUserInfoResponse().hashCode(); - break; - case 6: - hash = (37 * hash) + ADD_ROLE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAddRoleResponse().hashCode(); - break; - case 7: - hash = (37 * hash) + MOD_ROLE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getModRoleResponse().hashCode(); - break; - case 8: - hash = (37 * hash) + DEL_ROLE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelRoleResponse().hashCode(); - break; - case 9: - hash = (37 * hash) + LIST_ROLE_INFO_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListRoleInfoResponse().hashCode(); - break; - case 10: - hash = (37 * hash) + LIST_USER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListUserResponse().hashCode(); - break; - case 11: - hash = (37 * hash) + LIST_ROLE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListRoleResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.AclResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.AclResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.AclResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclResponse 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 lgraph.Lgraph.AclResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclResponse 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 lgraph.Lgraph.AclResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.AclResponse 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(lgraph.Lgraph.AclResponse 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 lgraph.AclResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.AclResponse) - lgraph.Lgraph.AclResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_AclResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_AclResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.AclResponse.class, lgraph.Lgraph.AclResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.AclResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_AclResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.AclResponse getDefaultInstanceForType() { - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.AclResponse build() { - lgraph.Lgraph.AclResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.AclResponse buildPartial() { - lgraph.Lgraph.AclResponse result = new lgraph.Lgraph.AclResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (authResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = authResponseBuilder_.build(); - } - } - if (respCase_ == 2) { - if (addUserResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addUserResponseBuilder_.build(); - } - } - if (respCase_ == 3) { - if (modUserResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = modUserResponseBuilder_.build(); - } - } - if (respCase_ == 4) { - if (delUserResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delUserResponseBuilder_.build(); - } - } - if (respCase_ == 5) { - if (listUserInfoResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listUserInfoResponseBuilder_.build(); - } - } - if (respCase_ == 6) { - if (addRoleResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = addRoleResponseBuilder_.build(); - } - } - if (respCase_ == 7) { - if (modRoleResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = modRoleResponseBuilder_.build(); - } - } - if (respCase_ == 8) { - if (delRoleResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delRoleResponseBuilder_.build(); - } - } - if (respCase_ == 9) { - if (listRoleInfoResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listRoleInfoResponseBuilder_.build(); - } - } - if (respCase_ == 10) { - if (listUserResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listUserResponseBuilder_.build(); - } - } - if (respCase_ == 11) { - if (listRoleResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listRoleResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.AclResponse) { - return mergeFrom((lgraph.Lgraph.AclResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.AclResponse other) { - if (other == lgraph.Lgraph.AclResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case AUTH_RESPONSE: { - mergeAuthResponse(other.getAuthResponse()); - break; - } - case ADD_USER_RESPONSE: { - mergeAddUserResponse(other.getAddUserResponse()); - break; - } - case MOD_USER_RESPONSE: { - mergeModUserResponse(other.getModUserResponse()); - break; - } - case DEL_USER_RESPONSE: { - mergeDelUserResponse(other.getDelUserResponse()); - break; - } - case LIST_USER_INFO_RESPONSE: { - mergeListUserInfoResponse(other.getListUserInfoResponse()); - break; - } - case ADD_ROLE_RESPONSE: { - mergeAddRoleResponse(other.getAddRoleResponse()); - break; - } - case MOD_ROLE_RESPONSE: { - mergeModRoleResponse(other.getModRoleResponse()); - break; - } - case DEL_ROLE_RESPONSE: { - mergeDelRoleResponse(other.getDelRoleResponse()); - break; - } - case LIST_ROLE_INFO_RESPONSE: { - mergeListRoleInfoResponse(other.getListRoleInfoResponse()); - break; - } - case LIST_USER_RESPONSE: { - mergeListUserResponse(other.getListUserResponse()); - break; - } - case LIST_ROLE_RESPONSE: { - mergeListRoleResponse(other.getListRoleResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasAuthResponse()) { - if (!getAuthResponse().isInitialized()) { - return false; - } - } - if (hasListUserInfoResponse()) { - if (!getListUserInfoResponse().isInitialized()) { - return false; - } - } - if (hasListRoleInfoResponse()) { - if (!getListRoleInfoResponse().isInitialized()) { - return false; - } - } - if (hasListUserResponse()) { - if (!getListUserResponse().isInitialized()) { - return false; - } - } - if (hasListRoleResponse()) { - if (!getListRoleResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.AclResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.AclResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthResponse, lgraph.Lgraph.AuthResponse.Builder, lgraph.Lgraph.AuthResponseOrBuilder> authResponseBuilder_; - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public boolean hasAuthResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public lgraph.Lgraph.AuthResponse getAuthResponse() { - if (authResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.AuthResponse) resp_; - } - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return authResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public Builder setAuthResponse(lgraph.Lgraph.AuthResponse value) { - if (authResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - authResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public Builder setAuthResponse( - lgraph.Lgraph.AuthResponse.Builder builderForValue) { - if (authResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - authResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public Builder mergeAuthResponse(lgraph.Lgraph.AuthResponse value) { - if (authResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.AuthResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AuthResponse.newBuilder((lgraph.Lgraph.AuthResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - authResponseBuilder_.mergeFrom(value); - } - authResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public Builder clearAuthResponse() { - if (authResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - authResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public lgraph.Lgraph.AuthResponse.Builder getAuthResponseBuilder() { - return getAuthResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - public lgraph.Lgraph.AuthResponseOrBuilder getAuthResponseOrBuilder() { - if ((respCase_ == 1) && (authResponseBuilder_ != null)) { - return authResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.AuthResponse) resp_; - } - return lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AuthResponse auth_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthResponse, lgraph.Lgraph.AuthResponse.Builder, lgraph.Lgraph.AuthResponseOrBuilder> - getAuthResponseFieldBuilder() { - if (authResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.AuthResponse.getDefaultInstance(); - } - authResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AuthResponse, lgraph.Lgraph.AuthResponse.Builder, lgraph.Lgraph.AuthResponseOrBuilder>( - (lgraph.Lgraph.AuthResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return authResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserResponse, lgraph.Lgraph.AddUserResponse.Builder, lgraph.Lgraph.AddUserResponseOrBuilder> addUserResponseBuilder_; - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public boolean hasAddUserResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public lgraph.Lgraph.AddUserResponse getAddUserResponse() { - if (addUserResponseBuilder_ == null) { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddUserResponse) resp_; - } - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } else { - if (respCase_ == 2) { - return addUserResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public Builder setAddUserResponse(lgraph.Lgraph.AddUserResponse value) { - if (addUserResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addUserResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public Builder setAddUserResponse( - lgraph.Lgraph.AddUserResponse.Builder builderForValue) { - if (addUserResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addUserResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public Builder mergeAddUserResponse(lgraph.Lgraph.AddUserResponse value) { - if (addUserResponseBuilder_ == null) { - if (respCase_ == 2 && - resp_ != lgraph.Lgraph.AddUserResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddUserResponse.newBuilder((lgraph.Lgraph.AddUserResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 2) { - addUserResponseBuilder_.mergeFrom(value); - } - addUserResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public Builder clearAddUserResponse() { - if (addUserResponseBuilder_ == null) { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - } - addUserResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public lgraph.Lgraph.AddUserResponse.Builder getAddUserResponseBuilder() { - return getAddUserResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - public lgraph.Lgraph.AddUserResponseOrBuilder getAddUserResponseOrBuilder() { - if ((respCase_ == 2) && (addUserResponseBuilder_ != null)) { - return addUserResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 2) { - return (lgraph.Lgraph.AddUserResponse) resp_; - } - return lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddUserResponse add_user_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserResponse, lgraph.Lgraph.AddUserResponse.Builder, lgraph.Lgraph.AddUserResponseOrBuilder> - getAddUserResponseFieldBuilder() { - if (addUserResponseBuilder_ == null) { - if (!(respCase_ == 2)) { - resp_ = lgraph.Lgraph.AddUserResponse.getDefaultInstance(); - } - addUserResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddUserResponse, lgraph.Lgraph.AddUserResponse.Builder, lgraph.Lgraph.AddUserResponseOrBuilder>( - (lgraph.Lgraph.AddUserResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 2; - onChanged();; - return addUserResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserResponse, lgraph.Lgraph.ModUserResponse.Builder, lgraph.Lgraph.ModUserResponseOrBuilder> modUserResponseBuilder_; - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public boolean hasModUserResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public lgraph.Lgraph.ModUserResponse getModUserResponse() { - if (modUserResponseBuilder_ == null) { - if (respCase_ == 3) { - return (lgraph.Lgraph.ModUserResponse) resp_; - } - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } else { - if (respCase_ == 3) { - return modUserResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public Builder setModUserResponse(lgraph.Lgraph.ModUserResponse value) { - if (modUserResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - modUserResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public Builder setModUserResponse( - lgraph.Lgraph.ModUserResponse.Builder builderForValue) { - if (modUserResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - modUserResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public Builder mergeModUserResponse(lgraph.Lgraph.ModUserResponse value) { - if (modUserResponseBuilder_ == null) { - if (respCase_ == 3 && - resp_ != lgraph.Lgraph.ModUserResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ModUserResponse.newBuilder((lgraph.Lgraph.ModUserResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 3) { - modUserResponseBuilder_.mergeFrom(value); - } - modUserResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public Builder clearModUserResponse() { - if (modUserResponseBuilder_ == null) { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - } - modUserResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public lgraph.Lgraph.ModUserResponse.Builder getModUserResponseBuilder() { - return getModUserResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - public lgraph.Lgraph.ModUserResponseOrBuilder getModUserResponseOrBuilder() { - if ((respCase_ == 3) && (modUserResponseBuilder_ != null)) { - return modUserResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 3) { - return (lgraph.Lgraph.ModUserResponse) resp_; - } - return lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModUserResponse mod_user_response = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserResponse, lgraph.Lgraph.ModUserResponse.Builder, lgraph.Lgraph.ModUserResponseOrBuilder> - getModUserResponseFieldBuilder() { - if (modUserResponseBuilder_ == null) { - if (!(respCase_ == 3)) { - resp_ = lgraph.Lgraph.ModUserResponse.getDefaultInstance(); - } - modUserResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModUserResponse, lgraph.Lgraph.ModUserResponse.Builder, lgraph.Lgraph.ModUserResponseOrBuilder>( - (lgraph.Lgraph.ModUserResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 3; - onChanged();; - return modUserResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserResponse, lgraph.Lgraph.DelUserResponse.Builder, lgraph.Lgraph.DelUserResponseOrBuilder> delUserResponseBuilder_; - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public boolean hasDelUserResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public lgraph.Lgraph.DelUserResponse getDelUserResponse() { - if (delUserResponseBuilder_ == null) { - if (respCase_ == 4) { - return (lgraph.Lgraph.DelUserResponse) resp_; - } - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } else { - if (respCase_ == 4) { - return delUserResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public Builder setDelUserResponse(lgraph.Lgraph.DelUserResponse value) { - if (delUserResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delUserResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public Builder setDelUserResponse( - lgraph.Lgraph.DelUserResponse.Builder builderForValue) { - if (delUserResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delUserResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public Builder mergeDelUserResponse(lgraph.Lgraph.DelUserResponse value) { - if (delUserResponseBuilder_ == null) { - if (respCase_ == 4 && - resp_ != lgraph.Lgraph.DelUserResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelUserResponse.newBuilder((lgraph.Lgraph.DelUserResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 4) { - delUserResponseBuilder_.mergeFrom(value); - } - delUserResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public Builder clearDelUserResponse() { - if (delUserResponseBuilder_ == null) { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - } - delUserResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public lgraph.Lgraph.DelUserResponse.Builder getDelUserResponseBuilder() { - return getDelUserResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - public lgraph.Lgraph.DelUserResponseOrBuilder getDelUserResponseOrBuilder() { - if ((respCase_ == 4) && (delUserResponseBuilder_ != null)) { - return delUserResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 4) { - return (lgraph.Lgraph.DelUserResponse) resp_; - } - return lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelUserResponse del_user_response = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserResponse, lgraph.Lgraph.DelUserResponse.Builder, lgraph.Lgraph.DelUserResponseOrBuilder> - getDelUserResponseFieldBuilder() { - if (delUserResponseBuilder_ == null) { - if (!(respCase_ == 4)) { - resp_ = lgraph.Lgraph.DelUserResponse.getDefaultInstance(); - } - delUserResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelUserResponse, lgraph.Lgraph.DelUserResponse.Builder, lgraph.Lgraph.DelUserResponseOrBuilder>( - (lgraph.Lgraph.DelUserResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 4; - onChanged();; - return delUserResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoResponse, lgraph.Lgraph.GetUserInfoResponse.Builder, lgraph.Lgraph.GetUserInfoResponseOrBuilder> listUserInfoResponseBuilder_; - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public boolean hasListUserInfoResponse() { - return respCase_ == 5; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public lgraph.Lgraph.GetUserInfoResponse getListUserInfoResponse() { - if (listUserInfoResponseBuilder_ == null) { - if (respCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoResponse) resp_; - } - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } else { - if (respCase_ == 5) { - return listUserInfoResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public Builder setListUserInfoResponse(lgraph.Lgraph.GetUserInfoResponse value) { - if (listUserInfoResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listUserInfoResponseBuilder_.setMessage(value); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public Builder setListUserInfoResponse( - lgraph.Lgraph.GetUserInfoResponse.Builder builderForValue) { - if (listUserInfoResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listUserInfoResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public Builder mergeListUserInfoResponse(lgraph.Lgraph.GetUserInfoResponse value) { - if (listUserInfoResponseBuilder_ == null) { - if (respCase_ == 5 && - resp_ != lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.GetUserInfoResponse.newBuilder((lgraph.Lgraph.GetUserInfoResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 5) { - listUserInfoResponseBuilder_.mergeFrom(value); - } - listUserInfoResponseBuilder_.setMessage(value); - } - respCase_ = 5; - return this; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public Builder clearListUserInfoResponse() { - if (listUserInfoResponseBuilder_ == null) { - if (respCase_ == 5) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 5) { - respCase_ = 0; - resp_ = null; - } - listUserInfoResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public lgraph.Lgraph.GetUserInfoResponse.Builder getListUserInfoResponseBuilder() { - return getListUserInfoResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - public lgraph.Lgraph.GetUserInfoResponseOrBuilder getListUserInfoResponseOrBuilder() { - if ((respCase_ == 5) && (listUserInfoResponseBuilder_ != null)) { - return listUserInfoResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 5) { - return (lgraph.Lgraph.GetUserInfoResponse) resp_; - } - return lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetUserInfoResponse list_user_info_response = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoResponse, lgraph.Lgraph.GetUserInfoResponse.Builder, lgraph.Lgraph.GetUserInfoResponseOrBuilder> - getListUserInfoResponseFieldBuilder() { - if (listUserInfoResponseBuilder_ == null) { - if (!(respCase_ == 5)) { - resp_ = lgraph.Lgraph.GetUserInfoResponse.getDefaultInstance(); - } - listUserInfoResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetUserInfoResponse, lgraph.Lgraph.GetUserInfoResponse.Builder, lgraph.Lgraph.GetUserInfoResponseOrBuilder>( - (lgraph.Lgraph.GetUserInfoResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 5; - onChanged();; - return listUserInfoResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleResponse, lgraph.Lgraph.AddRoleResponse.Builder, lgraph.Lgraph.AddRoleResponseOrBuilder> addRoleResponseBuilder_; - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public boolean hasAddRoleResponse() { - return respCase_ == 6; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public lgraph.Lgraph.AddRoleResponse getAddRoleResponse() { - if (addRoleResponseBuilder_ == null) { - if (respCase_ == 6) { - return (lgraph.Lgraph.AddRoleResponse) resp_; - } - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } else { - if (respCase_ == 6) { - return addRoleResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public Builder setAddRoleResponse(lgraph.Lgraph.AddRoleResponse value) { - if (addRoleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - addRoleResponseBuilder_.setMessage(value); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public Builder setAddRoleResponse( - lgraph.Lgraph.AddRoleResponse.Builder builderForValue) { - if (addRoleResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - addRoleResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public Builder mergeAddRoleResponse(lgraph.Lgraph.AddRoleResponse value) { - if (addRoleResponseBuilder_ == null) { - if (respCase_ == 6 && - resp_ != lgraph.Lgraph.AddRoleResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AddRoleResponse.newBuilder((lgraph.Lgraph.AddRoleResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 6) { - addRoleResponseBuilder_.mergeFrom(value); - } - addRoleResponseBuilder_.setMessage(value); - } - respCase_ = 6; - return this; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public Builder clearAddRoleResponse() { - if (addRoleResponseBuilder_ == null) { - if (respCase_ == 6) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 6) { - respCase_ = 0; - resp_ = null; - } - addRoleResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public lgraph.Lgraph.AddRoleResponse.Builder getAddRoleResponseBuilder() { - return getAddRoleResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - public lgraph.Lgraph.AddRoleResponseOrBuilder getAddRoleResponseOrBuilder() { - if ((respCase_ == 6) && (addRoleResponseBuilder_ != null)) { - return addRoleResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 6) { - return (lgraph.Lgraph.AddRoleResponse) resp_; - } - return lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AddRoleResponse add_role_response = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleResponse, lgraph.Lgraph.AddRoleResponse.Builder, lgraph.Lgraph.AddRoleResponseOrBuilder> - getAddRoleResponseFieldBuilder() { - if (addRoleResponseBuilder_ == null) { - if (!(respCase_ == 6)) { - resp_ = lgraph.Lgraph.AddRoleResponse.getDefaultInstance(); - } - addRoleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AddRoleResponse, lgraph.Lgraph.AddRoleResponse.Builder, lgraph.Lgraph.AddRoleResponseOrBuilder>( - (lgraph.Lgraph.AddRoleResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 6; - onChanged();; - return addRoleResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleResponse, lgraph.Lgraph.ModRoleResponse.Builder, lgraph.Lgraph.ModRoleResponseOrBuilder> modRoleResponseBuilder_; - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public boolean hasModRoleResponse() { - return respCase_ == 7; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public lgraph.Lgraph.ModRoleResponse getModRoleResponse() { - if (modRoleResponseBuilder_ == null) { - if (respCase_ == 7) { - return (lgraph.Lgraph.ModRoleResponse) resp_; - } - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } else { - if (respCase_ == 7) { - return modRoleResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public Builder setModRoleResponse(lgraph.Lgraph.ModRoleResponse value) { - if (modRoleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - modRoleResponseBuilder_.setMessage(value); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public Builder setModRoleResponse( - lgraph.Lgraph.ModRoleResponse.Builder builderForValue) { - if (modRoleResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - modRoleResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public Builder mergeModRoleResponse(lgraph.Lgraph.ModRoleResponse value) { - if (modRoleResponseBuilder_ == null) { - if (respCase_ == 7 && - resp_ != lgraph.Lgraph.ModRoleResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ModRoleResponse.newBuilder((lgraph.Lgraph.ModRoleResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 7) { - modRoleResponseBuilder_.mergeFrom(value); - } - modRoleResponseBuilder_.setMessage(value); - } - respCase_ = 7; - return this; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public Builder clearModRoleResponse() { - if (modRoleResponseBuilder_ == null) { - if (respCase_ == 7) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 7) { - respCase_ = 0; - resp_ = null; - } - modRoleResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public lgraph.Lgraph.ModRoleResponse.Builder getModRoleResponseBuilder() { - return getModRoleResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - public lgraph.Lgraph.ModRoleResponseOrBuilder getModRoleResponseOrBuilder() { - if ((respCase_ == 7) && (modRoleResponseBuilder_ != null)) { - return modRoleResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 7) { - return (lgraph.Lgraph.ModRoleResponse) resp_; - } - return lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ModRoleResponse mod_role_response = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleResponse, lgraph.Lgraph.ModRoleResponse.Builder, lgraph.Lgraph.ModRoleResponseOrBuilder> - getModRoleResponseFieldBuilder() { - if (modRoleResponseBuilder_ == null) { - if (!(respCase_ == 7)) { - resp_ = lgraph.Lgraph.ModRoleResponse.getDefaultInstance(); - } - modRoleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ModRoleResponse, lgraph.Lgraph.ModRoleResponse.Builder, lgraph.Lgraph.ModRoleResponseOrBuilder>( - (lgraph.Lgraph.ModRoleResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 7; - onChanged();; - return modRoleResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleResponse, lgraph.Lgraph.DelRoleResponse.Builder, lgraph.Lgraph.DelRoleResponseOrBuilder> delRoleResponseBuilder_; - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public boolean hasDelRoleResponse() { - return respCase_ == 8; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public lgraph.Lgraph.DelRoleResponse getDelRoleResponse() { - if (delRoleResponseBuilder_ == null) { - if (respCase_ == 8) { - return (lgraph.Lgraph.DelRoleResponse) resp_; - } - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } else { - if (respCase_ == 8) { - return delRoleResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public Builder setDelRoleResponse(lgraph.Lgraph.DelRoleResponse value) { - if (delRoleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delRoleResponseBuilder_.setMessage(value); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public Builder setDelRoleResponse( - lgraph.Lgraph.DelRoleResponse.Builder builderForValue) { - if (delRoleResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delRoleResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public Builder mergeDelRoleResponse(lgraph.Lgraph.DelRoleResponse value) { - if (delRoleResponseBuilder_ == null) { - if (respCase_ == 8 && - resp_ != lgraph.Lgraph.DelRoleResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelRoleResponse.newBuilder((lgraph.Lgraph.DelRoleResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 8) { - delRoleResponseBuilder_.mergeFrom(value); - } - delRoleResponseBuilder_.setMessage(value); - } - respCase_ = 8; - return this; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public Builder clearDelRoleResponse() { - if (delRoleResponseBuilder_ == null) { - if (respCase_ == 8) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 8) { - respCase_ = 0; - resp_ = null; - } - delRoleResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public lgraph.Lgraph.DelRoleResponse.Builder getDelRoleResponseBuilder() { - return getDelRoleResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - public lgraph.Lgraph.DelRoleResponseOrBuilder getDelRoleResponseOrBuilder() { - if ((respCase_ == 8) && (delRoleResponseBuilder_ != null)) { - return delRoleResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 8) { - return (lgraph.Lgraph.DelRoleResponse) resp_; - } - return lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelRoleResponse del_role_response = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleResponse, lgraph.Lgraph.DelRoleResponse.Builder, lgraph.Lgraph.DelRoleResponseOrBuilder> - getDelRoleResponseFieldBuilder() { - if (delRoleResponseBuilder_ == null) { - if (!(respCase_ == 8)) { - resp_ = lgraph.Lgraph.DelRoleResponse.getDefaultInstance(); - } - delRoleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelRoleResponse, lgraph.Lgraph.DelRoleResponse.Builder, lgraph.Lgraph.DelRoleResponseOrBuilder>( - (lgraph.Lgraph.DelRoleResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 8; - onChanged();; - return delRoleResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoResponse, lgraph.Lgraph.GetRoleInfoResponse.Builder, lgraph.Lgraph.GetRoleInfoResponseOrBuilder> listRoleInfoResponseBuilder_; - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public boolean hasListRoleInfoResponse() { - return respCase_ == 9; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public lgraph.Lgraph.GetRoleInfoResponse getListRoleInfoResponse() { - if (listRoleInfoResponseBuilder_ == null) { - if (respCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoResponse) resp_; - } - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } else { - if (respCase_ == 9) { - return listRoleInfoResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public Builder setListRoleInfoResponse(lgraph.Lgraph.GetRoleInfoResponse value) { - if (listRoleInfoResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listRoleInfoResponseBuilder_.setMessage(value); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public Builder setListRoleInfoResponse( - lgraph.Lgraph.GetRoleInfoResponse.Builder builderForValue) { - if (listRoleInfoResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listRoleInfoResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public Builder mergeListRoleInfoResponse(lgraph.Lgraph.GetRoleInfoResponse value) { - if (listRoleInfoResponseBuilder_ == null) { - if (respCase_ == 9 && - resp_ != lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.GetRoleInfoResponse.newBuilder((lgraph.Lgraph.GetRoleInfoResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 9) { - listRoleInfoResponseBuilder_.mergeFrom(value); - } - listRoleInfoResponseBuilder_.setMessage(value); - } - respCase_ = 9; - return this; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public Builder clearListRoleInfoResponse() { - if (listRoleInfoResponseBuilder_ == null) { - if (respCase_ == 9) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 9) { - respCase_ = 0; - resp_ = null; - } - listRoleInfoResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public lgraph.Lgraph.GetRoleInfoResponse.Builder getListRoleInfoResponseBuilder() { - return getListRoleInfoResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - public lgraph.Lgraph.GetRoleInfoResponseOrBuilder getListRoleInfoResponseOrBuilder() { - if ((respCase_ == 9) && (listRoleInfoResponseBuilder_ != null)) { - return listRoleInfoResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 9) { - return (lgraph.Lgraph.GetRoleInfoResponse) resp_; - } - return lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetRoleInfoResponse list_role_info_response = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoResponse, lgraph.Lgraph.GetRoleInfoResponse.Builder, lgraph.Lgraph.GetRoleInfoResponseOrBuilder> - getListRoleInfoResponseFieldBuilder() { - if (listRoleInfoResponseBuilder_ == null) { - if (!(respCase_ == 9)) { - resp_ = lgraph.Lgraph.GetRoleInfoResponse.getDefaultInstance(); - } - listRoleInfoResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetRoleInfoResponse, lgraph.Lgraph.GetRoleInfoResponse.Builder, lgraph.Lgraph.GetRoleInfoResponseOrBuilder>( - (lgraph.Lgraph.GetRoleInfoResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 9; - onChanged();; - return listRoleInfoResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserResponse, lgraph.Lgraph.ListUserResponse.Builder, lgraph.Lgraph.ListUserResponseOrBuilder> listUserResponseBuilder_; - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public boolean hasListUserResponse() { - return respCase_ == 10; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public lgraph.Lgraph.ListUserResponse getListUserResponse() { - if (listUserResponseBuilder_ == null) { - if (respCase_ == 10) { - return (lgraph.Lgraph.ListUserResponse) resp_; - } - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } else { - if (respCase_ == 10) { - return listUserResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public Builder setListUserResponse(lgraph.Lgraph.ListUserResponse value) { - if (listUserResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listUserResponseBuilder_.setMessage(value); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public Builder setListUserResponse( - lgraph.Lgraph.ListUserResponse.Builder builderForValue) { - if (listUserResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listUserResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public Builder mergeListUserResponse(lgraph.Lgraph.ListUserResponse value) { - if (listUserResponseBuilder_ == null) { - if (respCase_ == 10 && - resp_ != lgraph.Lgraph.ListUserResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ListUserResponse.newBuilder((lgraph.Lgraph.ListUserResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 10) { - listUserResponseBuilder_.mergeFrom(value); - } - listUserResponseBuilder_.setMessage(value); - } - respCase_ = 10; - return this; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public Builder clearListUserResponse() { - if (listUserResponseBuilder_ == null) { - if (respCase_ == 10) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 10) { - respCase_ = 0; - resp_ = null; - } - listUserResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public lgraph.Lgraph.ListUserResponse.Builder getListUserResponseBuilder() { - return getListUserResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - public lgraph.Lgraph.ListUserResponseOrBuilder getListUserResponseOrBuilder() { - if ((respCase_ == 10) && (listUserResponseBuilder_ != null)) { - return listUserResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 10) { - return (lgraph.Lgraph.ListUserResponse) resp_; - } - return lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListUserResponse list_user_response = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserResponse, lgraph.Lgraph.ListUserResponse.Builder, lgraph.Lgraph.ListUserResponseOrBuilder> - getListUserResponseFieldBuilder() { - if (listUserResponseBuilder_ == null) { - if (!(respCase_ == 10)) { - resp_ = lgraph.Lgraph.ListUserResponse.getDefaultInstance(); - } - listUserResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListUserResponse, lgraph.Lgraph.ListUserResponse.Builder, lgraph.Lgraph.ListUserResponseOrBuilder>( - (lgraph.Lgraph.ListUserResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 10; - onChanged();; - return listUserResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleResponse, lgraph.Lgraph.ListRoleResponse.Builder, lgraph.Lgraph.ListRoleResponseOrBuilder> listRoleResponseBuilder_; - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public boolean hasListRoleResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public lgraph.Lgraph.ListRoleResponse getListRoleResponse() { - if (listRoleResponseBuilder_ == null) { - if (respCase_ == 11) { - return (lgraph.Lgraph.ListRoleResponse) resp_; - } - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } else { - if (respCase_ == 11) { - return listRoleResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public Builder setListRoleResponse(lgraph.Lgraph.ListRoleResponse value) { - if (listRoleResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listRoleResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public Builder setListRoleResponse( - lgraph.Lgraph.ListRoleResponse.Builder builderForValue) { - if (listRoleResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listRoleResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public Builder mergeListRoleResponse(lgraph.Lgraph.ListRoleResponse value) { - if (listRoleResponseBuilder_ == null) { - if (respCase_ == 11 && - resp_ != lgraph.Lgraph.ListRoleResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ListRoleResponse.newBuilder((lgraph.Lgraph.ListRoleResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 11) { - listRoleResponseBuilder_.mergeFrom(value); - } - listRoleResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public Builder clearListRoleResponse() { - if (listRoleResponseBuilder_ == null) { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - } - listRoleResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public lgraph.Lgraph.ListRoleResponse.Builder getListRoleResponseBuilder() { - return getListRoleResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - public lgraph.Lgraph.ListRoleResponseOrBuilder getListRoleResponseOrBuilder() { - if ((respCase_ == 11) && (listRoleResponseBuilder_ != null)) { - return listRoleResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 11) { - return (lgraph.Lgraph.ListRoleResponse) resp_; - } - return lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListRoleResponse list_role_response = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleResponse, lgraph.Lgraph.ListRoleResponse.Builder, lgraph.Lgraph.ListRoleResponseOrBuilder> - getListRoleResponseFieldBuilder() { - if (listRoleResponseBuilder_ == null) { - if (!(respCase_ == 11)) { - resp_ = lgraph.Lgraph.ListRoleResponse.getDefaultInstance(); - } - listRoleResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListRoleResponse, lgraph.Lgraph.ListRoleResponse.Builder, lgraph.Lgraph.ListRoleResponseOrBuilder>( - (lgraph.Lgraph.ListRoleResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 11; - onChanged();; - return listRoleResponseBuilder_; - } - @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:lgraph.AclResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.AclResponse) - private static final lgraph.Lgraph.AclResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.AclResponse(); - } - - public static lgraph.Lgraph.AclResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AclResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AclResponse(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 lgraph.Lgraph.AclResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.Header) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required int32 type = 2; - */ - boolean hasType(); - /** - * required int32 type = 2; - */ - int getType(); - } - /** - *
-   *--------------------------------
-   * cypher
-   *--------------------------------
-   * 
- * - * Protobuf type {@code lgraph.Header} - */ - public static final class Header extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.Header) - HeaderOrBuilder { - private static final long serialVersionUID = 0L; - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Header() { - name_ = ""; - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - type_ = 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 lgraph.Lgraph.internal_static_lgraph_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Header.class, lgraph.Lgraph.Header.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * required int32 type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 type = 2; - */ - public int getType() { - return type_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, type_); - } - 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 lgraph.Lgraph.Header)) { - return super.equals(obj); - } - lgraph.Lgraph.Header other = (lgraph.Lgraph.Header) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && (getType() - == other.getType()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Header 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 lgraph.Lgraph.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Header 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 lgraph.Lgraph.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.Header 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(lgraph.Lgraph.Header 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; - } - /** - *
-     *--------------------------------
-     * cypher
-     *--------------------------------
-     * 
- * - * Protobuf type {@code lgraph.Header} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.Header) - lgraph.Lgraph.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_Header_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_Header_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.Header.class, lgraph.Lgraph.Header.Builder.class); - } - - // Construct using lgraph.Lgraph.Header.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_Header_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.Header getDefaultInstanceForType() { - return lgraph.Lgraph.Header.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.Header build() { - lgraph.Lgraph.Header result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.Header buildPartial() { - lgraph.Lgraph.Header result = new lgraph.Lgraph.Header(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.Header) { - return mergeFrom((lgraph.Lgraph.Header)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.Header other) { - if (other == lgraph.Lgraph.Header.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasType()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.Header parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.Header) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private int type_ ; - /** - * required int32 type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 type = 2; - */ - public int getType() { - return type_; - } - /** - * required int32 type = 2; - */ - public Builder setType(int value) { - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - /** - * required int32 type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = 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:lgraph.Header) - } - - // @@protoc_insertion_point(class_scope:lgraph.Header) - private static final lgraph.Lgraph.Header DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.Header(); - } - - public static lgraph.Lgraph.Header getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(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 lgraph.Lgraph.Header getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CypherResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.CypherResult) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.Header header = 1; - */ - java.util.List - getHeaderList(); - /** - * repeated .lgraph.Header header = 1; - */ - lgraph.Lgraph.Header getHeader(int index); - /** - * repeated .lgraph.Header header = 1; - */ - int getHeaderCount(); - /** - * repeated .lgraph.Header header = 1; - */ - java.util.List - getHeaderOrBuilderList(); - /** - * repeated .lgraph.Header header = 1; - */ - lgraph.Lgraph.HeaderOrBuilder getHeaderOrBuilder( - int index); - - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - java.util.List - getResultList(); - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - lgraph.Lgraph.ListOfProtoFieldData getResult(int index); - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - int getResultCount(); - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - java.util.List - getResultOrBuilderList(); - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getResultOrBuilder( - int index); - - /** - * required double elapsed = 3; - */ - boolean hasElapsed(); - /** - * required double elapsed = 3; - */ - double getElapsed(); - } - /** - * Protobuf type {@code lgraph.CypherResult} - */ - public static final class CypherResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.CypherResult) - CypherResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use CypherResult.newBuilder() to construct. - private CypherResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CypherResult() { - header_ = java.util.Collections.emptyList(); - result_ = java.util.Collections.emptyList(); - elapsed_ = 0D; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CypherResult( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - header_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - header_.add( - input.readMessage(lgraph.Lgraph.Header.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - result_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - result_.add( - input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry)); - break; - } - case 25: { - bitField0_ |= 0x00000001; - elapsed_ = input.readDouble(); - 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) == 0x00000001)) { - header_ = java.util.Collections.unmodifiableList(header_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - result_ = java.util.Collections.unmodifiableList(result_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CypherResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherResult.class, lgraph.Lgraph.CypherResult.Builder.class); - } - - private int bitField0_; - public static final int HEADER_FIELD_NUMBER = 1; - private java.util.List header_; - /** - * repeated .lgraph.Header header = 1; - */ - public java.util.List getHeaderList() { - return header_; - } - /** - * repeated .lgraph.Header header = 1; - */ - public java.util.List - getHeaderOrBuilderList() { - return header_; - } - /** - * repeated .lgraph.Header header = 1; - */ - public int getHeaderCount() { - return header_.size(); - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.Header getHeader(int index) { - return header_.get(index); - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.HeaderOrBuilder getHeaderOrBuilder( - int index) { - return header_.get(index); - } - - public static final int RESULT_FIELD_NUMBER = 2; - private java.util.List result_; - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public java.util.List getResultList() { - return result_; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public java.util.List - getResultOrBuilderList() { - return result_; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public int getResultCount() { - return result_.size(); - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldData getResult(int index) { - return result_.get(index); - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getResultOrBuilder( - int index) { - return result_.get(index); - } - - public static final int ELAPSED_FIELD_NUMBER = 3; - private double elapsed_; - /** - * required double elapsed = 3; - */ - public boolean hasElapsed() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required double elapsed = 3; - */ - public double getElapsed() { - return elapsed_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasElapsed()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getHeaderCount(); i++) { - if (!getHeader(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < header_.size(); i++) { - output.writeMessage(1, header_.get(i)); - } - for (int i = 0; i < result_.size(); i++) { - output.writeMessage(2, result_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeDouble(3, elapsed_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < header_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, header_.get(i)); - } - for (int i = 0; i < result_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, result_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, elapsed_); - } - 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 lgraph.Lgraph.CypherResult)) { - return super.equals(obj); - } - lgraph.Lgraph.CypherResult other = (lgraph.Lgraph.CypherResult) obj; - - boolean result = true; - result = result && getHeaderList() - .equals(other.getHeaderList()); - result = result && getResultList() - .equals(other.getResultList()); - result = result && (hasElapsed() == other.hasElapsed()); - if (hasElapsed()) { - result = result && ( - java.lang.Double.doubleToLongBits(getElapsed()) - == java.lang.Double.doubleToLongBits( - other.getElapsed())); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getHeaderCount() > 0) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeaderList().hashCode(); - } - if (getResultCount() > 0) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + getResultList().hashCode(); - } - if (hasElapsed()) { - hash = (37 * hash) + ELAPSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getElapsed())); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.CypherResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResult 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 lgraph.Lgraph.CypherResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResult 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 lgraph.Lgraph.CypherResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResult 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(lgraph.Lgraph.CypherResult 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 lgraph.CypherResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.CypherResult) - lgraph.Lgraph.CypherResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CypherResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherResult.class, lgraph.Lgraph.CypherResult.Builder.class); - } - - // Construct using lgraph.Lgraph.CypherResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getHeaderFieldBuilder(); - getResultFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - headerBuilder_.clear(); - } - if (resultBuilder_ == null) { - result_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - resultBuilder_.clear(); - } - elapsed_ = 0D; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_CypherResult_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.CypherResult getDefaultInstanceForType() { - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.CypherResult build() { - lgraph.Lgraph.CypherResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.CypherResult buildPartial() { - lgraph.Lgraph.CypherResult result = new lgraph.Lgraph.CypherResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (headerBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - header_ = java.util.Collections.unmodifiableList(header_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - if (resultBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - result_ = java.util.Collections.unmodifiableList(result_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000001; - } - result.elapsed_ = elapsed_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.CypherResult) { - return mergeFrom((lgraph.Lgraph.CypherResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.CypherResult other) { - if (other == lgraph.Lgraph.CypherResult.getDefaultInstance()) return this; - if (headerBuilder_ == null) { - if (!other.header_.isEmpty()) { - if (header_.isEmpty()) { - header_ = other.header_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHeaderIsMutable(); - header_.addAll(other.header_); - } - onChanged(); - } - } else { - if (!other.header_.isEmpty()) { - if (headerBuilder_.isEmpty()) { - headerBuilder_.dispose(); - headerBuilder_ = null; - header_ = other.header_; - bitField0_ = (bitField0_ & ~0x00000001); - headerBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeaderFieldBuilder() : null; - } else { - headerBuilder_.addAllMessages(other.header_); - } - } - } - if (resultBuilder_ == null) { - if (!other.result_.isEmpty()) { - if (result_.isEmpty()) { - result_ = other.result_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureResultIsMutable(); - result_.addAll(other.result_); - } - onChanged(); - } - } else { - if (!other.result_.isEmpty()) { - if (resultBuilder_.isEmpty()) { - resultBuilder_.dispose(); - resultBuilder_ = null; - result_ = other.result_; - bitField0_ = (bitField0_ & ~0x00000002); - resultBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResultFieldBuilder() : null; - } else { - resultBuilder_.addAllMessages(other.result_); - } - } - } - if (other.hasElapsed()) { - setElapsed(other.getElapsed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasElapsed()) { - return false; - } - for (int i = 0; i < getHeaderCount(); i++) { - if (!getHeader(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.CypherResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.CypherResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List header_ = - java.util.Collections.emptyList(); - private void ensureHeaderIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - header_ = new java.util.ArrayList(header_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Header, lgraph.Lgraph.Header.Builder, lgraph.Lgraph.HeaderOrBuilder> headerBuilder_; - - /** - * repeated .lgraph.Header header = 1; - */ - public java.util.List getHeaderList() { - if (headerBuilder_ == null) { - return java.util.Collections.unmodifiableList(header_); - } else { - return headerBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.Header header = 1; - */ - public int getHeaderCount() { - if (headerBuilder_ == null) { - return header_.size(); - } else { - return headerBuilder_.getCount(); - } - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.Header getHeader(int index) { - if (headerBuilder_ == null) { - return header_.get(index); - } else { - return headerBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder setHeader( - int index, lgraph.Lgraph.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeaderIsMutable(); - header_.set(index, value); - onChanged(); - } else { - headerBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder setHeader( - int index, lgraph.Lgraph.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - ensureHeaderIsMutable(); - header_.set(index, builderForValue.build()); - onChanged(); - } else { - headerBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder addHeader(lgraph.Lgraph.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeaderIsMutable(); - header_.add(value); - onChanged(); - } else { - headerBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder addHeader( - int index, lgraph.Lgraph.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHeaderIsMutable(); - header_.add(index, value); - onChanged(); - } else { - headerBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder addHeader( - lgraph.Lgraph.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - ensureHeaderIsMutable(); - header_.add(builderForValue.build()); - onChanged(); - } else { - headerBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder addHeader( - int index, lgraph.Lgraph.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - ensureHeaderIsMutable(); - header_.add(index, builderForValue.build()); - onChanged(); - } else { - headerBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder addAllHeader( - java.lang.Iterable values) { - if (headerBuilder_ == null) { - ensureHeaderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, header_); - onChanged(); - } else { - headerBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - headerBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public Builder removeHeader(int index) { - if (headerBuilder_ == null) { - ensureHeaderIsMutable(); - header_.remove(index); - onChanged(); - } else { - headerBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.Header.Builder getHeaderBuilder( - int index) { - return getHeaderFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.HeaderOrBuilder getHeaderOrBuilder( - int index) { - if (headerBuilder_ == null) { - return header_.get(index); } else { - return headerBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.Header header = 1; - */ - public java.util.List - getHeaderOrBuilderList() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(header_); - } - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.Header.Builder addHeaderBuilder() { - return getHeaderFieldBuilder().addBuilder( - lgraph.Lgraph.Header.getDefaultInstance()); - } - /** - * repeated .lgraph.Header header = 1; - */ - public lgraph.Lgraph.Header.Builder addHeaderBuilder( - int index) { - return getHeaderFieldBuilder().addBuilder( - index, lgraph.Lgraph.Header.getDefaultInstance()); - } - /** - * repeated .lgraph.Header header = 1; - */ - public java.util.List - getHeaderBuilderList() { - return getHeaderFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Header, lgraph.Lgraph.Header.Builder, lgraph.Lgraph.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.Header, lgraph.Lgraph.Header.Builder, lgraph.Lgraph.HeaderOrBuilder>( - header_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private java.util.List result_ = - java.util.Collections.emptyList(); - private void ensureResultIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - result_ = new java.util.ArrayList(result_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> resultBuilder_; - - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public java.util.List getResultList() { - if (resultBuilder_ == null) { - return java.util.Collections.unmodifiableList(result_); - } else { - return resultBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public int getResultCount() { - if (resultBuilder_ == null) { - return result_.size(); - } else { - return resultBuilder_.getCount(); - } - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldData getResult(int index) { - if (resultBuilder_ == null) { - return result_.get(index); - } else { - return resultBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder setResult( - int index, lgraph.Lgraph.ListOfProtoFieldData value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.set(index, value); - onChanged(); - } else { - resultBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder setResult( - int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.set(index, builderForValue.build()); - onChanged(); - } else { - resultBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder addResult(lgraph.Lgraph.ListOfProtoFieldData value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(value); - onChanged(); - } else { - resultBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder addResult( - int index, lgraph.Lgraph.ListOfProtoFieldData value) { - if (resultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultIsMutable(); - result_.add(index, value); - onChanged(); - } else { - resultBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder addResult( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.add(builderForValue.build()); - onChanged(); - } else { - resultBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder addResult( - int index, lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.add(index, builderForValue.build()); - onChanged(); - } else { - resultBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder addAllResult( - java.lang.Iterable values) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, result_); - onChanged(); - } else { - resultBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - resultBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public Builder removeResult(int index) { - if (resultBuilder_ == null) { - ensureResultIsMutable(); - result_.remove(index); - onChanged(); - } else { - resultBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getResultBuilder( - int index) { - return getResultFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getResultOrBuilder( - int index) { - if (resultBuilder_ == null) { - return result_.get(index); } else { - return resultBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public java.util.List - getResultOrBuilderList() { - if (resultBuilder_ != null) { - return resultBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(result_); - } - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder addResultBuilder() { - return getResultFieldBuilder().addBuilder( - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder addResultBuilder( - int index) { - return getResultFieldBuilder().addBuilder( - index, lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()); - } - /** - * repeated .lgraph.ListOfProtoFieldData result = 2; - */ - public java.util.List - getResultBuilderList() { - return getResultFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getResultFieldBuilder() { - if (resultBuilder_ == null) { - resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - result_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - result_ = null; - } - return resultBuilder_; - } - - private double elapsed_ ; - /** - * required double elapsed = 3; - */ - public boolean hasElapsed() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required double elapsed = 3; - */ - public double getElapsed() { - return elapsed_; - } - /** - * required double elapsed = 3; - */ - public Builder setElapsed(double value) { - bitField0_ |= 0x00000004; - elapsed_ = value; - onChanged(); - return this; - } - /** - * required double elapsed = 3; - */ - public Builder clearElapsed() { - bitField0_ = (bitField0_ & ~0x00000004); - elapsed_ = 0D; - 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:lgraph.CypherResult) - } - - // @@protoc_insertion_point(class_scope:lgraph.CypherResult) - private static final lgraph.Lgraph.CypherResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.CypherResult(); - } - - public static lgraph.Lgraph.CypherResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CypherResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CypherResult(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 lgraph.Lgraph.CypherResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CypherRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.CypherRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string query = 1; - */ - boolean hasQuery(); - /** - * required string query = 1; - */ - java.lang.String getQuery(); - /** - * required string query = 1; - */ - com.google.protobuf.ByteString - getQueryBytes(); - - /** - * repeated string param_names = 2; - */ - java.util.List - getParamNamesList(); - /** - * repeated string param_names = 2; - */ - int getParamNamesCount(); - /** - * repeated string param_names = 2; - */ - java.lang.String getParamNames(int index); - /** - * repeated string param_names = 2; - */ - com.google.protobuf.ByteString - getParamNamesBytes(int index); - - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - boolean hasParamValues(); - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - lgraph.Lgraph.ListOfProtoFieldData getParamValues(); - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getParamValuesOrBuilder(); - - /** - * required bool result_in_json_format = 4; - */ - boolean hasResultInJsonFormat(); - /** - * required bool result_in_json_format = 4; - */ - boolean getResultInJsonFormat(); - - /** - * optional string graph = 5; - */ - boolean hasGraph(); - /** - * optional string graph = 5; - */ - java.lang.String getGraph(); - /** - * optional string graph = 5; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - /** - * optional double timeout = 6; - */ - boolean hasTimeout(); - /** - * optional double timeout = 6; - */ - double getTimeout(); - - /** - * optional int64 per_node_limit = 7; - */ - boolean hasPerNodeLimit(); - /** - * optional int64 per_node_limit = 7; - */ - long getPerNodeLimit(); - } - /** - * Protobuf type {@code lgraph.CypherRequest} - */ - public static final class CypherRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.CypherRequest) - CypherRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CypherRequest.newBuilder() to construct. - private CypherRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CypherRequest() { - query_ = ""; - paramNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - resultInJsonFormat_ = false; - graph_ = ""; - timeout_ = 0D; - perNodeLimit_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CypherRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - query_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - paramNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - paramNames_.add(bs); - break; - } - case 26: { - lgraph.Lgraph.ListOfProtoFieldData.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = paramValues_.toBuilder(); - } - paramValues_ = input.readMessage(lgraph.Lgraph.ListOfProtoFieldData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paramValues_); - paramValues_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 32: { - bitField0_ |= 0x00000004; - resultInJsonFormat_ = input.readBool(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - graph_ = bs; - break; - } - case 49: { - bitField0_ |= 0x00000010; - timeout_ = input.readDouble(); - break; - } - case 56: { - bitField0_ |= 0x00000020; - perNodeLimit_ = input.readInt64(); - 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_ & 0x00000002) == 0x00000002)) { - paramNames_ = paramNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CypherRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherRequest.class, lgraph.Lgraph.CypherRequest.Builder.class); - } - - private int bitField0_; - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * required string query = 1; - */ - public boolean hasQuery() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - query_ = s; - } - return s; - } - } - /** - * required string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAM_NAMES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList paramNames_; - /** - * repeated string param_names = 2; - */ - public com.google.protobuf.ProtocolStringList - getParamNamesList() { - return paramNames_; - } - /** - * repeated string param_names = 2; - */ - public int getParamNamesCount() { - return paramNames_.size(); - } - /** - * repeated string param_names = 2; - */ - public java.lang.String getParamNames(int index) { - return paramNames_.get(index); - } - /** - * repeated string param_names = 2; - */ - public com.google.protobuf.ByteString - getParamNamesBytes(int index) { - return paramNames_.getByteString(index); - } - - public static final int PARAM_VALUES_FIELD_NUMBER = 3; - private lgraph.Lgraph.ListOfProtoFieldData paramValues_; - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public boolean hasParamValues() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getParamValues() { - return paramValues_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : paramValues_; - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getParamValuesOrBuilder() { - return paramValues_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : paramValues_; - } - - public static final int RESULT_IN_JSON_FORMAT_FIELD_NUMBER = 4; - private boolean resultInJsonFormat_; - /** - * required bool result_in_json_format = 4; - */ - public boolean hasResultInJsonFormat() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool result_in_json_format = 4; - */ - public boolean getResultInJsonFormat() { - return resultInJsonFormat_; - } - - public static final int GRAPH_FIELD_NUMBER = 5; - private volatile java.lang.Object graph_; - /** - * optional string graph = 5; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string graph = 5; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * optional string graph = 5; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_FIELD_NUMBER = 6; - private double timeout_; - /** - * optional double timeout = 6; - */ - public boolean hasTimeout() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional double timeout = 6; - */ - public double getTimeout() { - return timeout_; - } - - public static final int PER_NODE_LIMIT_FIELD_NUMBER = 7; - private long perNodeLimit_; - /** - * optional int64 per_node_limit = 7; - */ - public boolean hasPerNodeLimit() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int64 per_node_limit = 7; - */ - public long getPerNodeLimit() { - return perNodeLimit_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasQuery()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasResultInJsonFormat()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - for (int i = 0; i < paramNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, paramNames_.getRaw(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(3, getParamValues()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(4, resultInJsonFormat_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, graph_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeDouble(6, timeout_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt64(7, perNodeLimit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - { - int dataSize = 0; - for (int i = 0; i < paramNames_.size(); i++) { - dataSize += computeStringSizeNoTag(paramNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getParamNamesList().size(); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getParamValues()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, resultInJsonFormat_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, graph_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, timeout_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, perNodeLimit_); - } - 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 lgraph.Lgraph.CypherRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.CypherRequest other = (lgraph.Lgraph.CypherRequest) obj; - - boolean result = true; - result = result && (hasQuery() == other.hasQuery()); - if (hasQuery()) { - result = result && getQuery() - .equals(other.getQuery()); - } - result = result && getParamNamesList() - .equals(other.getParamNamesList()); - result = result && (hasParamValues() == other.hasParamValues()); - if (hasParamValues()) { - result = result && getParamValues() - .equals(other.getParamValues()); - } - result = result && (hasResultInJsonFormat() == other.hasResultInJsonFormat()); - if (hasResultInJsonFormat()) { - result = result && (getResultInJsonFormat() - == other.getResultInJsonFormat()); - } - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && (hasTimeout() == other.hasTimeout()); - if (hasTimeout()) { - result = result && ( - java.lang.Double.doubleToLongBits(getTimeout()) - == java.lang.Double.doubleToLongBits( - other.getTimeout())); - } - result = result && (hasPerNodeLimit() == other.hasPerNodeLimit()); - if (hasPerNodeLimit()) { - result = result && (getPerNodeLimit() - == other.getPerNodeLimit()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQuery()) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - } - if (getParamNamesCount() > 0) { - hash = (37 * hash) + PARAM_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getParamNamesList().hashCode(); - } - if (hasParamValues()) { - hash = (37 * hash) + PARAM_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getParamValues().hashCode(); - } - if (hasResultInJsonFormat()) { - hash = (37 * hash) + RESULT_IN_JSON_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResultInJsonFormat()); - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTimeout())); - } - if (hasPerNodeLimit()) { - hash = (37 * hash) + PER_NODE_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPerNodeLimit()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.CypherRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherRequest 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 lgraph.Lgraph.CypherRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherRequest 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 lgraph.Lgraph.CypherRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherRequest 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(lgraph.Lgraph.CypherRequest 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 lgraph.CypherRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.CypherRequest) - lgraph.Lgraph.CypherRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CypherRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherRequest.class, lgraph.Lgraph.CypherRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.CypherRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getParamValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - query_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - paramNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - if (paramValuesBuilder_ == null) { - paramValues_ = null; - } else { - paramValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - resultInJsonFormat_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - timeout_ = 0D; - bitField0_ = (bitField0_ & ~0x00000020); - perNodeLimit_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_CypherRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.CypherRequest getDefaultInstanceForType() { - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.CypherRequest build() { - lgraph.Lgraph.CypherRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.CypherRequest buildPartial() { - lgraph.Lgraph.CypherRequest result = new lgraph.Lgraph.CypherRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.query_ = query_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - paramNames_ = paramNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.paramNames_ = paramNames_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - if (paramValuesBuilder_ == null) { - result.paramValues_ = paramValues_; - } else { - result.paramValues_ = paramValuesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - result.resultInJsonFormat_ = resultInJsonFormat_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.graph_ = graph_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.timeout_ = timeout_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.perNodeLimit_ = perNodeLimit_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.CypherRequest) { - return mergeFrom((lgraph.Lgraph.CypherRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.CypherRequest other) { - if (other == lgraph.Lgraph.CypherRequest.getDefaultInstance()) return this; - if (other.hasQuery()) { - bitField0_ |= 0x00000001; - query_ = other.query_; - onChanged(); - } - if (!other.paramNames_.isEmpty()) { - if (paramNames_.isEmpty()) { - paramNames_ = other.paramNames_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureParamNamesIsMutable(); - paramNames_.addAll(other.paramNames_); - } - onChanged(); - } - if (other.hasParamValues()) { - mergeParamValues(other.getParamValues()); - } - if (other.hasResultInJsonFormat()) { - setResultInJsonFormat(other.getResultInJsonFormat()); - } - if (other.hasGraph()) { - bitField0_ |= 0x00000010; - graph_ = other.graph_; - onChanged(); - } - if (other.hasTimeout()) { - setTimeout(other.getTimeout()); - } - if (other.hasPerNodeLimit()) { - setPerNodeLimit(other.getPerNodeLimit()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasQuery()) { - return false; - } - if (!hasResultInJsonFormat()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.CypherRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.CypherRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object query_ = ""; - /** - * required string query = 1; - */ - public boolean hasQuery() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - query_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string query = 1; - */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - query_ = value; - onChanged(); - return this; - } - /** - * required string query = 1; - */ - public Builder clearQuery() { - bitField0_ = (bitField0_ & ~0x00000001); - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * required string query = 1; - */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - query_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList paramNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureParamNamesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - paramNames_ = new com.google.protobuf.LazyStringArrayList(paramNames_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string param_names = 2; - */ - public com.google.protobuf.ProtocolStringList - getParamNamesList() { - return paramNames_.getUnmodifiableView(); - } - /** - * repeated string param_names = 2; - */ - public int getParamNamesCount() { - return paramNames_.size(); - } - /** - * repeated string param_names = 2; - */ - public java.lang.String getParamNames(int index) { - return paramNames_.get(index); - } - /** - * repeated string param_names = 2; - */ - public com.google.protobuf.ByteString - getParamNamesBytes(int index) { - return paramNames_.getByteString(index); - } - /** - * repeated string param_names = 2; - */ - public Builder setParamNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamNamesIsMutable(); - paramNames_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string param_names = 2; - */ - public Builder addParamNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamNamesIsMutable(); - paramNames_.add(value); - onChanged(); - return this; - } - /** - * repeated string param_names = 2; - */ - public Builder addAllParamNames( - java.lang.Iterable values) { - ensureParamNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, paramNames_); - onChanged(); - return this; - } - /** - * repeated string param_names = 2; - */ - public Builder clearParamNames() { - paramNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string param_names = 2; - */ - public Builder addParamNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamNamesIsMutable(); - paramNames_.add(value); - onChanged(); - return this; - } - - private lgraph.Lgraph.ListOfProtoFieldData paramValues_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> paramValuesBuilder_; - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public boolean hasParamValues() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData getParamValues() { - if (paramValuesBuilder_ == null) { - return paramValues_ == null ? lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : paramValues_; - } else { - return paramValuesBuilder_.getMessage(); - } - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public Builder setParamValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (paramValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paramValues_ = value; - onChanged(); - } else { - paramValuesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public Builder setParamValues( - lgraph.Lgraph.ListOfProtoFieldData.Builder builderForValue) { - if (paramValuesBuilder_ == null) { - paramValues_ = builderForValue.build(); - onChanged(); - } else { - paramValuesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public Builder mergeParamValues(lgraph.Lgraph.ListOfProtoFieldData value) { - if (paramValuesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - paramValues_ != null && - paramValues_ != lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance()) { - paramValues_ = - lgraph.Lgraph.ListOfProtoFieldData.newBuilder(paramValues_).mergeFrom(value).buildPartial(); - } else { - paramValues_ = value; - } - onChanged(); - } else { - paramValuesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public Builder clearParamValues() { - if (paramValuesBuilder_ == null) { - paramValues_ = null; - onChanged(); - } else { - paramValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldData.Builder getParamValuesBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getParamValuesFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - public lgraph.Lgraph.ListOfProtoFieldDataOrBuilder getParamValuesOrBuilder() { - if (paramValuesBuilder_ != null) { - return paramValuesBuilder_.getMessageOrBuilder(); - } else { - return paramValues_ == null ? - lgraph.Lgraph.ListOfProtoFieldData.getDefaultInstance() : paramValues_; - } - } - /** - * optional .lgraph.ListOfProtoFieldData param_values = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder> - getParamValuesFieldBuilder() { - if (paramValuesBuilder_ == null) { - paramValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListOfProtoFieldData, lgraph.Lgraph.ListOfProtoFieldData.Builder, lgraph.Lgraph.ListOfProtoFieldDataOrBuilder>( - getParamValues(), - getParentForChildren(), - isClean()); - paramValues_ = null; - } - return paramValuesBuilder_; - } - - private boolean resultInJsonFormat_ ; - /** - * required bool result_in_json_format = 4; - */ - public boolean hasResultInJsonFormat() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required bool result_in_json_format = 4; - */ - public boolean getResultInJsonFormat() { - return resultInJsonFormat_; - } - /** - * required bool result_in_json_format = 4; - */ - public Builder setResultInJsonFormat(boolean value) { - bitField0_ |= 0x00000008; - resultInJsonFormat_ = value; - onChanged(); - return this; - } - /** - * required bool result_in_json_format = 4; - */ - public Builder clearResultInJsonFormat() { - bitField0_ = (bitField0_ & ~0x00000008); - resultInJsonFormat_ = false; - onChanged(); - return this; - } - - private java.lang.Object graph_ = ""; - /** - * optional string graph = 5; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string graph = 5; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string graph = 5; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string graph = 5; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - graph_ = value; - onChanged(); - return this; - } - /** - * optional string graph = 5; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000010); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * optional string graph = 5; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - graph_ = value; - onChanged(); - return this; - } - - private double timeout_ ; - /** - * optional double timeout = 6; - */ - public boolean hasTimeout() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional double timeout = 6; - */ - public double getTimeout() { - return timeout_; - } - /** - * optional double timeout = 6; - */ - public Builder setTimeout(double value) { - bitField0_ |= 0x00000020; - timeout_ = value; - onChanged(); - return this; - } - /** - * optional double timeout = 6; - */ - public Builder clearTimeout() { - bitField0_ = (bitField0_ & ~0x00000020); - timeout_ = 0D; - onChanged(); - return this; - } - - private long perNodeLimit_ ; - /** - * optional int64 per_node_limit = 7; - */ - public boolean hasPerNodeLimit() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int64 per_node_limit = 7; - */ - public long getPerNodeLimit() { - return perNodeLimit_; - } - /** - * optional int64 per_node_limit = 7; - */ - public Builder setPerNodeLimit(long value) { - bitField0_ |= 0x00000040; - perNodeLimit_ = value; - onChanged(); - return this; - } - /** - * optional int64 per_node_limit = 7; - */ - public Builder clearPerNodeLimit() { - bitField0_ = (bitField0_ & ~0x00000040); - perNodeLimit_ = 0L; - 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:lgraph.CypherRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.CypherRequest) - private static final lgraph.Lgraph.CypherRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.CypherRequest(); - } - - public static lgraph.Lgraph.CypherRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CypherRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CypherRequest(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 lgraph.Lgraph.CypherRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CypherResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.CypherResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string json_result = 1; - */ - boolean hasJsonResult(); - /** - * optional string json_result = 1; - */ - java.lang.String getJsonResult(); - /** - * optional string json_result = 1; - */ - com.google.protobuf.ByteString - getJsonResultBytes(); - - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - boolean hasBinaryResult(); - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - lgraph.Lgraph.CypherResult getBinaryResult(); - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - lgraph.Lgraph.CypherResultOrBuilder getBinaryResultOrBuilder(); - - public lgraph.Lgraph.CypherResponse.ResultCase getResultCase(); - } - /** - * Protobuf type {@code lgraph.CypherResponse} - */ - public static final class CypherResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.CypherResponse) - CypherResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CypherResponse.newBuilder() to construct. - private CypherResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CypherResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CypherResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - resultCase_ = 1; - result_ = bs; - break; - } - case 18: { - lgraph.Lgraph.CypherResult.Builder subBuilder = null; - if (resultCase_ == 2) { - subBuilder = ((lgraph.Lgraph.CypherResult) result_).toBuilder(); - } - result_ = - input.readMessage(lgraph.Lgraph.CypherResult.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.CypherResult) result_); - result_ = subBuilder.buildPartial(); - } - resultCase_ = 2; - 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 lgraph.Lgraph.internal_static_lgraph_CypherResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherResponse.class, lgraph.Lgraph.CypherResponse.Builder.class); - } - - private int bitField0_; - private int resultCase_ = 0; - private java.lang.Object result_; - public enum ResultCase - implements com.google.protobuf.Internal.EnumLite { - JSON_RESULT(1), - BINARY_RESULT(2), - RESULT_NOT_SET(0); - private final int value; - private ResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResultCase valueOf(int value) { - return forNumber(value); - } - - public static ResultCase forNumber(int value) { - switch (value) { - case 1: return JSON_RESULT; - case 2: return BINARY_RESULT; - case 0: return RESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); - } - - public static final int JSON_RESULT_FIELD_NUMBER = 1; - /** - * optional string json_result = 1; - */ - public boolean hasJsonResult() { - return resultCase_ == 1; - } - /** - * optional string json_result = 1; - */ - public java.lang.String getJsonResult() { - java.lang.Object ref = ""; - if (resultCase_ == 1) { - ref = result_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8() && (resultCase_ == 1)) { - result_ = s; - } - return s; - } - } - /** - * optional string json_result = 1; - */ - public com.google.protobuf.ByteString - getJsonResultBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 1) { - ref = result_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 1) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BINARY_RESULT_FIELD_NUMBER = 2; - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public boolean hasBinaryResult() { - return resultCase_ == 2; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public lgraph.Lgraph.CypherResult getBinaryResult() { - if (resultCase_ == 2) { - return (lgraph.Lgraph.CypherResult) result_; - } - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public lgraph.Lgraph.CypherResultOrBuilder getBinaryResultOrBuilder() { - if (resultCase_ == 2) { - return (lgraph.Lgraph.CypherResult) result_; - } - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasBinaryResult()) { - if (!getBinaryResult().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (resultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, result_); - } - if (resultCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.CypherResult) result_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, result_); - } - if (resultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.CypherResult) result_); - } - 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 lgraph.Lgraph.CypherResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.CypherResponse other = (lgraph.Lgraph.CypherResponse) obj; - - boolean result = true; - result = result && getResultCase().equals( - other.getResultCase()); - if (!result) return false; - switch (resultCase_) { - case 1: - result = result && getJsonResult() - .equals(other.getJsonResult()); - break; - case 2: - result = result && getBinaryResult() - .equals(other.getBinaryResult()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (resultCase_) { - case 1: - hash = (37 * hash) + JSON_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getJsonResult().hashCode(); - break; - case 2: - hash = (37 * hash) + BINARY_RESULT_FIELD_NUMBER; - hash = (53 * hash) + getBinaryResult().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.CypherResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CypherResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CypherResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResponse 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 lgraph.Lgraph.CypherResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResponse 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 lgraph.Lgraph.CypherResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CypherResponse 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(lgraph.Lgraph.CypherResponse 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 lgraph.CypherResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.CypherResponse) - lgraph.Lgraph.CypherResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CypherResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CypherResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CypherResponse.class, lgraph.Lgraph.CypherResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.CypherResponse.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(); - resultCase_ = 0; - result_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_CypherResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.CypherResponse getDefaultInstanceForType() { - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.CypherResponse build() { - lgraph.Lgraph.CypherResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.CypherResponse buildPartial() { - lgraph.Lgraph.CypherResponse result = new lgraph.Lgraph.CypherResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (resultCase_ == 1) { - result.result_ = result_; - } - if (resultCase_ == 2) { - if (binaryResultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = binaryResultBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.resultCase_ = resultCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.CypherResponse) { - return mergeFrom((lgraph.Lgraph.CypherResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.CypherResponse other) { - if (other == lgraph.Lgraph.CypherResponse.getDefaultInstance()) return this; - switch (other.getResultCase()) { - case JSON_RESULT: { - resultCase_ = 1; - result_ = other.result_; - onChanged(); - break; - } - case BINARY_RESULT: { - mergeBinaryResult(other.getBinaryResult()); - break; - } - case RESULT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasBinaryResult()) { - if (!getBinaryResult().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.CypherResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.CypherResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int resultCase_ = 0; - private java.lang.Object result_; - public ResultCase - getResultCase() { - return ResultCase.forNumber( - resultCase_); - } - - public Builder clearResult() { - resultCase_ = 0; - result_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * optional string json_result = 1; - */ - public boolean hasJsonResult() { - return resultCase_ == 1; - } - /** - * optional string json_result = 1; - */ - public java.lang.String getJsonResult() { - java.lang.Object ref = ""; - if (resultCase_ == 1) { - ref = result_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (resultCase_ == 1) { - if (bs.isValidUtf8()) { - result_ = s; - } - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string json_result = 1; - */ - public com.google.protobuf.ByteString - getJsonResultBytes() { - java.lang.Object ref = ""; - if (resultCase_ == 1) { - ref = result_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (resultCase_ == 1) { - result_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string json_result = 1; - */ - public Builder setJsonResult( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resultCase_ = 1; - result_ = value; - onChanged(); - return this; - } - /** - * optional string json_result = 1; - */ - public Builder clearJsonResult() { - if (resultCase_ == 1) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - return this; - } - /** - * optional string json_result = 1; - */ - public Builder setJsonResultBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - resultCase_ = 1; - result_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResult, lgraph.Lgraph.CypherResult.Builder, lgraph.Lgraph.CypherResultOrBuilder> binaryResultBuilder_; - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public boolean hasBinaryResult() { - return resultCase_ == 2; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public lgraph.Lgraph.CypherResult getBinaryResult() { - if (binaryResultBuilder_ == null) { - if (resultCase_ == 2) { - return (lgraph.Lgraph.CypherResult) result_; - } - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } else { - if (resultCase_ == 2) { - return binaryResultBuilder_.getMessage(); - } - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public Builder setBinaryResult(lgraph.Lgraph.CypherResult value) { - if (binaryResultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - result_ = value; - onChanged(); - } else { - binaryResultBuilder_.setMessage(value); - } - resultCase_ = 2; - return this; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public Builder setBinaryResult( - lgraph.Lgraph.CypherResult.Builder builderForValue) { - if (binaryResultBuilder_ == null) { - result_ = builderForValue.build(); - onChanged(); - } else { - binaryResultBuilder_.setMessage(builderForValue.build()); - } - resultCase_ = 2; - return this; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public Builder mergeBinaryResult(lgraph.Lgraph.CypherResult value) { - if (binaryResultBuilder_ == null) { - if (resultCase_ == 2 && - result_ != lgraph.Lgraph.CypherResult.getDefaultInstance()) { - result_ = lgraph.Lgraph.CypherResult.newBuilder((lgraph.Lgraph.CypherResult) result_) - .mergeFrom(value).buildPartial(); - } else { - result_ = value; - } - onChanged(); - } else { - if (resultCase_ == 2) { - binaryResultBuilder_.mergeFrom(value); - } - binaryResultBuilder_.setMessage(value); - } - resultCase_ = 2; - return this; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public Builder clearBinaryResult() { - if (binaryResultBuilder_ == null) { - if (resultCase_ == 2) { - resultCase_ = 0; - result_ = null; - onChanged(); - } - } else { - if (resultCase_ == 2) { - resultCase_ = 0; - result_ = null; - } - binaryResultBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public lgraph.Lgraph.CypherResult.Builder getBinaryResultBuilder() { - return getBinaryResultFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - public lgraph.Lgraph.CypherResultOrBuilder getBinaryResultOrBuilder() { - if ((resultCase_ == 2) && (binaryResultBuilder_ != null)) { - return binaryResultBuilder_.getMessageOrBuilder(); - } else { - if (resultCase_ == 2) { - return (lgraph.Lgraph.CypherResult) result_; - } - return lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherResult binary_result = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResult, lgraph.Lgraph.CypherResult.Builder, lgraph.Lgraph.CypherResultOrBuilder> - getBinaryResultFieldBuilder() { - if (binaryResultBuilder_ == null) { - if (!(resultCase_ == 2)) { - result_ = lgraph.Lgraph.CypherResult.getDefaultInstance(); - } - binaryResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResult, lgraph.Lgraph.CypherResult.Builder, lgraph.Lgraph.CypherResultOrBuilder>( - (lgraph.Lgraph.CypherResult) result_, - getParentForChildren(), - isClean()); - result_ = null; - } - resultCase_ = 2; - onChanged();; - return binaryResultBuilder_; - } - @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:lgraph.CypherResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.CypherResponse) - private static final lgraph.Lgraph.CypherResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.CypherResponse(); - } - - public static lgraph.Lgraph.CypherResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CypherResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CypherResponse(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 lgraph.Lgraph.CypherResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ImportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ImportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string graph = 3; - */ - boolean hasGraph(); - /** - * required string graph = 3; - */ - java.lang.String getGraph(); - /** - * required string graph = 3; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - /** - * required string description = 4; - */ - boolean hasDescription(); - /** - * required string description = 4; - */ - java.lang.String getDescription(); - /** - * required string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * required string data = 5; - */ - boolean hasData(); - /** - * required string data = 5; - */ - java.lang.String getData(); - /** - * required string data = 5; - */ - com.google.protobuf.ByteString - getDataBytes(); - - /** - * required bool continue_on_error = 6; - */ - boolean hasContinueOnError(); - /** - * required bool continue_on_error = 6; - */ - boolean getContinueOnError(); - - /** - * required string delimiter = 7; - */ - boolean hasDelimiter(); - /** - * required string delimiter = 7; - */ - java.lang.String getDelimiter(); - /** - * required string delimiter = 7; - */ - com.google.protobuf.ByteString - getDelimiterBytes(); - } - /** - * Protobuf type {@code lgraph.ImportRequest} - */ - public static final class ImportRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ImportRequest) - ImportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ImportRequest.newBuilder() to construct. - private ImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportRequest() { - graph_ = ""; - description_ = ""; - data_ = ""; - continueOnError_ = false; - delimiter_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ImportRequest( - 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 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - graph_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - description_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - data_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000008; - continueOnError_ = input.readBool(); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - delimiter_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_ImportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ImportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ImportRequest.class, lgraph.Lgraph.ImportRequest.Builder.class); - } - - private int bitField0_; - public static final int GRAPH_FIELD_NUMBER = 3; - private volatile java.lang.Object graph_; - /** - * required string graph = 3; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string graph = 3; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * required string graph = 3; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - * required string description = 4; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * required string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FIELD_NUMBER = 5; - private volatile java.lang.Object data_; - /** - * required string data = 5; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string data = 5; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - data_ = s; - } - return s; - } - } - /** - * required string data = 5; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTINUE_ON_ERROR_FIELD_NUMBER = 6; - private boolean continueOnError_; - /** - * required bool continue_on_error = 6; - */ - public boolean hasContinueOnError() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required bool continue_on_error = 6; - */ - public boolean getContinueOnError() { - return continueOnError_; - } - - public static final int DELIMITER_FIELD_NUMBER = 7; - private volatile java.lang.Object delimiter_; - /** - * required string delimiter = 7; - */ - public boolean hasDelimiter() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required string delimiter = 7; - */ - public java.lang.String getDelimiter() { - java.lang.Object ref = delimiter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - delimiter_ = s; - } - return s; - } - } - /** - * required string delimiter = 7; - */ - public com.google.protobuf.ByteString - getDelimiterBytes() { - java.lang.Object ref = delimiter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delimiter_ = 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; - - if (!hasGraph()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDescription()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasData()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasContinueOnError()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDelimiter()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graph_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, data_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(6, continueOnError_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, delimiter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graph_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, data_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, continueOnError_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, delimiter_); - } - 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 lgraph.Lgraph.ImportRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ImportRequest other = (lgraph.Lgraph.ImportRequest) obj; - - boolean result = true; - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && (hasDescription() == other.hasDescription()); - if (hasDescription()) { - result = result && getDescription() - .equals(other.getDescription()); - } - result = result && (hasData() == other.hasData()); - if (hasData()) { - result = result && getData() - .equals(other.getData()); - } - result = result && (hasContinueOnError() == other.hasContinueOnError()); - if (hasContinueOnError()) { - result = result && (getContinueOnError() - == other.getContinueOnError()); - } - result = result && (hasDelimiter() == other.hasDelimiter()); - if (hasDelimiter()) { - result = result && getDelimiter() - .equals(other.getDelimiter()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - } - if (hasContinueOnError()) { - hash = (37 * hash) + CONTINUE_ON_ERROR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getContinueOnError()); - } - if (hasDelimiter()) { - hash = (37 * hash) + DELIMITER_FIELD_NUMBER; - hash = (53 * hash) + getDelimiter().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ImportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportRequest 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 lgraph.Lgraph.ImportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportRequest 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 lgraph.Lgraph.ImportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportRequest 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(lgraph.Lgraph.ImportRequest 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 lgraph.ImportRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ImportRequest) - lgraph.Lgraph.ImportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ImportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ImportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ImportRequest.class, lgraph.Lgraph.ImportRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ImportRequest.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(); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - data_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - continueOnError_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - delimiter_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ImportRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ImportRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ImportRequest build() { - lgraph.Lgraph.ImportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ImportRequest buildPartial() { - lgraph.Lgraph.ImportRequest result = new lgraph.Lgraph.ImportRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.graph_ = graph_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.data_ = data_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.continueOnError_ = continueOnError_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.delimiter_ = delimiter_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ImportRequest) { - return mergeFrom((lgraph.Lgraph.ImportRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ImportRequest other) { - if (other == lgraph.Lgraph.ImportRequest.getDefaultInstance()) return this; - if (other.hasGraph()) { - bitField0_ |= 0x00000001; - graph_ = other.graph_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000002; - description_ = other.description_; - onChanged(); - } - if (other.hasData()) { - bitField0_ |= 0x00000004; - data_ = other.data_; - onChanged(); - } - if (other.hasContinueOnError()) { - setContinueOnError(other.getContinueOnError()); - } - if (other.hasDelimiter()) { - bitField0_ |= 0x00000010; - delimiter_ = other.delimiter_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasGraph()) { - return false; - } - if (!hasDescription()) { - return false; - } - if (!hasData()) { - return false; - } - if (!hasContinueOnError()) { - return false; - } - if (!hasDelimiter()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ImportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ImportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object graph_ = ""; - /** - * required string graph = 3; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string graph = 3; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string graph = 3; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string graph = 3; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - graph_ = value; - onChanged(); - return this; - } - /** - * required string graph = 3; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000001); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * required string graph = 3; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - graph_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * required string description = 4; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - /** - * required string description = 4; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000002); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * required string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object data_ = ""; - /** - * required string data = 5; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string data = 5; - */ - public java.lang.String getData() { - java.lang.Object ref = data_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - data_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string data = 5; - */ - public com.google.protobuf.ByteString - getDataBytes() { - java.lang.Object ref = data_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - data_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string data = 5; - */ - public Builder setData( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - data_ = value; - onChanged(); - return this; - } - /** - * required string data = 5; - */ - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000004); - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - /** - * required string data = 5; - */ - public Builder setDataBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - data_ = value; - onChanged(); - return this; - } - - private boolean continueOnError_ ; - /** - * required bool continue_on_error = 6; - */ - public boolean hasContinueOnError() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required bool continue_on_error = 6; - */ - public boolean getContinueOnError() { - return continueOnError_; - } - /** - * required bool continue_on_error = 6; - */ - public Builder setContinueOnError(boolean value) { - bitField0_ |= 0x00000008; - continueOnError_ = value; - onChanged(); - return this; - } - /** - * required bool continue_on_error = 6; - */ - public Builder clearContinueOnError() { - bitField0_ = (bitField0_ & ~0x00000008); - continueOnError_ = false; - onChanged(); - return this; - } - - private java.lang.Object delimiter_ = ""; - /** - * required string delimiter = 7; - */ - public boolean hasDelimiter() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required string delimiter = 7; - */ - public java.lang.String getDelimiter() { - java.lang.Object ref = delimiter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - delimiter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string delimiter = 7; - */ - public com.google.protobuf.ByteString - getDelimiterBytes() { - java.lang.Object ref = delimiter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - delimiter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string delimiter = 7; - */ - public Builder setDelimiter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - delimiter_ = value; - onChanged(); - return this; - } - /** - * required string delimiter = 7; - */ - public Builder clearDelimiter() { - bitField0_ = (bitField0_ & ~0x00000010); - delimiter_ = getDefaultInstance().getDelimiter(); - onChanged(); - return this; - } - /** - * required string delimiter = 7; - */ - public Builder setDelimiterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - delimiter_ = 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:lgraph.ImportRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ImportRequest) - private static final lgraph.Lgraph.ImportRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ImportRequest(); - } - - public static lgraph.Lgraph.ImportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportRequest(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 lgraph.Lgraph.ImportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ImportResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ImportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string log = 1; - */ - boolean hasLog(); - /** - * optional string log = 1; - */ - java.lang.String getLog(); - /** - * optional string log = 1; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - * optional string error_message = 2; - */ - boolean hasErrorMessage(); - /** - * optional string error_message = 2; - */ - java.lang.String getErrorMessage(); - /** - * optional string error_message = 2; - */ - com.google.protobuf.ByteString - getErrorMessageBytes(); - } - /** - * Protobuf type {@code lgraph.ImportResponse} - */ - public static final class ImportResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ImportResponse) - ImportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ImportResponse.newBuilder() to construct. - private ImportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ImportResponse() { - log_ = ""; - errorMessage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ImportResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - log_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - errorMessage_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_ImportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ImportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ImportResponse.class, lgraph.Lgraph.ImportResponse.Builder.class); - } - - private int bitField0_; - public static final int LOG_FIELD_NUMBER = 1; - private volatile java.lang.Object log_; - /** - * optional string log = 1; - */ - public boolean hasLog() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string log = 1; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - log_ = s; - } - return s; - } - } - /** - * optional string log = 1; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object errorMessage_; - /** - * optional string error_message = 2; - */ - public boolean hasErrorMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string error_message = 2; - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - errorMessage_ = s; - } - return s; - } - } - /** - * optional string error_message = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorMessage_ = 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 (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, log_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, log_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); - } - 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 lgraph.Lgraph.ImportResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ImportResponse other = (lgraph.Lgraph.ImportResponse) obj; - - boolean result = true; - result = result && (hasLog() == other.hasLog()); - if (hasLog()) { - result = result && getLog() - .equals(other.getLog()); - } - result = result && (hasErrorMessage() == other.hasErrorMessage()); - if (hasErrorMessage()) { - result = result && getErrorMessage() - .equals(other.getErrorMessage()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLog()) { - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - } - if (hasErrorMessage()) { - hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getErrorMessage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ImportResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ImportResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ImportResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportResponse 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 lgraph.Lgraph.ImportResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportResponse 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 lgraph.Lgraph.ImportResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ImportResponse 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(lgraph.Lgraph.ImportResponse 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 lgraph.ImportResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ImportResponse) - lgraph.Lgraph.ImportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ImportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ImportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ImportResponse.class, lgraph.Lgraph.ImportResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ImportResponse.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(); - log_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - errorMessage_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ImportResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ImportResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ImportResponse build() { - lgraph.Lgraph.ImportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ImportResponse buildPartial() { - lgraph.Lgraph.ImportResponse result = new lgraph.Lgraph.ImportResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.log_ = log_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.errorMessage_ = errorMessage_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ImportResponse) { - return mergeFrom((lgraph.Lgraph.ImportResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ImportResponse other) { - if (other == lgraph.Lgraph.ImportResponse.getDefaultInstance()) return this; - if (other.hasLog()) { - bitField0_ |= 0x00000001; - log_ = other.log_; - onChanged(); - } - if (other.hasErrorMessage()) { - bitField0_ |= 0x00000002; - errorMessage_ = other.errorMessage_; - 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 { - lgraph.Lgraph.ImportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ImportResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object log_ = ""; - /** - * optional string log = 1; - */ - public boolean hasLog() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string log = 1; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - log_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string log = 1; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string log = 1; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - log_ = value; - onChanged(); - return this; - } - /** - * optional string log = 1; - */ - public Builder clearLog() { - bitField0_ = (bitField0_ & ~0x00000001); - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - * optional string log = 1; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object errorMessage_ = ""; - /** - * optional string error_message = 2; - */ - public boolean hasErrorMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string error_message = 2; - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - errorMessage_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string error_message = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string error_message = 2; - */ - public Builder setErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - errorMessage_ = value; - onChanged(); - return this; - } - /** - * optional string error_message = 2; - */ - public Builder clearErrorMessage() { - bitField0_ = (bitField0_ & ~0x00000002); - errorMessage_ = getDefaultInstance().getErrorMessage(); - onChanged(); - return this; - } - /** - * optional string error_message = 2; - */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - errorMessage_ = 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:lgraph.ImportResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ImportResponse) - private static final lgraph.Lgraph.ImportResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ImportResponse(); - } - - public static lgraph.Lgraph.ImportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportResponse(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 lgraph.Lgraph.ImportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string graph = 3; - */ - boolean hasGraph(); - /** - * required string graph = 3; - */ - java.lang.String getGraph(); - /** - * required string graph = 3; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - /** - * required string description = 4; - */ - boolean hasDescription(); - /** - * required string description = 4; - */ - java.lang.String getDescription(); - /** - * required string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - * Protobuf type {@code lgraph.SchemaRequest} - */ - public static final class SchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SchemaRequest) - SchemaRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaRequest.newBuilder() to construct. - private SchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaRequest() { - graph_ = ""; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaRequest( - 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 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - graph_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - description_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_SchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SchemaRequest.class, lgraph.Lgraph.SchemaRequest.Builder.class); - } - - private int bitField0_; - public static final int GRAPH_FIELD_NUMBER = 3; - private volatile java.lang.Object graph_; - /** - * required string graph = 3; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string graph = 3; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * required string graph = 3; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - * required string description = 4; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * required string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = 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; - - if (!hasGraph()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDescription()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, graph_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, graph_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - 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 lgraph.Lgraph.SchemaRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.SchemaRequest other = (lgraph.Lgraph.SchemaRequest) obj; - - boolean result = true; - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && (hasDescription() == other.hasDescription()); - if (hasDescription()) { - result = result && getDescription() - .equals(other.getDescription()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SchemaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaRequest 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 lgraph.Lgraph.SchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaRequest 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 lgraph.Lgraph.SchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaRequest 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(lgraph.Lgraph.SchemaRequest 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 lgraph.SchemaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SchemaRequest) - lgraph.Lgraph.SchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SchemaRequest.class, lgraph.Lgraph.SchemaRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.SchemaRequest.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(); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SchemaRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SchemaRequest getDefaultInstanceForType() { - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SchemaRequest build() { - lgraph.Lgraph.SchemaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SchemaRequest buildPartial() { - lgraph.Lgraph.SchemaRequest result = new lgraph.Lgraph.SchemaRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.graph_ = graph_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SchemaRequest) { - return mergeFrom((lgraph.Lgraph.SchemaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SchemaRequest other) { - if (other == lgraph.Lgraph.SchemaRequest.getDefaultInstance()) return this; - if (other.hasGraph()) { - bitField0_ |= 0x00000001; - graph_ = other.graph_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000002; - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasGraph()) { - return false; - } - if (!hasDescription()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SchemaRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SchemaRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object graph_ = ""; - /** - * required string graph = 3; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string graph = 3; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string graph = 3; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string graph = 3; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - graph_ = value; - onChanged(); - return this; - } - /** - * required string graph = 3; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000001); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * required string graph = 3; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - graph_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * required string description = 4; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - /** - * required string description = 4; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000002); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * required string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = 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:lgraph.SchemaRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.SchemaRequest) - private static final lgraph.Lgraph.SchemaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SchemaRequest(); - } - - public static lgraph.Lgraph.SchemaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaRequest(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 lgraph.Lgraph.SchemaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemaResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SchemaResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string log = 1; - */ - boolean hasLog(); - /** - * optional string log = 1; - */ - java.lang.String getLog(); - /** - * optional string log = 1; - */ - com.google.protobuf.ByteString - getLogBytes(); - - /** - * optional string error_message = 2; - */ - boolean hasErrorMessage(); - /** - * optional string error_message = 2; - */ - java.lang.String getErrorMessage(); - /** - * optional string error_message = 2; - */ - com.google.protobuf.ByteString - getErrorMessageBytes(); - } - /** - * Protobuf type {@code lgraph.SchemaResponse} - */ - public static final class SchemaResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SchemaResponse) - SchemaResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaResponse.newBuilder() to construct. - private SchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaResponse() { - log_ = ""; - errorMessage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaResponse( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - log_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - errorMessage_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_SchemaResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SchemaResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SchemaResponse.class, lgraph.Lgraph.SchemaResponse.Builder.class); - } - - private int bitField0_; - public static final int LOG_FIELD_NUMBER = 1; - private volatile java.lang.Object log_; - /** - * optional string log = 1; - */ - public boolean hasLog() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string log = 1; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - log_ = s; - } - return s; - } - } - /** - * optional string log = 1; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object errorMessage_; - /** - * optional string error_message = 2; - */ - public boolean hasErrorMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string error_message = 2; - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - errorMessage_ = s; - } - return s; - } - } - /** - * optional string error_message = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorMessage_ = 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 (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, log_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, log_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); - } - 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 lgraph.Lgraph.SchemaResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.SchemaResponse other = (lgraph.Lgraph.SchemaResponse) obj; - - boolean result = true; - result = result && (hasLog() == other.hasLog()); - if (hasLog()) { - result = result && getLog() - .equals(other.getLog()); - } - result = result && (hasErrorMessage() == other.hasErrorMessage()); - if (hasErrorMessage()) { - result = result && getErrorMessage() - .equals(other.getErrorMessage()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLog()) { - hash = (37 * hash) + LOG_FIELD_NUMBER; - hash = (53 * hash) + getLog().hashCode(); - } - if (hasErrorMessage()) { - hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getErrorMessage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SchemaResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SchemaResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SchemaResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaResponse 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 lgraph.Lgraph.SchemaResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaResponse 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 lgraph.Lgraph.SchemaResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SchemaResponse 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(lgraph.Lgraph.SchemaResponse 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 lgraph.SchemaResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SchemaResponse) - lgraph.Lgraph.SchemaResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SchemaResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SchemaResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SchemaResponse.class, lgraph.Lgraph.SchemaResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.SchemaResponse.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(); - log_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - errorMessage_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SchemaResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SchemaResponse getDefaultInstanceForType() { - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SchemaResponse build() { - lgraph.Lgraph.SchemaResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SchemaResponse buildPartial() { - lgraph.Lgraph.SchemaResponse result = new lgraph.Lgraph.SchemaResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.log_ = log_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.errorMessage_ = errorMessage_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SchemaResponse) { - return mergeFrom((lgraph.Lgraph.SchemaResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SchemaResponse other) { - if (other == lgraph.Lgraph.SchemaResponse.getDefaultInstance()) return this; - if (other.hasLog()) { - bitField0_ |= 0x00000001; - log_ = other.log_; - onChanged(); - } - if (other.hasErrorMessage()) { - bitField0_ |= 0x00000002; - errorMessage_ = other.errorMessage_; - 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 { - lgraph.Lgraph.SchemaResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SchemaResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object log_ = ""; - /** - * optional string log = 1; - */ - public boolean hasLog() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string log = 1; - */ - public java.lang.String getLog() { - java.lang.Object ref = log_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - log_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string log = 1; - */ - public com.google.protobuf.ByteString - getLogBytes() { - java.lang.Object ref = log_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - log_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string log = 1; - */ - public Builder setLog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - log_ = value; - onChanged(); - return this; - } - /** - * optional string log = 1; - */ - public Builder clearLog() { - bitField0_ = (bitField0_ & ~0x00000001); - log_ = getDefaultInstance().getLog(); - onChanged(); - return this; - } - /** - * optional string log = 1; - */ - public Builder setLogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - log_ = value; - onChanged(); - return this; - } - - private java.lang.Object errorMessage_ = ""; - /** - * optional string error_message = 2; - */ - public boolean hasErrorMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string error_message = 2; - */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - errorMessage_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string error_message = 2; - */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string error_message = 2; - */ - public Builder setErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - errorMessage_ = value; - onChanged(); - return this; - } - /** - * optional string error_message = 2; - */ - public Builder clearErrorMessage() { - bitField0_ = (bitField0_ & ~0x00000002); - errorMessage_ = getDefaultInstance().getErrorMessage(); - onChanged(); - return this; - } - /** - * optional string error_message = 2; - */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - errorMessage_ = 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:lgraph.SchemaResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.SchemaResponse) - private static final lgraph.Lgraph.SchemaResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SchemaResponse(); - } - - public static lgraph.Lgraph.SchemaResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaResponse(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 lgraph.Lgraph.SchemaResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CallPluginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.CallPluginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required bytes param = 2; - */ - boolean hasParam(); - /** - * required bytes param = 2; - */ - com.google.protobuf.ByteString getParam(); - - /** - * optional double timeout = 3; - */ - boolean hasTimeout(); - /** - * optional double timeout = 3; - */ - double getTimeout(); - - /** - * optional bool in_process = 4; - */ - boolean hasInProcess(); - /** - * optional bool in_process = 4; - */ - boolean getInProcess(); - } - /** - *
-   *--------------------------------
-   * plugin
-   *--------------------------------
-   * 
- * - * Protobuf type {@code lgraph.CallPluginRequest} - */ - public static final class CallPluginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.CallPluginRequest) - CallPluginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CallPluginRequest.newBuilder() to construct. - private CallPluginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CallPluginRequest() { - name_ = ""; - param_ = com.google.protobuf.ByteString.EMPTY; - timeout_ = 0D; - inProcess_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CallPluginRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - bitField0_ |= 0x00000002; - param_ = input.readBytes(); - break; - } - case 25: { - bitField0_ |= 0x00000004; - timeout_ = input.readDouble(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - inProcess_ = input.readBool(); - 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 lgraph.Lgraph.internal_static_lgraph_CallPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CallPluginRequest.class, lgraph.Lgraph.CallPluginRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAM_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString param_; - /** - * required bytes param = 2; - */ - public boolean hasParam() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes param = 2; - */ - public com.google.protobuf.ByteString getParam() { - return param_; - } - - public static final int TIMEOUT_FIELD_NUMBER = 3; - private double timeout_; - /** - * optional double timeout = 3; - */ - public boolean hasTimeout() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional double timeout = 3; - */ - public double getTimeout() { - return timeout_; - } - - public static final int IN_PROCESS_FIELD_NUMBER = 4; - private boolean inProcess_; - /** - * optional bool in_process = 4; - */ - public boolean hasInProcess() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool in_process = 4; - */ - public boolean getInProcess() { - return inProcess_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasParam()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, param_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeDouble(3, timeout_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, inProcess_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, param_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, timeout_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, inProcess_); - } - 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 lgraph.Lgraph.CallPluginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.CallPluginRequest other = (lgraph.Lgraph.CallPluginRequest) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasParam() == other.hasParam()); - if (hasParam()) { - result = result && getParam() - .equals(other.getParam()); - } - result = result && (hasTimeout() == other.hasTimeout()); - if (hasTimeout()) { - result = result && ( - java.lang.Double.doubleToLongBits(getTimeout()) - == java.lang.Double.doubleToLongBits( - other.getTimeout())); - } - result = result && (hasInProcess() == other.hasInProcess()); - if (hasInProcess()) { - result = result && (getInProcess() - == other.getInProcess()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasParam()) { - hash = (37 * hash) + PARAM_FIELD_NUMBER; - hash = (53 * hash) + getParam().hashCode(); - } - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getTimeout())); - } - if (hasInProcess()) { - hash = (37 * hash) + IN_PROCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInProcess()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.CallPluginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginRequest 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 lgraph.Lgraph.CallPluginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginRequest 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 lgraph.Lgraph.CallPluginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginRequest 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(lgraph.Lgraph.CallPluginRequest 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; - } - /** - *
-     *--------------------------------
-     * plugin
-     *--------------------------------
-     * 
- * - * Protobuf type {@code lgraph.CallPluginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.CallPluginRequest) - lgraph.Lgraph.CallPluginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CallPluginRequest.class, lgraph.Lgraph.CallPluginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.CallPluginRequest.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - param_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - timeout_ = 0D; - bitField0_ = (bitField0_ & ~0x00000004); - inProcess_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginRequest build() { - lgraph.Lgraph.CallPluginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginRequest buildPartial() { - lgraph.Lgraph.CallPluginRequest result = new lgraph.Lgraph.CallPluginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.param_ = param_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.timeout_ = timeout_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.inProcess_ = inProcess_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.CallPluginRequest) { - return mergeFrom((lgraph.Lgraph.CallPluginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.CallPluginRequest other) { - if (other == lgraph.Lgraph.CallPluginRequest.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasParam()) { - setParam(other.getParam()); - } - if (other.hasTimeout()) { - setTimeout(other.getTimeout()); - } - if (other.hasInProcess()) { - setInProcess(other.getInProcess()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasParam()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.CallPluginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.CallPluginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString param_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes param = 2; - */ - public boolean hasParam() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes param = 2; - */ - public com.google.protobuf.ByteString getParam() { - return param_; - } - /** - * required bytes param = 2; - */ - public Builder setParam(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - param_ = value; - onChanged(); - return this; - } - /** - * required bytes param = 2; - */ - public Builder clearParam() { - bitField0_ = (bitField0_ & ~0x00000002); - param_ = getDefaultInstance().getParam(); - onChanged(); - return this; - } - - private double timeout_ ; - /** - * optional double timeout = 3; - */ - public boolean hasTimeout() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional double timeout = 3; - */ - public double getTimeout() { - return timeout_; - } - /** - * optional double timeout = 3; - */ - public Builder setTimeout(double value) { - bitField0_ |= 0x00000004; - timeout_ = value; - onChanged(); - return this; - } - /** - * optional double timeout = 3; - */ - public Builder clearTimeout() { - bitField0_ = (bitField0_ & ~0x00000004); - timeout_ = 0D; - onChanged(); - return this; - } - - private boolean inProcess_ ; - /** - * optional bool in_process = 4; - */ - public boolean hasInProcess() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool in_process = 4; - */ - public boolean getInProcess() { - return inProcess_; - } - /** - * optional bool in_process = 4; - */ - public Builder setInProcess(boolean value) { - bitField0_ |= 0x00000008; - inProcess_ = value; - onChanged(); - return this; - } - /** - * optional bool in_process = 4; - */ - public Builder clearInProcess() { - bitField0_ = (bitField0_ & ~0x00000008); - inProcess_ = false; - 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:lgraph.CallPluginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.CallPluginRequest) - private static final lgraph.Lgraph.CallPluginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.CallPluginRequest(); - } - - public static lgraph.Lgraph.CallPluginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallPluginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallPluginRequest(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 lgraph.Lgraph.CallPluginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CallPluginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.CallPluginResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required bytes reply = 1; - */ - boolean hasReply(); - /** - * required bytes reply = 1; - */ - com.google.protobuf.ByteString getReply(); - } - /** - * Protobuf type {@code lgraph.CallPluginResponse} - */ - public static final class CallPluginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.CallPluginResponse) - CallPluginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CallPluginResponse.newBuilder() to construct. - private CallPluginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CallPluginResponse() { - reply_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CallPluginResponse( - 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: { - bitField0_ |= 0x00000001; - reply_ = input.readBytes(); - 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 lgraph.Lgraph.internal_static_lgraph_CallPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CallPluginResponse.class, lgraph.Lgraph.CallPluginResponse.Builder.class); - } - - private int bitField0_; - public static final int REPLY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString reply_; - /** - * required bytes reply = 1; - */ - public boolean hasReply() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes reply = 1; - */ - public com.google.protobuf.ByteString getReply() { - return reply_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasReply()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, reply_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, reply_); - } - 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 lgraph.Lgraph.CallPluginResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.CallPluginResponse other = (lgraph.Lgraph.CallPluginResponse) obj; - - boolean result = true; - result = result && (hasReply() == other.hasReply()); - if (hasReply()) { - result = result && getReply() - .equals(other.getReply()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasReply()) { - hash = (37 * hash) + REPLY_FIELD_NUMBER; - hash = (53 * hash) + getReply().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.CallPluginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.CallPluginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginResponse 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 lgraph.Lgraph.CallPluginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginResponse 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 lgraph.Lgraph.CallPluginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.CallPluginResponse 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(lgraph.Lgraph.CallPluginResponse 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 lgraph.CallPluginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.CallPluginResponse) - lgraph.Lgraph.CallPluginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.CallPluginResponse.class, lgraph.Lgraph.CallPluginResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.CallPluginResponse.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(); - reply_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_CallPluginResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginResponse getDefaultInstanceForType() { - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginResponse build() { - lgraph.Lgraph.CallPluginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.CallPluginResponse buildPartial() { - lgraph.Lgraph.CallPluginResponse result = new lgraph.Lgraph.CallPluginResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.reply_ = reply_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.CallPluginResponse) { - return mergeFrom((lgraph.Lgraph.CallPluginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.CallPluginResponse other) { - if (other == lgraph.Lgraph.CallPluginResponse.getDefaultInstance()) return this; - if (other.hasReply()) { - setReply(other.getReply()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasReply()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.CallPluginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.CallPluginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString reply_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes reply = 1; - */ - public boolean hasReply() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes reply = 1; - */ - public com.google.protobuf.ByteString getReply() { - return reply_; - } - /** - * required bytes reply = 1; - */ - public Builder setReply(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - reply_ = value; - onChanged(); - return this; - } - /** - * required bytes reply = 1; - */ - public Builder clearReply() { - bitField0_ = (bitField0_ & ~0x00000001); - reply_ = getDefaultInstance().getReply(); - 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:lgraph.CallPluginResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.CallPluginResponse) - private static final lgraph.Lgraph.CallPluginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.CallPluginResponse(); - } - - public static lgraph.Lgraph.CallPluginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CallPluginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallPluginResponse(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 lgraph.Lgraph.CallPluginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadPluginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LoadPluginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * required bool read_only = 2; - */ - boolean hasReadOnly(); - /** - * required bool read_only = 2; - */ - boolean getReadOnly(); - - /** - * required bytes code = 3; - */ - boolean hasCode(); - /** - * required bytes code = 3; - */ - com.google.protobuf.ByteString getCode(); - - /** - * optional string desc = 4; - */ - boolean hasDesc(); - /** - * optional string desc = 4; - */ - java.lang.String getDesc(); - /** - * optional string desc = 4; - */ - com.google.protobuf.ByteString - getDescBytes(); - - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - boolean hasCodeType(); - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - lgraph.Lgraph.LoadPluginRequest.CodeType getCodeType(); - } - /** - * Protobuf type {@code lgraph.LoadPluginRequest} - */ - public static final class LoadPluginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LoadPluginRequest) - LoadPluginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadPluginRequest.newBuilder() to construct. - private LoadPluginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadPluginRequest() { - name_ = ""; - readOnly_ = false; - code_ = com.google.protobuf.ByteString.EMPTY; - desc_ = ""; - codeType_ = 1; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadPluginRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - readOnly_ = input.readBool(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - code_ = input.readBytes(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - desc_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.LoadPluginRequest.CodeType value = lgraph.Lgraph.LoadPluginRequest.CodeType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - codeType_ = 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 lgraph.Lgraph.internal_static_lgraph_LoadPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoadPluginRequest.class, lgraph.Lgraph.LoadPluginRequest.Builder.class); - } - - /** - * Protobuf enum {@code lgraph.LoadPluginRequest.CodeType} - */ - public enum CodeType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PY = 1; - */ - PY(1), - /** - * SO = 2; - */ - SO(2), - /** - * CPP = 3; - */ - CPP(3), - /** - * ZIP = 4; - */ - ZIP(4), - ; - - /** - * PY = 1; - */ - public static final int PY_VALUE = 1; - /** - * SO = 2; - */ - public static final int SO_VALUE = 2; - /** - * CPP = 3; - */ - public static final int CPP_VALUE = 3; - /** - * ZIP = 4; - */ - public static final int ZIP_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CodeType valueOf(int value) { - return forNumber(value); - } - - public static CodeType forNumber(int value) { - switch (value) { - case 1: return PY; - case 2: return SO; - case 3: return CPP; - case 4: return ZIP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CodeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CodeType findValueByNumber(int number) { - return CodeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.LoadPluginRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final CodeType[] VALUES = values(); - - public static CodeType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CodeType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.LoadPluginRequest.CodeType) - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_ONLY_FIELD_NUMBER = 2; - private boolean readOnly_; - /** - * required bool read_only = 2; - */ - public boolean hasReadOnly() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bool read_only = 2; - */ - public boolean getReadOnly() { - return readOnly_; - } - - public static final int CODE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString code_; - /** - * required bytes code = 3; - */ - public boolean hasCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bytes code = 3; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - - public static final int DESC_FIELD_NUMBER = 4; - private volatile java.lang.Object desc_; - /** - * optional string desc = 4; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } - } - /** - * optional string desc = 4; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CODE_TYPE_FIELD_NUMBER = 5; - private int codeType_; - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public boolean hasCodeType() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public lgraph.Lgraph.LoadPluginRequest.CodeType getCodeType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LoadPluginRequest.CodeType result = lgraph.Lgraph.LoadPluginRequest.CodeType.valueOf(codeType_); - return result == null ? lgraph.Lgraph.LoadPluginRequest.CodeType.PY : 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; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReadOnly()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasCode()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, readOnly_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, code_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desc_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, codeType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, readOnly_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, code_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desc_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, codeType_); - } - 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 lgraph.Lgraph.LoadPluginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.LoadPluginRequest other = (lgraph.Lgraph.LoadPluginRequest) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasReadOnly() == other.hasReadOnly()); - if (hasReadOnly()) { - result = result && (getReadOnly() - == other.getReadOnly()); - } - result = result && (hasCode() == other.hasCode()); - if (hasCode()) { - result = result && getCode() - .equals(other.getCode()); - } - result = result && (hasDesc() == other.hasDesc()); - if (hasDesc()) { - result = result && getDesc() - .equals(other.getDesc()); - } - result = result && (hasCodeType() == other.hasCodeType()); - if (hasCodeType()) { - result = result && codeType_ == other.codeType_; - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasReadOnly()) { - hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReadOnly()); - } - if (hasCode()) { - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - } - if (hasDesc()) { - hash = (37 * hash) + DESC_FIELD_NUMBER; - hash = (53 * hash) + getDesc().hashCode(); - } - if (hasCodeType()) { - hash = (37 * hash) + CODE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + codeType_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LoadPluginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginRequest 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 lgraph.Lgraph.LoadPluginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginRequest 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 lgraph.Lgraph.LoadPluginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginRequest 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(lgraph.Lgraph.LoadPluginRequest 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 lgraph.LoadPluginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LoadPluginRequest) - lgraph.Lgraph.LoadPluginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoadPluginRequest.class, lgraph.Lgraph.LoadPluginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.LoadPluginRequest.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - readOnly_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - code_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - desc_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - codeType_ = 1; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginRequest build() { - lgraph.Lgraph.LoadPluginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginRequest buildPartial() { - lgraph.Lgraph.LoadPluginRequest result = new lgraph.Lgraph.LoadPluginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.readOnly_ = readOnly_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.code_ = code_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.desc_ = desc_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.codeType_ = codeType_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LoadPluginRequest) { - return mergeFrom((lgraph.Lgraph.LoadPluginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LoadPluginRequest other) { - if (other == lgraph.Lgraph.LoadPluginRequest.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasReadOnly()) { - setReadOnly(other.getReadOnly()); - } - if (other.hasCode()) { - setCode(other.getCode()); - } - if (other.hasDesc()) { - bitField0_ |= 0x00000008; - desc_ = other.desc_; - onChanged(); - } - if (other.hasCodeType()) { - setCodeType(other.getCodeType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - if (!hasReadOnly()) { - return false; - } - if (!hasCode()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LoadPluginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LoadPluginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private boolean readOnly_ ; - /** - * required bool read_only = 2; - */ - public boolean hasReadOnly() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bool read_only = 2; - */ - public boolean getReadOnly() { - return readOnly_; - } - /** - * required bool read_only = 2; - */ - public Builder setReadOnly(boolean value) { - bitField0_ |= 0x00000002; - readOnly_ = value; - onChanged(); - return this; - } - /** - * required bool read_only = 2; - */ - public Builder clearReadOnly() { - bitField0_ = (bitField0_ & ~0x00000002); - readOnly_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString code_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes code = 3; - */ - public boolean hasCode() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bytes code = 3; - */ - public com.google.protobuf.ByteString getCode() { - return code_; - } - /** - * required bytes code = 3; - */ - public Builder setCode(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - code_ = value; - onChanged(); - return this; - } - /** - * required bytes code = 3; - */ - public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000004); - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - - private java.lang.Object desc_ = ""; - /** - * optional string desc = 4; - */ - public boolean hasDesc() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string desc = 4; - */ - public java.lang.String getDesc() { - java.lang.Object ref = desc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - desc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string desc = 4; - */ - public com.google.protobuf.ByteString - getDescBytes() { - java.lang.Object ref = desc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - desc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string desc = 4; - */ - public Builder setDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = value; - onChanged(); - return this; - } - /** - * optional string desc = 4; - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000008); - desc_ = getDefaultInstance().getDesc(); - onChanged(); - return this; - } - /** - * optional string desc = 4; - */ - public Builder setDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - desc_ = value; - onChanged(); - return this; - } - - private int codeType_ = 1; - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public boolean hasCodeType() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public lgraph.Lgraph.LoadPluginRequest.CodeType getCodeType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LoadPluginRequest.CodeType result = lgraph.Lgraph.LoadPluginRequest.CodeType.valueOf(codeType_); - return result == null ? lgraph.Lgraph.LoadPluginRequest.CodeType.PY : result; - } - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public Builder setCodeType(lgraph.Lgraph.LoadPluginRequest.CodeType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - codeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .lgraph.LoadPluginRequest.CodeType code_type = 5; - */ - public Builder clearCodeType() { - bitField0_ = (bitField0_ & ~0x00000010); - codeType_ = 1; - 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:lgraph.LoadPluginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.LoadPluginRequest) - private static final lgraph.Lgraph.LoadPluginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LoadPluginRequest(); - } - - public static lgraph.Lgraph.LoadPluginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadPluginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadPluginRequest(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 lgraph.Lgraph.LoadPluginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadPluginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LoadPluginResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.LoadPluginResponse} - */ - public static final class LoadPluginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LoadPluginResponse) - LoadPluginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadPluginResponse.newBuilder() to construct. - private LoadPluginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadPluginResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadPluginResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_LoadPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoadPluginResponse.class, lgraph.Lgraph.LoadPluginResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.LoadPluginResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.LoadPluginResponse other = (lgraph.Lgraph.LoadPluginResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LoadPluginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LoadPluginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginResponse 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 lgraph.Lgraph.LoadPluginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginResponse 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 lgraph.Lgraph.LoadPluginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LoadPluginResponse 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(lgraph.Lgraph.LoadPluginResponse 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 lgraph.LoadPluginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LoadPluginResponse) - lgraph.Lgraph.LoadPluginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LoadPluginResponse.class, lgraph.Lgraph.LoadPluginResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.LoadPluginResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LoadPluginResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginResponse getDefaultInstanceForType() { - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginResponse build() { - lgraph.Lgraph.LoadPluginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LoadPluginResponse buildPartial() { - lgraph.Lgraph.LoadPluginResponse result = new lgraph.Lgraph.LoadPluginResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LoadPluginResponse) { - return mergeFrom((lgraph.Lgraph.LoadPluginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LoadPluginResponse other) { - if (other == lgraph.Lgraph.LoadPluginResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.LoadPluginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LoadPluginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.LoadPluginResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.LoadPluginResponse) - private static final lgraph.Lgraph.LoadPluginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LoadPluginResponse(); - } - - public static lgraph.Lgraph.LoadPluginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadPluginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadPluginResponse(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 lgraph.Lgraph.LoadPluginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelPluginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelPluginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code lgraph.DelPluginRequest} - */ - public static final class DelPluginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelPluginRequest) - DelPluginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelPluginRequest.newBuilder() to construct. - private DelPluginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelPluginRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelPluginRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_DelPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelPluginRequest.class, lgraph.Lgraph.DelPluginRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = 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; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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 lgraph.Lgraph.DelPluginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.DelPluginRequest other = (lgraph.Lgraph.DelPluginRequest) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelPluginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginRequest 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 lgraph.Lgraph.DelPluginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginRequest 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 lgraph.Lgraph.DelPluginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginRequest 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(lgraph.Lgraph.DelPluginRequest 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 lgraph.DelPluginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelPluginRequest) - lgraph.Lgraph.DelPluginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelPluginRequest.class, lgraph.Lgraph.DelPluginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.DelPluginRequest.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginRequest build() { - lgraph.Lgraph.DelPluginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginRequest buildPartial() { - lgraph.Lgraph.DelPluginRequest result = new lgraph.Lgraph.DelPluginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelPluginRequest) { - return mergeFrom((lgraph.Lgraph.DelPluginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelPluginRequest other) { - if (other == lgraph.Lgraph.DelPluginRequest.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasName()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.DelPluginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelPluginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = 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:lgraph.DelPluginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelPluginRequest) - private static final lgraph.Lgraph.DelPluginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelPluginRequest(); - } - - public static lgraph.Lgraph.DelPluginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelPluginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelPluginRequest(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 lgraph.Lgraph.DelPluginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DelPluginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.DelPluginResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.DelPluginResponse} - */ - public static final class DelPluginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.DelPluginResponse) - DelPluginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DelPluginResponse.newBuilder() to construct. - private DelPluginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DelPluginResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DelPluginResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_DelPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelPluginResponse.class, lgraph.Lgraph.DelPluginResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.DelPluginResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.DelPluginResponse other = (lgraph.Lgraph.DelPluginResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.DelPluginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.DelPluginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginResponse 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 lgraph.Lgraph.DelPluginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginResponse 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 lgraph.Lgraph.DelPluginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.DelPluginResponse 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(lgraph.Lgraph.DelPluginResponse 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 lgraph.DelPluginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.DelPluginResponse) - lgraph.Lgraph.DelPluginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.DelPluginResponse.class, lgraph.Lgraph.DelPluginResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.DelPluginResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_DelPluginResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginResponse getDefaultInstanceForType() { - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginResponse build() { - lgraph.Lgraph.DelPluginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.DelPluginResponse buildPartial() { - lgraph.Lgraph.DelPluginResponse result = new lgraph.Lgraph.DelPluginResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.DelPluginResponse) { - return mergeFrom((lgraph.Lgraph.DelPluginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.DelPluginResponse other) { - if (other == lgraph.Lgraph.DelPluginResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.DelPluginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.DelPluginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.DelPluginResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.DelPluginResponse) - private static final lgraph.Lgraph.DelPluginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.DelPluginResponse(); - } - - public static lgraph.Lgraph.DelPluginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DelPluginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DelPluginResponse(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 lgraph.Lgraph.DelPluginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListPluginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListPluginRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListPluginRequest} - */ - public static final class ListPluginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListPluginRequest) - ListPluginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPluginRequest.newBuilder() to construct. - private ListPluginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPluginRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListPluginRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPluginRequest.class, lgraph.Lgraph.ListPluginRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListPluginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListPluginRequest other = (lgraph.Lgraph.ListPluginRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListPluginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginRequest 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 lgraph.Lgraph.ListPluginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginRequest 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 lgraph.Lgraph.ListPluginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginRequest 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(lgraph.Lgraph.ListPluginRequest 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 lgraph.ListPluginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListPluginRequest) - lgraph.Lgraph.ListPluginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPluginRequest.class, lgraph.Lgraph.ListPluginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListPluginRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginRequest build() { - lgraph.Lgraph.ListPluginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginRequest buildPartial() { - lgraph.Lgraph.ListPluginRequest result = new lgraph.Lgraph.ListPluginRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListPluginRequest) { - return mergeFrom((lgraph.Lgraph.ListPluginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListPluginRequest other) { - if (other == lgraph.Lgraph.ListPluginRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListPluginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListPluginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListPluginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListPluginRequest) - private static final lgraph.Lgraph.ListPluginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListPluginRequest(); - } - - public static lgraph.Lgraph.ListPluginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPluginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPluginRequest(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 lgraph.Lgraph.ListPluginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListPluginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListPluginResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListPluginResponse} - */ - public static final class ListPluginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListPluginResponse) - ListPluginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPluginResponse.newBuilder() to construct. - private ListPluginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPluginResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListPluginResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPluginResponse.class, lgraph.Lgraph.ListPluginResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListPluginResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListPluginResponse other = (lgraph.Lgraph.ListPluginResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListPluginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPluginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginResponse 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 lgraph.Lgraph.ListPluginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginResponse 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 lgraph.Lgraph.ListPluginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPluginResponse 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(lgraph.Lgraph.ListPluginResponse 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 lgraph.ListPluginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListPluginResponse) - lgraph.Lgraph.ListPluginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPluginResponse.class, lgraph.Lgraph.ListPluginResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListPluginResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListPluginResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginResponse build() { - lgraph.Lgraph.ListPluginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListPluginResponse buildPartial() { - lgraph.Lgraph.ListPluginResponse result = new lgraph.Lgraph.ListPluginResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListPluginResponse) { - return mergeFrom((lgraph.Lgraph.ListPluginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListPluginResponse other) { - if (other == lgraph.Lgraph.ListPluginResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListPluginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListPluginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListPluginResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListPluginResponse) - private static final lgraph.Lgraph.ListPluginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListPluginResponse(); - } - - public static lgraph.Lgraph.ListPluginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPluginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPluginResponse(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 lgraph.Lgraph.ListPluginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PluginRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.PluginRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - boolean hasType(); - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - lgraph.Lgraph.PluginRequest.PluginType getType(); - - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - boolean hasLoadPluginRequest(); - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - lgraph.Lgraph.LoadPluginRequest getLoadPluginRequest(); - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - lgraph.Lgraph.LoadPluginRequestOrBuilder getLoadPluginRequestOrBuilder(); - - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - boolean hasDelPluginRequest(); - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - lgraph.Lgraph.DelPluginRequest getDelPluginRequest(); - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - lgraph.Lgraph.DelPluginRequestOrBuilder getDelPluginRequestOrBuilder(); - - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - boolean hasCallPluginRequest(); - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - lgraph.Lgraph.CallPluginRequest getCallPluginRequest(); - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - lgraph.Lgraph.CallPluginRequestOrBuilder getCallPluginRequestOrBuilder(); - - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - boolean hasListPluginRequest(); - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - lgraph.Lgraph.ListPluginRequest getListPluginRequest(); - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - lgraph.Lgraph.ListPluginRequestOrBuilder getListPluginRequestOrBuilder(); - - /** - * required string graph = 6; - */ - boolean hasGraph(); - /** - * required string graph = 6; - */ - java.lang.String getGraph(); - /** - * required string graph = 6; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - public lgraph.Lgraph.PluginRequest.ReqCase getReqCase(); - } - /** - * Protobuf type {@code lgraph.PluginRequest} - */ - public static final class PluginRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.PluginRequest) - PluginRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PluginRequest.newBuilder() to construct. - private PluginRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PluginRequest() { - type_ = 1; - graph_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PluginRequest( - 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 8: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.PluginRequest.PluginType value = lgraph.Lgraph.PluginRequest.PluginType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = rawValue; - } - break; - } - case 18: { - lgraph.Lgraph.LoadPluginRequest.Builder subBuilder = null; - if (reqCase_ == 2) { - subBuilder = ((lgraph.Lgraph.LoadPluginRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.LoadPluginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.LoadPluginRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.DelPluginRequest.Builder subBuilder = null; - if (reqCase_ == 3) { - subBuilder = ((lgraph.Lgraph.DelPluginRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.DelPluginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelPluginRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.CallPluginRequest.Builder subBuilder = null; - if (reqCase_ == 4) { - subBuilder = ((lgraph.Lgraph.CallPluginRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.CallPluginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.CallPluginRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 4; - break; - } - case 42: { - lgraph.Lgraph.ListPluginRequest.Builder subBuilder = null; - if (reqCase_ == 5) { - subBuilder = ((lgraph.Lgraph.ListPluginRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ListPluginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListPluginRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 5; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - graph_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_PluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PluginRequest.class, lgraph.Lgraph.PluginRequest.Builder.class); - } - - /** - * Protobuf enum {@code lgraph.PluginRequest.PluginType} - */ - public enum PluginType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CPP = 1; - */ - CPP(1), - /** - * PYTHON = 2; - */ - PYTHON(2), - ; - - /** - * CPP = 1; - */ - public static final int CPP_VALUE = 1; - /** - * PYTHON = 2; - */ - public static final int PYTHON_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PluginType valueOf(int value) { - return forNumber(value); - } - - public static PluginType forNumber(int value) { - switch (value) { - case 1: return CPP; - case 2: return PYTHON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PluginType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PluginType findValueByNumber(int number) { - return PluginType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.PluginRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final PluginType[] VALUES = values(); - - public static PluginType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PluginType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.PluginRequest.PluginType) - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - LOAD_PLUGIN_REQUEST(2), - DEL_PLUGIN_REQUEST(3), - CALL_PLUGIN_REQUEST(4), - LIST_PLUGIN_REQUEST(5), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 2: return LOAD_PLUGIN_REQUEST; - case 3: return DEL_PLUGIN_REQUEST; - case 4: return CALL_PLUGIN_REQUEST; - case 5: return LIST_PLUGIN_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public lgraph.Lgraph.PluginRequest.PluginType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.PluginRequest.PluginType result = lgraph.Lgraph.PluginRequest.PluginType.valueOf(type_); - return result == null ? lgraph.Lgraph.PluginRequest.PluginType.CPP : result; - } - - public static final int LOAD_PLUGIN_REQUEST_FIELD_NUMBER = 2; - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public boolean hasLoadPluginRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public lgraph.Lgraph.LoadPluginRequest getLoadPluginRequest() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.LoadPluginRequest) req_; - } - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public lgraph.Lgraph.LoadPluginRequestOrBuilder getLoadPluginRequestOrBuilder() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.LoadPluginRequest) req_; - } - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - - public static final int DEL_PLUGIN_REQUEST_FIELD_NUMBER = 3; - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public boolean hasDelPluginRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public lgraph.Lgraph.DelPluginRequest getDelPluginRequest() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.DelPluginRequest) req_; - } - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public lgraph.Lgraph.DelPluginRequestOrBuilder getDelPluginRequestOrBuilder() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.DelPluginRequest) req_; - } - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - - public static final int CALL_PLUGIN_REQUEST_FIELD_NUMBER = 4; - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public boolean hasCallPluginRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public lgraph.Lgraph.CallPluginRequest getCallPluginRequest() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.CallPluginRequest) req_; - } - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public lgraph.Lgraph.CallPluginRequestOrBuilder getCallPluginRequestOrBuilder() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.CallPluginRequest) req_; - } - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - - public static final int LIST_PLUGIN_REQUEST_FIELD_NUMBER = 5; - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public boolean hasListPluginRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public lgraph.Lgraph.ListPluginRequest getListPluginRequest() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.ListPluginRequest) req_; - } - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public lgraph.Lgraph.ListPluginRequestOrBuilder getListPluginRequestOrBuilder() { - if (reqCase_ == 5) { - return (lgraph.Lgraph.ListPluginRequest) req_; - } - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - - public static final int GRAPH_FIELD_NUMBER = 6; - private volatile java.lang.Object graph_; - /** - * required string graph = 6; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string graph = 6; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * required string graph = 6; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = 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; - - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasGraph()) { - memoizedIsInitialized = 0; - return false; - } - if (hasLoadPluginRequest()) { - if (!getLoadPluginRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasDelPluginRequest()) { - if (!getDelPluginRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCallPluginRequest()) { - if (!getCallPluginRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_); - } - if (reqCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.LoadPluginRequest) req_); - } - if (reqCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.DelPluginRequest) req_); - } - if (reqCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.CallPluginRequest) req_); - } - if (reqCase_ == 5) { - output.writeMessage(5, (lgraph.Lgraph.ListPluginRequest) req_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, graph_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (reqCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.LoadPluginRequest) req_); - } - if (reqCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.DelPluginRequest) req_); - } - if (reqCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.CallPluginRequest) req_); - } - if (reqCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (lgraph.Lgraph.ListPluginRequest) req_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, graph_); - } - 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 lgraph.Lgraph.PluginRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.PluginRequest other = (lgraph.Lgraph.PluginRequest) obj; - - boolean result = true; - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && type_ == other.type_; - } - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 2: - result = result && getLoadPluginRequest() - .equals(other.getLoadPluginRequest()); - break; - case 3: - result = result && getDelPluginRequest() - .equals(other.getDelPluginRequest()); - break; - case 4: - result = result && getCallPluginRequest() - .equals(other.getCallPluginRequest()); - break; - case 5: - result = result && getListPluginRequest() - .equals(other.getListPluginRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - switch (reqCase_) { - case 2: - hash = (37 * hash) + LOAD_PLUGIN_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getLoadPluginRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + DEL_PLUGIN_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getDelPluginRequest().hashCode(); - break; - case 4: - hash = (37 * hash) + CALL_PLUGIN_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getCallPluginRequest().hashCode(); - break; - case 5: - hash = (37 * hash) + LIST_PLUGIN_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListPluginRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.PluginRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginRequest 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 lgraph.Lgraph.PluginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginRequest 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 lgraph.Lgraph.PluginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginRequest 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(lgraph.Lgraph.PluginRequest 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 lgraph.PluginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.PluginRequest) - lgraph.Lgraph.PluginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_PluginRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PluginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PluginRequest.class, lgraph.Lgraph.PluginRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.PluginRequest.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(); - type_ = 1; - bitField0_ = (bitField0_ & ~0x00000001); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_PluginRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.PluginRequest getDefaultInstanceForType() { - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.PluginRequest build() { - lgraph.Lgraph.PluginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.PluginRequest buildPartial() { - lgraph.Lgraph.PluginRequest result = new lgraph.Lgraph.PluginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (reqCase_ == 2) { - if (loadPluginRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = loadPluginRequestBuilder_.build(); - } - } - if (reqCase_ == 3) { - if (delPluginRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = delPluginRequestBuilder_.build(); - } - } - if (reqCase_ == 4) { - if (callPluginRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = callPluginRequestBuilder_.build(); - } - } - if (reqCase_ == 5) { - if (listPluginRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listPluginRequestBuilder_.build(); - } - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.graph_ = graph_; - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.PluginRequest) { - return mergeFrom((lgraph.Lgraph.PluginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.PluginRequest other) { - if (other == lgraph.Lgraph.PluginRequest.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasGraph()) { - bitField0_ |= 0x00000020; - graph_ = other.graph_; - onChanged(); - } - switch (other.getReqCase()) { - case LOAD_PLUGIN_REQUEST: { - mergeLoadPluginRequest(other.getLoadPluginRequest()); - break; - } - case DEL_PLUGIN_REQUEST: { - mergeDelPluginRequest(other.getDelPluginRequest()); - break; - } - case CALL_PLUGIN_REQUEST: { - mergeCallPluginRequest(other.getCallPluginRequest()); - break; - } - case LIST_PLUGIN_REQUEST: { - mergeListPluginRequest(other.getListPluginRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasType()) { - return false; - } - if (!hasGraph()) { - return false; - } - if (hasLoadPluginRequest()) { - if (!getLoadPluginRequest().isInitialized()) { - return false; - } - } - if (hasDelPluginRequest()) { - if (!getDelPluginRequest().isInitialized()) { - return false; - } - } - if (hasCallPluginRequest()) { - if (!getCallPluginRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.PluginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.PluginRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int type_ = 1; - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public lgraph.Lgraph.PluginRequest.PluginType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.PluginRequest.PluginType result = lgraph.Lgraph.PluginRequest.PluginType.valueOf(type_); - return result == null ? lgraph.Lgraph.PluginRequest.PluginType.CPP : result; - } - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public Builder setType(lgraph.Lgraph.PluginRequest.PluginType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .lgraph.PluginRequest.PluginType type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 1; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginRequest, lgraph.Lgraph.LoadPluginRequest.Builder, lgraph.Lgraph.LoadPluginRequestOrBuilder> loadPluginRequestBuilder_; - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public boolean hasLoadPluginRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public lgraph.Lgraph.LoadPluginRequest getLoadPluginRequest() { - if (loadPluginRequestBuilder_ == null) { - if (reqCase_ == 2) { - return (lgraph.Lgraph.LoadPluginRequest) req_; - } - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } else { - if (reqCase_ == 2) { - return loadPluginRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public Builder setLoadPluginRequest(lgraph.Lgraph.LoadPluginRequest value) { - if (loadPluginRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - loadPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public Builder setLoadPluginRequest( - lgraph.Lgraph.LoadPluginRequest.Builder builderForValue) { - if (loadPluginRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - loadPluginRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public Builder mergeLoadPluginRequest(lgraph.Lgraph.LoadPluginRequest value) { - if (loadPluginRequestBuilder_ == null) { - if (reqCase_ == 2 && - req_ != lgraph.Lgraph.LoadPluginRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.LoadPluginRequest.newBuilder((lgraph.Lgraph.LoadPluginRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 2) { - loadPluginRequestBuilder_.mergeFrom(value); - } - loadPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public Builder clearLoadPluginRequest() { - if (loadPluginRequestBuilder_ == null) { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - } - loadPluginRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public lgraph.Lgraph.LoadPluginRequest.Builder getLoadPluginRequestBuilder() { - return getLoadPluginRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - public lgraph.Lgraph.LoadPluginRequestOrBuilder getLoadPluginRequestOrBuilder() { - if ((reqCase_ == 2) && (loadPluginRequestBuilder_ != null)) { - return loadPluginRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 2) { - return (lgraph.Lgraph.LoadPluginRequest) req_; - } - return lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoadPluginRequest load_plugin_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginRequest, lgraph.Lgraph.LoadPluginRequest.Builder, lgraph.Lgraph.LoadPluginRequestOrBuilder> - getLoadPluginRequestFieldBuilder() { - if (loadPluginRequestBuilder_ == null) { - if (!(reqCase_ == 2)) { - req_ = lgraph.Lgraph.LoadPluginRequest.getDefaultInstance(); - } - loadPluginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginRequest, lgraph.Lgraph.LoadPluginRequest.Builder, lgraph.Lgraph.LoadPluginRequestOrBuilder>( - (lgraph.Lgraph.LoadPluginRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 2; - onChanged();; - return loadPluginRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginRequest, lgraph.Lgraph.DelPluginRequest.Builder, lgraph.Lgraph.DelPluginRequestOrBuilder> delPluginRequestBuilder_; - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public boolean hasDelPluginRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public lgraph.Lgraph.DelPluginRequest getDelPluginRequest() { - if (delPluginRequestBuilder_ == null) { - if (reqCase_ == 3) { - return (lgraph.Lgraph.DelPluginRequest) req_; - } - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } else { - if (reqCase_ == 3) { - return delPluginRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public Builder setDelPluginRequest(lgraph.Lgraph.DelPluginRequest value) { - if (delPluginRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - delPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public Builder setDelPluginRequest( - lgraph.Lgraph.DelPluginRequest.Builder builderForValue) { - if (delPluginRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - delPluginRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public Builder mergeDelPluginRequest(lgraph.Lgraph.DelPluginRequest value) { - if (delPluginRequestBuilder_ == null) { - if (reqCase_ == 3 && - req_ != lgraph.Lgraph.DelPluginRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.DelPluginRequest.newBuilder((lgraph.Lgraph.DelPluginRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 3) { - delPluginRequestBuilder_.mergeFrom(value); - } - delPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public Builder clearDelPluginRequest() { - if (delPluginRequestBuilder_ == null) { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - } - delPluginRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public lgraph.Lgraph.DelPluginRequest.Builder getDelPluginRequestBuilder() { - return getDelPluginRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - public lgraph.Lgraph.DelPluginRequestOrBuilder getDelPluginRequestOrBuilder() { - if ((reqCase_ == 3) && (delPluginRequestBuilder_ != null)) { - return delPluginRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 3) { - return (lgraph.Lgraph.DelPluginRequest) req_; - } - return lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelPluginRequest del_plugin_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginRequest, lgraph.Lgraph.DelPluginRequest.Builder, lgraph.Lgraph.DelPluginRequestOrBuilder> - getDelPluginRequestFieldBuilder() { - if (delPluginRequestBuilder_ == null) { - if (!(reqCase_ == 3)) { - req_ = lgraph.Lgraph.DelPluginRequest.getDefaultInstance(); - } - delPluginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginRequest, lgraph.Lgraph.DelPluginRequest.Builder, lgraph.Lgraph.DelPluginRequestOrBuilder>( - (lgraph.Lgraph.DelPluginRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 3; - onChanged();; - return delPluginRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginRequest, lgraph.Lgraph.CallPluginRequest.Builder, lgraph.Lgraph.CallPluginRequestOrBuilder> callPluginRequestBuilder_; - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public boolean hasCallPluginRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public lgraph.Lgraph.CallPluginRequest getCallPluginRequest() { - if (callPluginRequestBuilder_ == null) { - if (reqCase_ == 4) { - return (lgraph.Lgraph.CallPluginRequest) req_; - } - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } else { - if (reqCase_ == 4) { - return callPluginRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public Builder setCallPluginRequest(lgraph.Lgraph.CallPluginRequest value) { - if (callPluginRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - callPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public Builder setCallPluginRequest( - lgraph.Lgraph.CallPluginRequest.Builder builderForValue) { - if (callPluginRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - callPluginRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public Builder mergeCallPluginRequest(lgraph.Lgraph.CallPluginRequest value) { - if (callPluginRequestBuilder_ == null) { - if (reqCase_ == 4 && - req_ != lgraph.Lgraph.CallPluginRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.CallPluginRequest.newBuilder((lgraph.Lgraph.CallPluginRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 4) { - callPluginRequestBuilder_.mergeFrom(value); - } - callPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public Builder clearCallPluginRequest() { - if (callPluginRequestBuilder_ == null) { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - } - callPluginRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public lgraph.Lgraph.CallPluginRequest.Builder getCallPluginRequestBuilder() { - return getCallPluginRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - public lgraph.Lgraph.CallPluginRequestOrBuilder getCallPluginRequestOrBuilder() { - if ((reqCase_ == 4) && (callPluginRequestBuilder_ != null)) { - return callPluginRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 4) { - return (lgraph.Lgraph.CallPluginRequest) req_; - } - return lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.CallPluginRequest call_plugin_request = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginRequest, lgraph.Lgraph.CallPluginRequest.Builder, lgraph.Lgraph.CallPluginRequestOrBuilder> - getCallPluginRequestFieldBuilder() { - if (callPluginRequestBuilder_ == null) { - if (!(reqCase_ == 4)) { - req_ = lgraph.Lgraph.CallPluginRequest.getDefaultInstance(); - } - callPluginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginRequest, lgraph.Lgraph.CallPluginRequest.Builder, lgraph.Lgraph.CallPluginRequestOrBuilder>( - (lgraph.Lgraph.CallPluginRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 4; - onChanged();; - return callPluginRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginRequest, lgraph.Lgraph.ListPluginRequest.Builder, lgraph.Lgraph.ListPluginRequestOrBuilder> listPluginRequestBuilder_; - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public boolean hasListPluginRequest() { - return reqCase_ == 5; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public lgraph.Lgraph.ListPluginRequest getListPluginRequest() { - if (listPluginRequestBuilder_ == null) { - if (reqCase_ == 5) { - return (lgraph.Lgraph.ListPluginRequest) req_; - } - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } else { - if (reqCase_ == 5) { - return listPluginRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public Builder setListPluginRequest(lgraph.Lgraph.ListPluginRequest value) { - if (listPluginRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public Builder setListPluginRequest( - lgraph.Lgraph.ListPluginRequest.Builder builderForValue) { - if (listPluginRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listPluginRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public Builder mergeListPluginRequest(lgraph.Lgraph.ListPluginRequest value) { - if (listPluginRequestBuilder_ == null) { - if (reqCase_ == 5 && - req_ != lgraph.Lgraph.ListPluginRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ListPluginRequest.newBuilder((lgraph.Lgraph.ListPluginRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 5) { - listPluginRequestBuilder_.mergeFrom(value); - } - listPluginRequestBuilder_.setMessage(value); - } - reqCase_ = 5; - return this; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public Builder clearListPluginRequest() { - if (listPluginRequestBuilder_ == null) { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 5) { - reqCase_ = 0; - req_ = null; - } - listPluginRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public lgraph.Lgraph.ListPluginRequest.Builder getListPluginRequestBuilder() { - return getListPluginRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - public lgraph.Lgraph.ListPluginRequestOrBuilder getListPluginRequestOrBuilder() { - if ((reqCase_ == 5) && (listPluginRequestBuilder_ != null)) { - return listPluginRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 5) { - return (lgraph.Lgraph.ListPluginRequest) req_; - } - return lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPluginRequest list_plugin_request = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginRequest, lgraph.Lgraph.ListPluginRequest.Builder, lgraph.Lgraph.ListPluginRequestOrBuilder> - getListPluginRequestFieldBuilder() { - if (listPluginRequestBuilder_ == null) { - if (!(reqCase_ == 5)) { - req_ = lgraph.Lgraph.ListPluginRequest.getDefaultInstance(); - } - listPluginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginRequest, lgraph.Lgraph.ListPluginRequest.Builder, lgraph.Lgraph.ListPluginRequestOrBuilder>( - (lgraph.Lgraph.ListPluginRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 5; - onChanged();; - return listPluginRequestBuilder_; - } - - private java.lang.Object graph_ = ""; - /** - * required string graph = 6; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string graph = 6; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string graph = 6; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string graph = 6; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - graph_ = value; - onChanged(); - return this; - } - /** - * required string graph = 6; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000020); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * required string graph = 6; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - graph_ = 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:lgraph.PluginRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.PluginRequest) - private static final lgraph.Lgraph.PluginRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.PluginRequest(); - } - - public static lgraph.Lgraph.PluginRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PluginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PluginRequest(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 lgraph.Lgraph.PluginRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PluginResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.PluginResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - boolean hasLoadPluginResponse(); - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - lgraph.Lgraph.LoadPluginResponse getLoadPluginResponse(); - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - lgraph.Lgraph.LoadPluginResponseOrBuilder getLoadPluginResponseOrBuilder(); - - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - boolean hasDelPluginResponse(); - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - lgraph.Lgraph.DelPluginResponse getDelPluginResponse(); - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - lgraph.Lgraph.DelPluginResponseOrBuilder getDelPluginResponseOrBuilder(); - - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - boolean hasCallPluginResponse(); - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - lgraph.Lgraph.CallPluginResponse getCallPluginResponse(); - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - lgraph.Lgraph.CallPluginResponseOrBuilder getCallPluginResponseOrBuilder(); - - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - boolean hasListPluginResponse(); - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - lgraph.Lgraph.ListPluginResponse getListPluginResponse(); - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - lgraph.Lgraph.ListPluginResponseOrBuilder getListPluginResponseOrBuilder(); - - public lgraph.Lgraph.PluginResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.PluginResponse} - */ - public static final class PluginResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.PluginResponse) - PluginResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PluginResponse.newBuilder() to construct. - private PluginResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PluginResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PluginResponse( - 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: { - lgraph.Lgraph.LoadPluginResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.LoadPluginResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.LoadPluginResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.LoadPluginResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.DelPluginResponse.Builder subBuilder = null; - if (respCase_ == 2) { - subBuilder = ((lgraph.Lgraph.DelPluginResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.DelPluginResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.DelPluginResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.CallPluginResponse.Builder subBuilder = null; - if (respCase_ == 3) { - subBuilder = ((lgraph.Lgraph.CallPluginResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.CallPluginResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.CallPluginResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.ListPluginResponse.Builder subBuilder = null; - if (respCase_ == 4) { - subBuilder = ((lgraph.Lgraph.ListPluginResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ListPluginResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListPluginResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 4; - 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 lgraph.Lgraph.internal_static_lgraph_PluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PluginResponse.class, lgraph.Lgraph.PluginResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - LOAD_PLUGIN_RESPONSE(1), - DEL_PLUGIN_RESPONSE(2), - CALL_PLUGIN_RESPONSE(3), - LIST_PLUGIN_RESPONSE(4), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return LOAD_PLUGIN_RESPONSE; - case 2: return DEL_PLUGIN_RESPONSE; - case 3: return CALL_PLUGIN_RESPONSE; - case 4: return LIST_PLUGIN_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int LOAD_PLUGIN_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public boolean hasLoadPluginResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public lgraph.Lgraph.LoadPluginResponse getLoadPluginResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.LoadPluginResponse) resp_; - } - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public lgraph.Lgraph.LoadPluginResponseOrBuilder getLoadPluginResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.LoadPluginResponse) resp_; - } - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - - public static final int DEL_PLUGIN_RESPONSE_FIELD_NUMBER = 2; - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public boolean hasDelPluginResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public lgraph.Lgraph.DelPluginResponse getDelPluginResponse() { - if (respCase_ == 2) { - return (lgraph.Lgraph.DelPluginResponse) resp_; - } - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public lgraph.Lgraph.DelPluginResponseOrBuilder getDelPluginResponseOrBuilder() { - if (respCase_ == 2) { - return (lgraph.Lgraph.DelPluginResponse) resp_; - } - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - - public static final int CALL_PLUGIN_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public boolean hasCallPluginResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public lgraph.Lgraph.CallPluginResponse getCallPluginResponse() { - if (respCase_ == 3) { - return (lgraph.Lgraph.CallPluginResponse) resp_; - } - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public lgraph.Lgraph.CallPluginResponseOrBuilder getCallPluginResponseOrBuilder() { - if (respCase_ == 3) { - return (lgraph.Lgraph.CallPluginResponse) resp_; - } - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - - public static final int LIST_PLUGIN_RESPONSE_FIELD_NUMBER = 4; - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public boolean hasListPluginResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public lgraph.Lgraph.ListPluginResponse getListPluginResponse() { - if (respCase_ == 4) { - return (lgraph.Lgraph.ListPluginResponse) resp_; - } - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public lgraph.Lgraph.ListPluginResponseOrBuilder getListPluginResponseOrBuilder() { - if (respCase_ == 4) { - return (lgraph.Lgraph.ListPluginResponse) resp_; - } - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasCallPluginResponse()) { - if (!getCallPluginResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.LoadPluginResponse) resp_); - } - if (respCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.DelPluginResponse) resp_); - } - if (respCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.CallPluginResponse) resp_); - } - if (respCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.ListPluginResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.LoadPluginResponse) resp_); - } - if (respCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.DelPluginResponse) resp_); - } - if (respCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.CallPluginResponse) resp_); - } - if (respCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.ListPluginResponse) resp_); - } - 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 lgraph.Lgraph.PluginResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.PluginResponse other = (lgraph.Lgraph.PluginResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getLoadPluginResponse() - .equals(other.getLoadPluginResponse()); - break; - case 2: - result = result && getDelPluginResponse() - .equals(other.getDelPluginResponse()); - break; - case 3: - result = result && getCallPluginResponse() - .equals(other.getCallPluginResponse()); - break; - case 4: - result = result && getListPluginResponse() - .equals(other.getListPluginResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + LOAD_PLUGIN_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getLoadPluginResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + DEL_PLUGIN_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getDelPluginResponse().hashCode(); - break; - case 3: - hash = (37 * hash) + CALL_PLUGIN_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getCallPluginResponse().hashCode(); - break; - case 4: - hash = (37 * hash) + LIST_PLUGIN_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListPluginResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.PluginResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PluginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PluginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginResponse 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 lgraph.Lgraph.PluginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginResponse 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 lgraph.Lgraph.PluginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PluginResponse 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(lgraph.Lgraph.PluginResponse 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 lgraph.PluginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.PluginResponse) - lgraph.Lgraph.PluginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_PluginResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PluginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PluginResponse.class, lgraph.Lgraph.PluginResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.PluginResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_PluginResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.PluginResponse getDefaultInstanceForType() { - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.PluginResponse build() { - lgraph.Lgraph.PluginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.PluginResponse buildPartial() { - lgraph.Lgraph.PluginResponse result = new lgraph.Lgraph.PluginResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (loadPluginResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = loadPluginResponseBuilder_.build(); - } - } - if (respCase_ == 2) { - if (delPluginResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = delPluginResponseBuilder_.build(); - } - } - if (respCase_ == 3) { - if (callPluginResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = callPluginResponseBuilder_.build(); - } - } - if (respCase_ == 4) { - if (listPluginResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listPluginResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.PluginResponse) { - return mergeFrom((lgraph.Lgraph.PluginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.PluginResponse other) { - if (other == lgraph.Lgraph.PluginResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case LOAD_PLUGIN_RESPONSE: { - mergeLoadPluginResponse(other.getLoadPluginResponse()); - break; - } - case DEL_PLUGIN_RESPONSE: { - mergeDelPluginResponse(other.getDelPluginResponse()); - break; - } - case CALL_PLUGIN_RESPONSE: { - mergeCallPluginResponse(other.getCallPluginResponse()); - break; - } - case LIST_PLUGIN_RESPONSE: { - mergeListPluginResponse(other.getListPluginResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasCallPluginResponse()) { - if (!getCallPluginResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.PluginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.PluginResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginResponse, lgraph.Lgraph.LoadPluginResponse.Builder, lgraph.Lgraph.LoadPluginResponseOrBuilder> loadPluginResponseBuilder_; - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public boolean hasLoadPluginResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public lgraph.Lgraph.LoadPluginResponse getLoadPluginResponse() { - if (loadPluginResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.LoadPluginResponse) resp_; - } - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return loadPluginResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public Builder setLoadPluginResponse(lgraph.Lgraph.LoadPluginResponse value) { - if (loadPluginResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - loadPluginResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public Builder setLoadPluginResponse( - lgraph.Lgraph.LoadPluginResponse.Builder builderForValue) { - if (loadPluginResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - loadPluginResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public Builder mergeLoadPluginResponse(lgraph.Lgraph.LoadPluginResponse value) { - if (loadPluginResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.LoadPluginResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.LoadPluginResponse.newBuilder((lgraph.Lgraph.LoadPluginResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - loadPluginResponseBuilder_.mergeFrom(value); - } - loadPluginResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public Builder clearLoadPluginResponse() { - if (loadPluginResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - loadPluginResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public lgraph.Lgraph.LoadPluginResponse.Builder getLoadPluginResponseBuilder() { - return getLoadPluginResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - public lgraph.Lgraph.LoadPluginResponseOrBuilder getLoadPluginResponseOrBuilder() { - if ((respCase_ == 1) && (loadPluginResponseBuilder_ != null)) { - return loadPluginResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.LoadPluginResponse) resp_; - } - return lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.LoadPluginResponse load_plugin_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginResponse, lgraph.Lgraph.LoadPluginResponse.Builder, lgraph.Lgraph.LoadPluginResponseOrBuilder> - getLoadPluginResponseFieldBuilder() { - if (loadPluginResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.LoadPluginResponse.getDefaultInstance(); - } - loadPluginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LoadPluginResponse, lgraph.Lgraph.LoadPluginResponse.Builder, lgraph.Lgraph.LoadPluginResponseOrBuilder>( - (lgraph.Lgraph.LoadPluginResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return loadPluginResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginResponse, lgraph.Lgraph.DelPluginResponse.Builder, lgraph.Lgraph.DelPluginResponseOrBuilder> delPluginResponseBuilder_; - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public boolean hasDelPluginResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public lgraph.Lgraph.DelPluginResponse getDelPluginResponse() { - if (delPluginResponseBuilder_ == null) { - if (respCase_ == 2) { - return (lgraph.Lgraph.DelPluginResponse) resp_; - } - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } else { - if (respCase_ == 2) { - return delPluginResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public Builder setDelPluginResponse(lgraph.Lgraph.DelPluginResponse value) { - if (delPluginResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - delPluginResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public Builder setDelPluginResponse( - lgraph.Lgraph.DelPluginResponse.Builder builderForValue) { - if (delPluginResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - delPluginResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public Builder mergeDelPluginResponse(lgraph.Lgraph.DelPluginResponse value) { - if (delPluginResponseBuilder_ == null) { - if (respCase_ == 2 && - resp_ != lgraph.Lgraph.DelPluginResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.DelPluginResponse.newBuilder((lgraph.Lgraph.DelPluginResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 2) { - delPluginResponseBuilder_.mergeFrom(value); - } - delPluginResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public Builder clearDelPluginResponse() { - if (delPluginResponseBuilder_ == null) { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - } - delPluginResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public lgraph.Lgraph.DelPluginResponse.Builder getDelPluginResponseBuilder() { - return getDelPluginResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - public lgraph.Lgraph.DelPluginResponseOrBuilder getDelPluginResponseOrBuilder() { - if ((respCase_ == 2) && (delPluginResponseBuilder_ != null)) { - return delPluginResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 2) { - return (lgraph.Lgraph.DelPluginResponse) resp_; - } - return lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.DelPluginResponse del_plugin_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginResponse, lgraph.Lgraph.DelPluginResponse.Builder, lgraph.Lgraph.DelPluginResponseOrBuilder> - getDelPluginResponseFieldBuilder() { - if (delPluginResponseBuilder_ == null) { - if (!(respCase_ == 2)) { - resp_ = lgraph.Lgraph.DelPluginResponse.getDefaultInstance(); - } - delPluginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.DelPluginResponse, lgraph.Lgraph.DelPluginResponse.Builder, lgraph.Lgraph.DelPluginResponseOrBuilder>( - (lgraph.Lgraph.DelPluginResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 2; - onChanged();; - return delPluginResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginResponse, lgraph.Lgraph.CallPluginResponse.Builder, lgraph.Lgraph.CallPluginResponseOrBuilder> callPluginResponseBuilder_; - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public boolean hasCallPluginResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public lgraph.Lgraph.CallPluginResponse getCallPluginResponse() { - if (callPluginResponseBuilder_ == null) { - if (respCase_ == 3) { - return (lgraph.Lgraph.CallPluginResponse) resp_; - } - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } else { - if (respCase_ == 3) { - return callPluginResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public Builder setCallPluginResponse(lgraph.Lgraph.CallPluginResponse value) { - if (callPluginResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - callPluginResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public Builder setCallPluginResponse( - lgraph.Lgraph.CallPluginResponse.Builder builderForValue) { - if (callPluginResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - callPluginResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public Builder mergeCallPluginResponse(lgraph.Lgraph.CallPluginResponse value) { - if (callPluginResponseBuilder_ == null) { - if (respCase_ == 3 && - resp_ != lgraph.Lgraph.CallPluginResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.CallPluginResponse.newBuilder((lgraph.Lgraph.CallPluginResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 3) { - callPluginResponseBuilder_.mergeFrom(value); - } - callPluginResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public Builder clearCallPluginResponse() { - if (callPluginResponseBuilder_ == null) { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - } - callPluginResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public lgraph.Lgraph.CallPluginResponse.Builder getCallPluginResponseBuilder() { - return getCallPluginResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - public lgraph.Lgraph.CallPluginResponseOrBuilder getCallPluginResponseOrBuilder() { - if ((respCase_ == 3) && (callPluginResponseBuilder_ != null)) { - return callPluginResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 3) { - return (lgraph.Lgraph.CallPluginResponse) resp_; - } - return lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.CallPluginResponse call_plugin_response = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginResponse, lgraph.Lgraph.CallPluginResponse.Builder, lgraph.Lgraph.CallPluginResponseOrBuilder> - getCallPluginResponseFieldBuilder() { - if (callPluginResponseBuilder_ == null) { - if (!(respCase_ == 3)) { - resp_ = lgraph.Lgraph.CallPluginResponse.getDefaultInstance(); - } - callPluginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CallPluginResponse, lgraph.Lgraph.CallPluginResponse.Builder, lgraph.Lgraph.CallPluginResponseOrBuilder>( - (lgraph.Lgraph.CallPluginResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 3; - onChanged();; - return callPluginResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginResponse, lgraph.Lgraph.ListPluginResponse.Builder, lgraph.Lgraph.ListPluginResponseOrBuilder> listPluginResponseBuilder_; - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public boolean hasListPluginResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public lgraph.Lgraph.ListPluginResponse getListPluginResponse() { - if (listPluginResponseBuilder_ == null) { - if (respCase_ == 4) { - return (lgraph.Lgraph.ListPluginResponse) resp_; - } - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } else { - if (respCase_ == 4) { - return listPluginResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public Builder setListPluginResponse(lgraph.Lgraph.ListPluginResponse value) { - if (listPluginResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listPluginResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public Builder setListPluginResponse( - lgraph.Lgraph.ListPluginResponse.Builder builderForValue) { - if (listPluginResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listPluginResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public Builder mergeListPluginResponse(lgraph.Lgraph.ListPluginResponse value) { - if (listPluginResponseBuilder_ == null) { - if (respCase_ == 4 && - resp_ != lgraph.Lgraph.ListPluginResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ListPluginResponse.newBuilder((lgraph.Lgraph.ListPluginResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 4) { - listPluginResponseBuilder_.mergeFrom(value); - } - listPluginResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public Builder clearListPluginResponse() { - if (listPluginResponseBuilder_ == null) { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - } - listPluginResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public lgraph.Lgraph.ListPluginResponse.Builder getListPluginResponseBuilder() { - return getListPluginResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - public lgraph.Lgraph.ListPluginResponseOrBuilder getListPluginResponseOrBuilder() { - if ((respCase_ == 4) && (listPluginResponseBuilder_ != null)) { - return listPluginResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 4) { - return (lgraph.Lgraph.ListPluginResponse) resp_; - } - return lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPluginResponse list_plugin_response = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginResponse, lgraph.Lgraph.ListPluginResponse.Builder, lgraph.Lgraph.ListPluginResponseOrBuilder> - getListPluginResponseFieldBuilder() { - if (listPluginResponseBuilder_ == null) { - if (!(respCase_ == 4)) { - resp_ = lgraph.Lgraph.ListPluginResponse.getDefaultInstance(); - } - listPluginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPluginResponse, lgraph.Lgraph.ListPluginResponse.Builder, lgraph.Lgraph.ListPluginResponseOrBuilder>( - (lgraph.Lgraph.ListPluginResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 4; - onChanged();; - return listPluginResponseBuilder_; - } - @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:lgraph.PluginResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.PluginResponse) - private static final lgraph.Lgraph.PluginResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.PluginResponse(); - } - - public static lgraph.Lgraph.PluginResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PluginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PluginResponse(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 lgraph.Lgraph.PluginResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HeartbeatRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.HeartbeatRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string rpc_addr = 1; - */ - boolean hasRpcAddr(); - /** - * required string rpc_addr = 1; - */ - java.lang.String getRpcAddr(); - /** - * required string rpc_addr = 1; - */ - com.google.protobuf.ByteString - getRpcAddrBytes(); - - /** - * required string rest_addr = 2; - */ - boolean hasRestAddr(); - /** - * required string rest_addr = 2; - */ - java.lang.String getRestAddr(); - /** - * required string rest_addr = 2; - */ - com.google.protobuf.ByteString - getRestAddrBytes(); - - /** - * required .lgraph.NodeState state = 3; - */ - boolean hasState(); - /** - * required .lgraph.NodeState state = 3; - */ - lgraph.Lgraph.NodeState getState(); - } - /** - * Protobuf type {@code lgraph.HeartbeatRequest} - */ - public static final class HeartbeatRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.HeartbeatRequest) - HeartbeatRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeartbeatRequest.newBuilder() to construct. - private HeartbeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeartbeatRequest() { - rpcAddr_ = ""; - restAddr_ = ""; - state_ = 1; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeartbeatRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - rpcAddr_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - restAddr_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState value = lgraph.Lgraph.NodeState.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - state_ = 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 lgraph.Lgraph.internal_static_lgraph_HeartbeatRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HeartbeatRequest.class, lgraph.Lgraph.HeartbeatRequest.Builder.class); - } - - private int bitField0_; - public static final int RPC_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object rpcAddr_; - /** - * required string rpc_addr = 1; - */ - public boolean hasRpcAddr() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string rpc_addr = 1; - */ - public java.lang.String getRpcAddr() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rpcAddr_ = s; - } - return s; - } - } - /** - * required string rpc_addr = 1; - */ - public com.google.protobuf.ByteString - getRpcAddrBytes() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REST_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object restAddr_; - /** - * required string rest_addr = 2; - */ - public boolean hasRestAddr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string rest_addr = 2; - */ - public java.lang.String getRestAddr() { - java.lang.Object ref = restAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - restAddr_ = s; - } - return s; - } - } - /** - * required string rest_addr = 2; - */ - public com.google.protobuf.ByteString - getRestAddrBytes() { - java.lang.Object ref = restAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - restAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 3; - private int state_; - /** - * required .lgraph.NodeState state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.NodeState state = 3; - */ - public lgraph.Lgraph.NodeState getState() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState result = lgraph.Lgraph.NodeState.valueOf(state_); - return result == null ? lgraph.Lgraph.NodeState.UNINITIALIZED : 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; - - if (!hasRpcAddr()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRestAddr()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasState()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rpcAddr_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, restAddr_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rpcAddr_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, restAddr_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); - } - 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 lgraph.Lgraph.HeartbeatRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.HeartbeatRequest other = (lgraph.Lgraph.HeartbeatRequest) obj; - - boolean result = true; - result = result && (hasRpcAddr() == other.hasRpcAddr()); - if (hasRpcAddr()) { - result = result && getRpcAddr() - .equals(other.getRpcAddr()); - } - result = result && (hasRestAddr() == other.hasRestAddr()); - if (hasRestAddr()) { - result = result && getRestAddr() - .equals(other.getRestAddr()); - } - result = result && (hasState() == other.hasState()); - if (hasState()) { - result = result && state_ == other.state_; - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRpcAddr()) { - hash = (37 * hash) + RPC_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getRpcAddr().hashCode(); - } - if (hasRestAddr()) { - hash = (37 * hash) + REST_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getRestAddr().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.HeartbeatRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatRequest 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 lgraph.Lgraph.HeartbeatRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatRequest 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 lgraph.Lgraph.HeartbeatRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatRequest 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(lgraph.Lgraph.HeartbeatRequest 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 lgraph.HeartbeatRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.HeartbeatRequest) - lgraph.Lgraph.HeartbeatRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HeartbeatRequest.class, lgraph.Lgraph.HeartbeatRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.HeartbeatRequest.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(); - rpcAddr_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - restAddr_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 1; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatRequest getDefaultInstanceForType() { - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatRequest build() { - lgraph.Lgraph.HeartbeatRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatRequest buildPartial() { - lgraph.Lgraph.HeartbeatRequest result = new lgraph.Lgraph.HeartbeatRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.rpcAddr_ = rpcAddr_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.restAddr_ = restAddr_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.state_ = state_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.HeartbeatRequest) { - return mergeFrom((lgraph.Lgraph.HeartbeatRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.HeartbeatRequest other) { - if (other == lgraph.Lgraph.HeartbeatRequest.getDefaultInstance()) return this; - if (other.hasRpcAddr()) { - bitField0_ |= 0x00000001; - rpcAddr_ = other.rpcAddr_; - onChanged(); - } - if (other.hasRestAddr()) { - bitField0_ |= 0x00000002; - restAddr_ = other.restAddr_; - onChanged(); - } - if (other.hasState()) { - setState(other.getState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRpcAddr()) { - return false; - } - if (!hasRestAddr()) { - return false; - } - if (!hasState()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.HeartbeatRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.HeartbeatRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object rpcAddr_ = ""; - /** - * required string rpc_addr = 1; - */ - public boolean hasRpcAddr() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string rpc_addr = 1; - */ - public java.lang.String getRpcAddr() { - java.lang.Object ref = rpcAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rpcAddr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string rpc_addr = 1; - */ - public com.google.protobuf.ByteString - getRpcAddrBytes() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string rpc_addr = 1; - */ - public Builder setRpcAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - rpcAddr_ = value; - onChanged(); - return this; - } - /** - * required string rpc_addr = 1; - */ - public Builder clearRpcAddr() { - bitField0_ = (bitField0_ & ~0x00000001); - rpcAddr_ = getDefaultInstance().getRpcAddr(); - onChanged(); - return this; - } - /** - * required string rpc_addr = 1; - */ - public Builder setRpcAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - rpcAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object restAddr_ = ""; - /** - * required string rest_addr = 2; - */ - public boolean hasRestAddr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string rest_addr = 2; - */ - public java.lang.String getRestAddr() { - java.lang.Object ref = restAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - restAddr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string rest_addr = 2; - */ - public com.google.protobuf.ByteString - getRestAddrBytes() { - java.lang.Object ref = restAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - restAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string rest_addr = 2; - */ - public Builder setRestAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - restAddr_ = value; - onChanged(); - return this; - } - /** - * required string rest_addr = 2; - */ - public Builder clearRestAddr() { - bitField0_ = (bitField0_ & ~0x00000002); - restAddr_ = getDefaultInstance().getRestAddr(); - onChanged(); - return this; - } - /** - * required string rest_addr = 2; - */ - public Builder setRestAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - restAddr_ = value; - onChanged(); - return this; - } - - private int state_ = 1; - /** - * required .lgraph.NodeState state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.NodeState state = 3; - */ - public lgraph.Lgraph.NodeState getState() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState result = lgraph.Lgraph.NodeState.valueOf(state_); - return result == null ? lgraph.Lgraph.NodeState.UNINITIALIZED : result; - } - /** - * required .lgraph.NodeState state = 3; - */ - public Builder setState(lgraph.Lgraph.NodeState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .lgraph.NodeState state = 3; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 1; - 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:lgraph.HeartbeatRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.HeartbeatRequest) - private static final lgraph.Lgraph.HeartbeatRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.HeartbeatRequest(); - } - - public static lgraph.Lgraph.HeartbeatRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeartbeatRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeartbeatRequest(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 lgraph.Lgraph.HeartbeatRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HeartbeatResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.HeartbeatResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.HeartbeatResponse} - */ - public static final class HeartbeatResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.HeartbeatResponse) - HeartbeatResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeartbeatResponse.newBuilder() to construct. - private HeartbeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeartbeatResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeartbeatResponse( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_HeartbeatResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HeartbeatResponse.class, lgraph.Lgraph.HeartbeatResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.HeartbeatResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.HeartbeatResponse other = (lgraph.Lgraph.HeartbeatResponse) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.HeartbeatResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HeartbeatResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatResponse 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 lgraph.Lgraph.HeartbeatResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatResponse 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 lgraph.Lgraph.HeartbeatResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HeartbeatResponse 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(lgraph.Lgraph.HeartbeatResponse 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 lgraph.HeartbeatResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.HeartbeatResponse) - lgraph.Lgraph.HeartbeatResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HeartbeatResponse.class, lgraph.Lgraph.HeartbeatResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.HeartbeatResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_HeartbeatResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatResponse getDefaultInstanceForType() { - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatResponse build() { - lgraph.Lgraph.HeartbeatResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.HeartbeatResponse buildPartial() { - lgraph.Lgraph.HeartbeatResponse result = new lgraph.Lgraph.HeartbeatResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.HeartbeatResponse) { - return mergeFrom((lgraph.Lgraph.HeartbeatResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.HeartbeatResponse other) { - if (other == lgraph.Lgraph.HeartbeatResponse.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.HeartbeatResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.HeartbeatResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.HeartbeatResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.HeartbeatResponse) - private static final lgraph.Lgraph.HeartbeatResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.HeartbeatResponse(); - } - - public static lgraph.Lgraph.HeartbeatResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeartbeatResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeartbeatResponse(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 lgraph.Lgraph.HeartbeatResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PeerInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.PeerInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * required string rpc_addr = 1; - */ - boolean hasRpcAddr(); - /** - * required string rpc_addr = 1; - */ - java.lang.String getRpcAddr(); - /** - * required string rpc_addr = 1; - */ - com.google.protobuf.ByteString - getRpcAddrBytes(); - - /** - * required string rest_addr = 2; - */ - boolean hasRestAddr(); - /** - * required string rest_addr = 2; - */ - java.lang.String getRestAddr(); - /** - * required string rest_addr = 2; - */ - com.google.protobuf.ByteString - getRestAddrBytes(); - - /** - * required .lgraph.NodeState state = 3; - */ - boolean hasState(); - /** - * required .lgraph.NodeState state = 3; - */ - lgraph.Lgraph.NodeState getState(); - } - /** - * Protobuf type {@code lgraph.PeerInfo} - */ - public static final class PeerInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.PeerInfo) - PeerInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use PeerInfo.newBuilder() to construct. - private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PeerInfo() { - rpcAddr_ = ""; - restAddr_ = ""; - state_ = 1; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PeerInfo( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - rpcAddr_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - restAddr_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState value = lgraph.Lgraph.NodeState.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - state_ = 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 lgraph.Lgraph.internal_static_lgraph_PeerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PeerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PeerInfo.class, lgraph.Lgraph.PeerInfo.Builder.class); - } - - private int bitField0_; - public static final int RPC_ADDR_FIELD_NUMBER = 1; - private volatile java.lang.Object rpcAddr_; - /** - * required string rpc_addr = 1; - */ - public boolean hasRpcAddr() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string rpc_addr = 1; - */ - public java.lang.String getRpcAddr() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rpcAddr_ = s; - } - return s; - } - } - /** - * required string rpc_addr = 1; - */ - public com.google.protobuf.ByteString - getRpcAddrBytes() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REST_ADDR_FIELD_NUMBER = 2; - private volatile java.lang.Object restAddr_; - /** - * required string rest_addr = 2; - */ - public boolean hasRestAddr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string rest_addr = 2; - */ - public java.lang.String getRestAddr() { - java.lang.Object ref = restAddr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - restAddr_ = s; - } - return s; - } - } - /** - * required string rest_addr = 2; - */ - public com.google.protobuf.ByteString - getRestAddrBytes() { - java.lang.Object ref = restAddr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - restAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 3; - private int state_; - /** - * required .lgraph.NodeState state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.NodeState state = 3; - */ - public lgraph.Lgraph.NodeState getState() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState result = lgraph.Lgraph.NodeState.valueOf(state_); - return result == null ? lgraph.Lgraph.NodeState.UNINITIALIZED : 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; - - if (!hasRpcAddr()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRestAddr()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasState()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rpcAddr_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, restAddr_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rpcAddr_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, restAddr_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); - } - 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 lgraph.Lgraph.PeerInfo)) { - return super.equals(obj); - } - lgraph.Lgraph.PeerInfo other = (lgraph.Lgraph.PeerInfo) obj; - - boolean result = true; - result = result && (hasRpcAddr() == other.hasRpcAddr()); - if (hasRpcAddr()) { - result = result && getRpcAddr() - .equals(other.getRpcAddr()); - } - result = result && (hasRestAddr() == other.hasRestAddr()); - if (hasRestAddr()) { - result = result && getRestAddr() - .equals(other.getRestAddr()); - } - result = result && (hasState() == other.hasState()); - if (hasState()) { - result = result && state_ == other.state_; - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRpcAddr()) { - hash = (37 * hash) + RPC_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getRpcAddr().hashCode(); - } - if (hasRestAddr()) { - hash = (37 * hash) + REST_ADDR_FIELD_NUMBER; - hash = (53 * hash) + getRestAddr().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.PeerInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PeerInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PeerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PeerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PeerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.PeerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.PeerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PeerInfo 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 lgraph.Lgraph.PeerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PeerInfo 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 lgraph.Lgraph.PeerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.PeerInfo 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(lgraph.Lgraph.PeerInfo 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 lgraph.PeerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.PeerInfo) - lgraph.Lgraph.PeerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_PeerInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_PeerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.PeerInfo.class, lgraph.Lgraph.PeerInfo.Builder.class); - } - - // Construct using lgraph.Lgraph.PeerInfo.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(); - rpcAddr_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - restAddr_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 1; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_PeerInfo_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.PeerInfo getDefaultInstanceForType() { - return lgraph.Lgraph.PeerInfo.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.PeerInfo build() { - lgraph.Lgraph.PeerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.PeerInfo buildPartial() { - lgraph.Lgraph.PeerInfo result = new lgraph.Lgraph.PeerInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.rpcAddr_ = rpcAddr_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.restAddr_ = restAddr_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.state_ = state_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.PeerInfo) { - return mergeFrom((lgraph.Lgraph.PeerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.PeerInfo other) { - if (other == lgraph.Lgraph.PeerInfo.getDefaultInstance()) return this; - if (other.hasRpcAddr()) { - bitField0_ |= 0x00000001; - rpcAddr_ = other.rpcAddr_; - onChanged(); - } - if (other.hasRestAddr()) { - bitField0_ |= 0x00000002; - restAddr_ = other.restAddr_; - onChanged(); - } - if (other.hasState()) { - setState(other.getState()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRpcAddr()) { - return false; - } - if (!hasRestAddr()) { - return false; - } - if (!hasState()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.PeerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.PeerInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object rpcAddr_ = ""; - /** - * required string rpc_addr = 1; - */ - public boolean hasRpcAddr() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string rpc_addr = 1; - */ - public java.lang.String getRpcAddr() { - java.lang.Object ref = rpcAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rpcAddr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string rpc_addr = 1; - */ - public com.google.protobuf.ByteString - getRpcAddrBytes() { - java.lang.Object ref = rpcAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rpcAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string rpc_addr = 1; - */ - public Builder setRpcAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - rpcAddr_ = value; - onChanged(); - return this; - } - /** - * required string rpc_addr = 1; - */ - public Builder clearRpcAddr() { - bitField0_ = (bitField0_ & ~0x00000001); - rpcAddr_ = getDefaultInstance().getRpcAddr(); - onChanged(); - return this; - } - /** - * required string rpc_addr = 1; - */ - public Builder setRpcAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - rpcAddr_ = value; - onChanged(); - return this; - } - - private java.lang.Object restAddr_ = ""; - /** - * required string rest_addr = 2; - */ - public boolean hasRestAddr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string rest_addr = 2; - */ - public java.lang.String getRestAddr() { - java.lang.Object ref = restAddr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - restAddr_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string rest_addr = 2; - */ - public com.google.protobuf.ByteString - getRestAddrBytes() { - java.lang.Object ref = restAddr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - restAddr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string rest_addr = 2; - */ - public Builder setRestAddr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - restAddr_ = value; - onChanged(); - return this; - } - /** - * required string rest_addr = 2; - */ - public Builder clearRestAddr() { - bitField0_ = (bitField0_ & ~0x00000002); - restAddr_ = getDefaultInstance().getRestAddr(); - onChanged(); - return this; - } - /** - * required string rest_addr = 2; - */ - public Builder setRestAddrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - restAddr_ = value; - onChanged(); - return this; - } - - private int state_ = 1; - /** - * required .lgraph.NodeState state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.NodeState state = 3; - */ - public lgraph.Lgraph.NodeState getState() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.NodeState result = lgraph.Lgraph.NodeState.valueOf(state_); - return result == null ? lgraph.Lgraph.NodeState.UNINITIALIZED : result; - } - /** - * required .lgraph.NodeState state = 3; - */ - public Builder setState(lgraph.Lgraph.NodeState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .lgraph.NodeState state = 3; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 1; - 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:lgraph.PeerInfo) - } - - // @@protoc_insertion_point(class_scope:lgraph.PeerInfo) - private static final lgraph.Lgraph.PeerInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.PeerInfo(); - } - - public static lgraph.Lgraph.PeerInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PeerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PeerInfo(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 lgraph.Lgraph.PeerInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListPeersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListPeersRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.ListPeersRequest} - */ - public static final class ListPeersRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListPeersRequest) - ListPeersRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPeersRequest.newBuilder() to construct. - private ListPeersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPeersRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListPeersRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_ListPeersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPeersRequest.class, lgraph.Lgraph.ListPeersRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.ListPeersRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.ListPeersRequest other = (lgraph.Lgraph.ListPeersRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListPeersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersRequest 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 lgraph.Lgraph.ListPeersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersRequest 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 lgraph.Lgraph.ListPeersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersRequest 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(lgraph.Lgraph.ListPeersRequest 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 lgraph.ListPeersRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListPeersRequest) - lgraph.Lgraph.ListPeersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPeersRequest.class, lgraph.Lgraph.ListPeersRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.ListPeersRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersRequest getDefaultInstanceForType() { - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersRequest build() { - lgraph.Lgraph.ListPeersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersRequest buildPartial() { - lgraph.Lgraph.ListPeersRequest result = new lgraph.Lgraph.ListPeersRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListPeersRequest) { - return mergeFrom((lgraph.Lgraph.ListPeersRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListPeersRequest other) { - if (other == lgraph.Lgraph.ListPeersRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.ListPeersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListPeersRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.ListPeersRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListPeersRequest) - private static final lgraph.Lgraph.ListPeersRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListPeersRequest(); - } - - public static lgraph.Lgraph.ListPeersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPeersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPeersRequest(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 lgraph.Lgraph.ListPeersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListPeersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.ListPeersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - java.util.List - getPeersList(); - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - lgraph.Lgraph.PeerInfo getPeers(int index); - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - int getPeersCount(); - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - java.util.List - getPeersOrBuilderList(); - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - lgraph.Lgraph.PeerInfoOrBuilder getPeersOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.ListPeersResponse} - */ - public static final class ListPeersResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.ListPeersResponse) - ListPeersResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListPeersResponse.newBuilder() to construct. - private ListPeersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPeersResponse() { - peers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListPeersResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - peers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - peers_.add( - input.readMessage(lgraph.Lgraph.PeerInfo.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPeersResponse.class, lgraph.Lgraph.ListPeersResponse.Builder.class); - } - - public static final int PEERS_FIELD_NUMBER = 1; - private java.util.List peers_; - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public java.util.List getPeersList() { - return peers_; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - return peers_; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public int getPeersCount() { - return peers_.size(); - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfo getPeers(int index) { - return peers_.get(index); - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfoOrBuilder getPeersOrBuilder( - int index) { - return peers_.get(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; - - for (int i = 0; i < getPeersCount(); i++) { - if (!getPeers(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < peers_.size(); i++) { - output.writeMessage(1, peers_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < peers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, peers_.get(i)); - } - 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 lgraph.Lgraph.ListPeersResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.ListPeersResponse other = (lgraph.Lgraph.ListPeersResponse) obj; - - boolean result = true; - result = result && getPeersList() - .equals(other.getPeersList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPeersCount() > 0) { - hash = (37 * hash) + PEERS_FIELD_NUMBER; - hash = (53 * hash) + getPeersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.ListPeersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.ListPeersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersResponse 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 lgraph.Lgraph.ListPeersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersResponse 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 lgraph.Lgraph.ListPeersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.ListPeersResponse 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(lgraph.Lgraph.ListPeersResponse 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 lgraph.ListPeersResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.ListPeersResponse) - lgraph.Lgraph.ListPeersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.ListPeersResponse.class, lgraph.Lgraph.ListPeersResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.ListPeersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPeersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - peersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_ListPeersResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersResponse getDefaultInstanceForType() { - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersResponse build() { - lgraph.Lgraph.ListPeersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.ListPeersResponse buildPartial() { - lgraph.Lgraph.ListPeersResponse result = new lgraph.Lgraph.ListPeersResponse(this); - int from_bitField0_ = bitField0_; - if (peersBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - peers_ = java.util.Collections.unmodifiableList(peers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.peers_ = peers_; - } else { - result.peers_ = peersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.ListPeersResponse) { - return mergeFrom((lgraph.Lgraph.ListPeersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.ListPeersResponse other) { - if (other == lgraph.Lgraph.ListPeersResponse.getDefaultInstance()) return this; - if (peersBuilder_ == null) { - if (!other.peers_.isEmpty()) { - if (peers_.isEmpty()) { - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePeersIsMutable(); - peers_.addAll(other.peers_); - } - onChanged(); - } - } else { - if (!other.peers_.isEmpty()) { - if (peersBuilder_.isEmpty()) { - peersBuilder_.dispose(); - peersBuilder_ = null; - peers_ = other.peers_; - bitField0_ = (bitField0_ & ~0x00000001); - peersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPeersFieldBuilder() : null; - } else { - peersBuilder_.addAllMessages(other.peers_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getPeersCount(); i++) { - if (!getPeers(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.ListPeersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.ListPeersResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List peers_ = - java.util.Collections.emptyList(); - private void ensurePeersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - peers_ = new java.util.ArrayList(peers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder> peersBuilder_; - - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public java.util.List getPeersList() { - if (peersBuilder_ == null) { - return java.util.Collections.unmodifiableList(peers_); - } else { - return peersBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public int getPeersCount() { - if (peersBuilder_ == null) { - return peers_.size(); - } else { - return peersBuilder_.getCount(); - } - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfo getPeers(int index) { - if (peersBuilder_ == null) { - return peers_.get(index); - } else { - return peersBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder setPeers( - int index, lgraph.Lgraph.PeerInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.set(index, value); - onChanged(); - } else { - peersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder setPeers( - int index, lgraph.Lgraph.PeerInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.set(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder addPeers(lgraph.Lgraph.PeerInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(value); - onChanged(); - } else { - peersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder addPeers( - int index, lgraph.Lgraph.PeerInfo value) { - if (peersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeersIsMutable(); - peers_.add(index, value); - onChanged(); - } else { - peersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder addPeers( - lgraph.Lgraph.PeerInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder addPeers( - int index, lgraph.Lgraph.PeerInfo.Builder builderForValue) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.add(index, builderForValue.build()); - onChanged(); - } else { - peersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder addAllPeers( - java.lang.Iterable values) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, peers_); - onChanged(); - } else { - peersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder clearPeers() { - if (peersBuilder_ == null) { - peers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - peersBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public Builder removePeers(int index) { - if (peersBuilder_ == null) { - ensurePeersIsMutable(); - peers_.remove(index); - onChanged(); - } else { - peersBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfo.Builder getPeersBuilder( - int index) { - return getPeersFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfoOrBuilder getPeersOrBuilder( - int index) { - if (peersBuilder_ == null) { - return peers_.get(index); } else { - return peersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public java.util.List - getPeersOrBuilderList() { - if (peersBuilder_ != null) { - return peersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(peers_); - } - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfo.Builder addPeersBuilder() { - return getPeersFieldBuilder().addBuilder( - lgraph.Lgraph.PeerInfo.getDefaultInstance()); - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public lgraph.Lgraph.PeerInfo.Builder addPeersBuilder( - int index) { - return getPeersFieldBuilder().addBuilder( - index, lgraph.Lgraph.PeerInfo.getDefaultInstance()); - } - /** - * repeated .lgraph.PeerInfo peers = 1; - */ - public java.util.List - getPeersBuilderList() { - return getPeersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder> - getPeersFieldBuilder() { - if (peersBuilder_ == null) { - peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder>( - peers_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - peers_ = null; - } - return peersBuilder_; - } - @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:lgraph.ListPeersResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.ListPeersResponse) - private static final lgraph.Lgraph.ListPeersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.ListPeersResponse(); - } - - public static lgraph.Lgraph.ListPeersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPeersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPeersResponse(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 lgraph.Lgraph.ListPeersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetMasterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetMasterRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code lgraph.GetMasterRequest} - */ - public static final class GetMasterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetMasterRequest) - GetMasterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetMasterRequest.newBuilder() to construct. - private GetMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetMasterRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetMasterRequest( - 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; - 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 lgraph.Lgraph.internal_static_lgraph_GetMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetMasterRequest.class, lgraph.Lgraph.GetMasterRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 lgraph.Lgraph.GetMasterRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.GetMasterRequest other = (lgraph.Lgraph.GetMasterRequest) obj; - - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetMasterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterRequest 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 lgraph.Lgraph.GetMasterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterRequest 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 lgraph.Lgraph.GetMasterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterRequest 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(lgraph.Lgraph.GetMasterRequest 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 lgraph.GetMasterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetMasterRequest) - lgraph.Lgraph.GetMasterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetMasterRequest.class, lgraph.Lgraph.GetMasterRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.GetMasterRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterRequest getDefaultInstanceForType() { - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterRequest build() { - lgraph.Lgraph.GetMasterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterRequest buildPartial() { - lgraph.Lgraph.GetMasterRequest result = new lgraph.Lgraph.GetMasterRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetMasterRequest) { - return mergeFrom((lgraph.Lgraph.GetMasterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetMasterRequest other) { - if (other == lgraph.Lgraph.GetMasterRequest.getDefaultInstance()) return this; - 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 { - lgraph.Lgraph.GetMasterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetMasterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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:lgraph.GetMasterRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetMasterRequest) - private static final lgraph.Lgraph.GetMasterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetMasterRequest(); - } - - public static lgraph.Lgraph.GetMasterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMasterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMasterRequest(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 lgraph.Lgraph.GetMasterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetMasterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.GetMasterResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required .lgraph.PeerInfo master = 1; - */ - boolean hasMaster(); - /** - * required .lgraph.PeerInfo master = 1; - */ - lgraph.Lgraph.PeerInfo getMaster(); - /** - * required .lgraph.PeerInfo master = 1; - */ - lgraph.Lgraph.PeerInfoOrBuilder getMasterOrBuilder(); - } - /** - * Protobuf type {@code lgraph.GetMasterResponse} - */ - public static final class GetMasterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.GetMasterResponse) - GetMasterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetMasterResponse.newBuilder() to construct. - private GetMasterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetMasterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetMasterResponse( - 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: { - lgraph.Lgraph.PeerInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = master_.toBuilder(); - } - master_ = input.readMessage(lgraph.Lgraph.PeerInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(master_); - master_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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 lgraph.Lgraph.internal_static_lgraph_GetMasterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetMasterResponse.class, lgraph.Lgraph.GetMasterResponse.Builder.class); - } - - private int bitField0_; - public static final int MASTER_FIELD_NUMBER = 1; - private lgraph.Lgraph.PeerInfo master_; - /** - * required .lgraph.PeerInfo master = 1; - */ - public boolean hasMaster() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public lgraph.Lgraph.PeerInfo getMaster() { - return master_ == null ? lgraph.Lgraph.PeerInfo.getDefaultInstance() : master_; - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public lgraph.Lgraph.PeerInfoOrBuilder getMasterOrBuilder() { - return master_ == null ? lgraph.Lgraph.PeerInfo.getDefaultInstance() : master_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasMaster()) { - memoizedIsInitialized = 0; - return false; - } - if (!getMaster().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getMaster()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMaster()); - } - 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 lgraph.Lgraph.GetMasterResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.GetMasterResponse other = (lgraph.Lgraph.GetMasterResponse) obj; - - boolean result = true; - result = result && (hasMaster() == other.hasMaster()); - if (hasMaster()) { - result = result && getMaster() - .equals(other.getMaster()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMaster()) { - hash = (37 * hash) + MASTER_FIELD_NUMBER; - hash = (53 * hash) + getMaster().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.GetMasterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.GetMasterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterResponse 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 lgraph.Lgraph.GetMasterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterResponse 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 lgraph.Lgraph.GetMasterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.GetMasterResponse 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(lgraph.Lgraph.GetMasterResponse 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 lgraph.GetMasterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.GetMasterResponse) - lgraph.Lgraph.GetMasterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.GetMasterResponse.class, lgraph.Lgraph.GetMasterResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.GetMasterResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMasterFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (masterBuilder_ == null) { - master_ = null; - } else { - masterBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_GetMasterResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterResponse getDefaultInstanceForType() { - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterResponse build() { - lgraph.Lgraph.GetMasterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.GetMasterResponse buildPartial() { - lgraph.Lgraph.GetMasterResponse result = new lgraph.Lgraph.GetMasterResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (masterBuilder_ == null) { - result.master_ = master_; - } else { - result.master_ = masterBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.GetMasterResponse) { - return mergeFrom((lgraph.Lgraph.GetMasterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.GetMasterResponse other) { - if (other == lgraph.Lgraph.GetMasterResponse.getDefaultInstance()) return this; - if (other.hasMaster()) { - mergeMaster(other.getMaster()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasMaster()) { - return false; - } - if (!getMaster().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.GetMasterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.GetMasterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private lgraph.Lgraph.PeerInfo master_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder> masterBuilder_; - /** - * required .lgraph.PeerInfo master = 1; - */ - public boolean hasMaster() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public lgraph.Lgraph.PeerInfo getMaster() { - if (masterBuilder_ == null) { - return master_ == null ? lgraph.Lgraph.PeerInfo.getDefaultInstance() : master_; - } else { - return masterBuilder_.getMessage(); - } - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public Builder setMaster(lgraph.Lgraph.PeerInfo value) { - if (masterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - master_ = value; - onChanged(); - } else { - masterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public Builder setMaster( - lgraph.Lgraph.PeerInfo.Builder builderForValue) { - if (masterBuilder_ == null) { - master_ = builderForValue.build(); - onChanged(); - } else { - masterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public Builder mergeMaster(lgraph.Lgraph.PeerInfo value) { - if (masterBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - master_ != null && - master_ != lgraph.Lgraph.PeerInfo.getDefaultInstance()) { - master_ = - lgraph.Lgraph.PeerInfo.newBuilder(master_).mergeFrom(value).buildPartial(); - } else { - master_ = value; - } - onChanged(); - } else { - masterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public Builder clearMaster() { - if (masterBuilder_ == null) { - master_ = null; - onChanged(); - } else { - masterBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public lgraph.Lgraph.PeerInfo.Builder getMasterBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMasterFieldBuilder().getBuilder(); - } - /** - * required .lgraph.PeerInfo master = 1; - */ - public lgraph.Lgraph.PeerInfoOrBuilder getMasterOrBuilder() { - if (masterBuilder_ != null) { - return masterBuilder_.getMessageOrBuilder(); - } else { - return master_ == null ? - lgraph.Lgraph.PeerInfo.getDefaultInstance() : master_; - } - } - /** - * required .lgraph.PeerInfo master = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder> - getMasterFieldBuilder() { - if (masterBuilder_ == null) { - masterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PeerInfo, lgraph.Lgraph.PeerInfo.Builder, lgraph.Lgraph.PeerInfoOrBuilder>( - getMaster(), - getParentForChildren(), - isClean()); - master_ = null; - } - return masterBuilder_; - } - @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:lgraph.GetMasterResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.GetMasterResponse) - private static final lgraph.Lgraph.GetMasterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.GetMasterResponse(); - } - - public static lgraph.Lgraph.GetMasterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMasterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMasterResponse(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 lgraph.Lgraph.GetMasterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SyncMetaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SyncMetaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * required string confirm = 1; - */ - boolean hasConfirm(); - /** - * required string confirm = 1; - */ - java.lang.String getConfirm(); - /** - * required string confirm = 1; - */ - com.google.protobuf.ByteString - getConfirmBytes(); - } - /** - * Protobuf type {@code lgraph.SyncMetaRequest} - */ - public static final class SyncMetaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SyncMetaRequest) - SyncMetaRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SyncMetaRequest.newBuilder() to construct. - private SyncMetaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SyncMetaRequest() { - confirm_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyncMetaRequest( - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - confirm_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_SyncMetaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SyncMetaRequest.class, lgraph.Lgraph.SyncMetaRequest.Builder.class); - } - - private int bitField0_; - public static final int CONFIRM_FIELD_NUMBER = 1; - private volatile java.lang.Object confirm_; - /** - * required string confirm = 1; - */ - public boolean hasConfirm() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string confirm = 1; - */ - public java.lang.String getConfirm() { - java.lang.Object ref = confirm_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - confirm_ = s; - } - return s; - } - } - /** - * required string confirm = 1; - */ - public com.google.protobuf.ByteString - getConfirmBytes() { - java.lang.Object ref = confirm_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confirm_ = 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; - - if (!hasConfirm()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, confirm_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, confirm_); - } - 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 lgraph.Lgraph.SyncMetaRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.SyncMetaRequest other = (lgraph.Lgraph.SyncMetaRequest) obj; - - boolean result = true; - result = result && (hasConfirm() == other.hasConfirm()); - if (hasConfirm()) { - result = result && getConfirm() - .equals(other.getConfirm()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasConfirm()) { - hash = (37 * hash) + CONFIRM_FIELD_NUMBER; - hash = (53 * hash) + getConfirm().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SyncMetaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaRequest 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 lgraph.Lgraph.SyncMetaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaRequest 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 lgraph.Lgraph.SyncMetaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaRequest 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(lgraph.Lgraph.SyncMetaRequest 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 lgraph.SyncMetaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SyncMetaRequest) - lgraph.Lgraph.SyncMetaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SyncMetaRequest.class, lgraph.Lgraph.SyncMetaRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.SyncMetaRequest.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(); - confirm_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaRequest getDefaultInstanceForType() { - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaRequest build() { - lgraph.Lgraph.SyncMetaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaRequest buildPartial() { - lgraph.Lgraph.SyncMetaRequest result = new lgraph.Lgraph.SyncMetaRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.confirm_ = confirm_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SyncMetaRequest) { - return mergeFrom((lgraph.Lgraph.SyncMetaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SyncMetaRequest other) { - if (other == lgraph.Lgraph.SyncMetaRequest.getDefaultInstance()) return this; - if (other.hasConfirm()) { - bitField0_ |= 0x00000001; - confirm_ = other.confirm_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasConfirm()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SyncMetaRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SyncMetaRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object confirm_ = ""; - /** - * required string confirm = 1; - */ - public boolean hasConfirm() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string confirm = 1; - */ - public java.lang.String getConfirm() { - java.lang.Object ref = confirm_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - confirm_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string confirm = 1; - */ - public com.google.protobuf.ByteString - getConfirmBytes() { - java.lang.Object ref = confirm_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - confirm_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string confirm = 1; - */ - public Builder setConfirm( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - confirm_ = value; - onChanged(); - return this; - } - /** - * required string confirm = 1; - */ - public Builder clearConfirm() { - bitField0_ = (bitField0_ & ~0x00000001); - confirm_ = getDefaultInstance().getConfirm(); - onChanged(); - return this; - } - /** - * required string confirm = 1; - */ - public Builder setConfirmBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - confirm_ = 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:lgraph.SyncMetaRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.SyncMetaRequest) - private static final lgraph.Lgraph.SyncMetaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SyncMetaRequest(); - } - - public static lgraph.Lgraph.SyncMetaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncMetaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncMetaRequest(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 lgraph.Lgraph.SyncMetaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SyncMetaResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.SyncMetaResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required int32 ret = 1; - */ - boolean hasRet(); - /** - * required int32 ret = 1; - */ - int getRet(); - } - /** - * Protobuf type {@code lgraph.SyncMetaResponse} - */ - public static final class SyncMetaResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.SyncMetaResponse) - SyncMetaResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SyncMetaResponse.newBuilder() to construct. - private SyncMetaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SyncMetaResponse() { - ret_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyncMetaResponse( - 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 8: { - bitField0_ |= 0x00000001; - ret_ = 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 lgraph.Lgraph.internal_static_lgraph_SyncMetaResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SyncMetaResponse.class, lgraph.Lgraph.SyncMetaResponse.Builder.class); - } - - private int bitField0_; - public static final int RET_FIELD_NUMBER = 1; - private int ret_; - /** - * required int32 ret = 1; - */ - public boolean hasRet() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int32 ret = 1; - */ - public int getRet() { - return ret_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRet()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, ret_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ret_); - } - 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 lgraph.Lgraph.SyncMetaResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.SyncMetaResponse other = (lgraph.Lgraph.SyncMetaResponse) obj; - - boolean result = true; - result = result && (hasRet() == other.hasRet()); - if (hasRet()) { - result = result && (getRet() - == other.getRet()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRet()) { - hash = (37 * hash) + RET_FIELD_NUMBER; - hash = (53 * hash) + getRet(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.SyncMetaResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.SyncMetaResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaResponse 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 lgraph.Lgraph.SyncMetaResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaResponse 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 lgraph.Lgraph.SyncMetaResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.SyncMetaResponse 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(lgraph.Lgraph.SyncMetaResponse 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 lgraph.SyncMetaResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.SyncMetaResponse) - lgraph.Lgraph.SyncMetaResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.SyncMetaResponse.class, lgraph.Lgraph.SyncMetaResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.SyncMetaResponse.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(); - ret_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_SyncMetaResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaResponse getDefaultInstanceForType() { - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaResponse build() { - lgraph.Lgraph.SyncMetaResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.SyncMetaResponse buildPartial() { - lgraph.Lgraph.SyncMetaResponse result = new lgraph.Lgraph.SyncMetaResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.ret_ = ret_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.SyncMetaResponse) { - return mergeFrom((lgraph.Lgraph.SyncMetaResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.SyncMetaResponse other) { - if (other == lgraph.Lgraph.SyncMetaResponse.getDefaultInstance()) return this; - if (other.hasRet()) { - setRet(other.getRet()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasRet()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.SyncMetaResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.SyncMetaResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int ret_ ; - /** - * required int32 ret = 1; - */ - public boolean hasRet() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int32 ret = 1; - */ - public int getRet() { - return ret_; - } - /** - * required int32 ret = 1; - */ - public Builder setRet(int value) { - bitField0_ |= 0x00000001; - ret_ = value; - onChanged(); - return this; - } - /** - * required int32 ret = 1; - */ - public Builder clearRet() { - bitField0_ = (bitField0_ & ~0x00000001); - ret_ = 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:lgraph.SyncMetaResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.SyncMetaResponse) - private static final lgraph.Lgraph.SyncMetaResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.SyncMetaResponse(); - } - - public static lgraph.Lgraph.SyncMetaResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncMetaResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncMetaResponse(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 lgraph.Lgraph.SyncMetaResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HARequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.HARequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - boolean hasHeartbeatRequest(); - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - lgraph.Lgraph.HeartbeatRequest getHeartbeatRequest(); - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - lgraph.Lgraph.HeartbeatRequestOrBuilder getHeartbeatRequestOrBuilder(); - - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - boolean hasListPeersRequest(); - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - lgraph.Lgraph.ListPeersRequest getListPeersRequest(); - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - lgraph.Lgraph.ListPeersRequestOrBuilder getListPeersRequestOrBuilder(); - - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - boolean hasGetMasterRequest(); - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - lgraph.Lgraph.GetMasterRequest getGetMasterRequest(); - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - lgraph.Lgraph.GetMasterRequestOrBuilder getGetMasterRequestOrBuilder(); - - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - boolean hasSyncMetaRequest(); - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - lgraph.Lgraph.SyncMetaRequest getSyncMetaRequest(); - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - lgraph.Lgraph.SyncMetaRequestOrBuilder getSyncMetaRequestOrBuilder(); - - public lgraph.Lgraph.HARequest.ReqCase getReqCase(); - } - /** - * Protobuf type {@code lgraph.HARequest} - */ - public static final class HARequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.HARequest) - HARequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use HARequest.newBuilder() to construct. - private HARequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HARequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HARequest( - 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: { - lgraph.Lgraph.HeartbeatRequest.Builder subBuilder = null; - if (reqCase_ == 1) { - subBuilder = ((lgraph.Lgraph.HeartbeatRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.HeartbeatRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.HeartbeatRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.ListPeersRequest.Builder subBuilder = null; - if (reqCase_ == 2) { - subBuilder = ((lgraph.Lgraph.ListPeersRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ListPeersRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListPeersRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.GetMasterRequest.Builder subBuilder = null; - if (reqCase_ == 3) { - subBuilder = ((lgraph.Lgraph.GetMasterRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.GetMasterRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetMasterRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.SyncMetaRequest.Builder subBuilder = null; - if (reqCase_ == 4) { - subBuilder = ((lgraph.Lgraph.SyncMetaRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.SyncMetaRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SyncMetaRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 4; - 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 lgraph.Lgraph.internal_static_lgraph_HARequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HARequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HARequest.class, lgraph.Lgraph.HARequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - HEARTBEAT_REQUEST(1), - LIST_PEERS_REQUEST(2), - GET_MASTER_REQUEST(3), - SYNC_META_REQUEST(4), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 1: return HEARTBEAT_REQUEST; - case 2: return LIST_PEERS_REQUEST; - case 3: return GET_MASTER_REQUEST; - case 4: return SYNC_META_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int HEARTBEAT_REQUEST_FIELD_NUMBER = 1; - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public boolean hasHeartbeatRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public lgraph.Lgraph.HeartbeatRequest getHeartbeatRequest() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.HeartbeatRequest) req_; - } - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public lgraph.Lgraph.HeartbeatRequestOrBuilder getHeartbeatRequestOrBuilder() { - if (reqCase_ == 1) { - return (lgraph.Lgraph.HeartbeatRequest) req_; - } - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - - public static final int LIST_PEERS_REQUEST_FIELD_NUMBER = 2; - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public boolean hasListPeersRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public lgraph.Lgraph.ListPeersRequest getListPeersRequest() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.ListPeersRequest) req_; - } - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public lgraph.Lgraph.ListPeersRequestOrBuilder getListPeersRequestOrBuilder() { - if (reqCase_ == 2) { - return (lgraph.Lgraph.ListPeersRequest) req_; - } - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - - public static final int GET_MASTER_REQUEST_FIELD_NUMBER = 3; - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public boolean hasGetMasterRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public lgraph.Lgraph.GetMasterRequest getGetMasterRequest() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.GetMasterRequest) req_; - } - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public lgraph.Lgraph.GetMasterRequestOrBuilder getGetMasterRequestOrBuilder() { - if (reqCase_ == 3) { - return (lgraph.Lgraph.GetMasterRequest) req_; - } - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - - public static final int SYNC_META_REQUEST_FIELD_NUMBER = 4; - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public boolean hasSyncMetaRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public lgraph.Lgraph.SyncMetaRequest getSyncMetaRequest() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.SyncMetaRequest) req_; - } - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public lgraph.Lgraph.SyncMetaRequestOrBuilder getSyncMetaRequestOrBuilder() { - if (reqCase_ == 4) { - return (lgraph.Lgraph.SyncMetaRequest) req_; - } - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasHeartbeatRequest()) { - if (!getHeartbeatRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSyncMetaRequest()) { - if (!getSyncMetaRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reqCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.HeartbeatRequest) req_); - } - if (reqCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.ListPeersRequest) req_); - } - if (reqCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.GetMasterRequest) req_); - } - if (reqCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.SyncMetaRequest) req_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reqCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.HeartbeatRequest) req_); - } - if (reqCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.ListPeersRequest) req_); - } - if (reqCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.GetMasterRequest) req_); - } - if (reqCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.SyncMetaRequest) req_); - } - 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 lgraph.Lgraph.HARequest)) { - return super.equals(obj); - } - lgraph.Lgraph.HARequest other = (lgraph.Lgraph.HARequest) obj; - - boolean result = true; - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 1: - result = result && getHeartbeatRequest() - .equals(other.getHeartbeatRequest()); - break; - case 2: - result = result && getListPeersRequest() - .equals(other.getListPeersRequest()); - break; - case 3: - result = result && getGetMasterRequest() - .equals(other.getGetMasterRequest()); - break; - case 4: - result = result && getSyncMetaRequest() - .equals(other.getSyncMetaRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (reqCase_) { - case 1: - hash = (37 * hash) + HEARTBEAT_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getHeartbeatRequest().hashCode(); - break; - case 2: - hash = (37 * hash) + LIST_PEERS_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getListPeersRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + GET_MASTER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getGetMasterRequest().hashCode(); - break; - case 4: - hash = (37 * hash) + SYNC_META_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getSyncMetaRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.HARequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HARequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HARequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HARequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HARequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HARequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HARequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HARequest 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 lgraph.Lgraph.HARequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HARequest 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 lgraph.Lgraph.HARequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HARequest 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(lgraph.Lgraph.HARequest 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 lgraph.HARequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.HARequest) - lgraph.Lgraph.HARequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_HARequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HARequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HARequest.class, lgraph.Lgraph.HARequest.Builder.class); - } - - // Construct using lgraph.Lgraph.HARequest.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(); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_HARequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.HARequest getDefaultInstanceForType() { - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.HARequest build() { - lgraph.Lgraph.HARequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.HARequest buildPartial() { - lgraph.Lgraph.HARequest result = new lgraph.Lgraph.HARequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (reqCase_ == 1) { - if (heartbeatRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = heartbeatRequestBuilder_.build(); - } - } - if (reqCase_ == 2) { - if (listPeersRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = listPeersRequestBuilder_.build(); - } - } - if (reqCase_ == 3) { - if (getMasterRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = getMasterRequestBuilder_.build(); - } - } - if (reqCase_ == 4) { - if (syncMetaRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = syncMetaRequestBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.HARequest) { - return mergeFrom((lgraph.Lgraph.HARequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.HARequest other) { - if (other == lgraph.Lgraph.HARequest.getDefaultInstance()) return this; - switch (other.getReqCase()) { - case HEARTBEAT_REQUEST: { - mergeHeartbeatRequest(other.getHeartbeatRequest()); - break; - } - case LIST_PEERS_REQUEST: { - mergeListPeersRequest(other.getListPeersRequest()); - break; - } - case GET_MASTER_REQUEST: { - mergeGetMasterRequest(other.getGetMasterRequest()); - break; - } - case SYNC_META_REQUEST: { - mergeSyncMetaRequest(other.getSyncMetaRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasHeartbeatRequest()) { - if (!getHeartbeatRequest().isInitialized()) { - return false; - } - } - if (hasSyncMetaRequest()) { - if (!getSyncMetaRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.HARequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.HARequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatRequest, lgraph.Lgraph.HeartbeatRequest.Builder, lgraph.Lgraph.HeartbeatRequestOrBuilder> heartbeatRequestBuilder_; - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public boolean hasHeartbeatRequest() { - return reqCase_ == 1; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public lgraph.Lgraph.HeartbeatRequest getHeartbeatRequest() { - if (heartbeatRequestBuilder_ == null) { - if (reqCase_ == 1) { - return (lgraph.Lgraph.HeartbeatRequest) req_; - } - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } else { - if (reqCase_ == 1) { - return heartbeatRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public Builder setHeartbeatRequest(lgraph.Lgraph.HeartbeatRequest value) { - if (heartbeatRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - heartbeatRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public Builder setHeartbeatRequest( - lgraph.Lgraph.HeartbeatRequest.Builder builderForValue) { - if (heartbeatRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - heartbeatRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public Builder mergeHeartbeatRequest(lgraph.Lgraph.HeartbeatRequest value) { - if (heartbeatRequestBuilder_ == null) { - if (reqCase_ == 1 && - req_ != lgraph.Lgraph.HeartbeatRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.HeartbeatRequest.newBuilder((lgraph.Lgraph.HeartbeatRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 1) { - heartbeatRequestBuilder_.mergeFrom(value); - } - heartbeatRequestBuilder_.setMessage(value); - } - reqCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public Builder clearHeartbeatRequest() { - if (heartbeatRequestBuilder_ == null) { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 1) { - reqCase_ = 0; - req_ = null; - } - heartbeatRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public lgraph.Lgraph.HeartbeatRequest.Builder getHeartbeatRequestBuilder() { - return getHeartbeatRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - public lgraph.Lgraph.HeartbeatRequestOrBuilder getHeartbeatRequestOrBuilder() { - if ((reqCase_ == 1) && (heartbeatRequestBuilder_ != null)) { - return heartbeatRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 1) { - return (lgraph.Lgraph.HeartbeatRequest) req_; - } - return lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.HeartbeatRequest heartbeat_request = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatRequest, lgraph.Lgraph.HeartbeatRequest.Builder, lgraph.Lgraph.HeartbeatRequestOrBuilder> - getHeartbeatRequestFieldBuilder() { - if (heartbeatRequestBuilder_ == null) { - if (!(reqCase_ == 1)) { - req_ = lgraph.Lgraph.HeartbeatRequest.getDefaultInstance(); - } - heartbeatRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatRequest, lgraph.Lgraph.HeartbeatRequest.Builder, lgraph.Lgraph.HeartbeatRequestOrBuilder>( - (lgraph.Lgraph.HeartbeatRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 1; - onChanged();; - return heartbeatRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersRequest, lgraph.Lgraph.ListPeersRequest.Builder, lgraph.Lgraph.ListPeersRequestOrBuilder> listPeersRequestBuilder_; - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public boolean hasListPeersRequest() { - return reqCase_ == 2; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public lgraph.Lgraph.ListPeersRequest getListPeersRequest() { - if (listPeersRequestBuilder_ == null) { - if (reqCase_ == 2) { - return (lgraph.Lgraph.ListPeersRequest) req_; - } - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } else { - if (reqCase_ == 2) { - return listPeersRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public Builder setListPeersRequest(lgraph.Lgraph.ListPeersRequest value) { - if (listPeersRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - listPeersRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public Builder setListPeersRequest( - lgraph.Lgraph.ListPeersRequest.Builder builderForValue) { - if (listPeersRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - listPeersRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public Builder mergeListPeersRequest(lgraph.Lgraph.ListPeersRequest value) { - if (listPeersRequestBuilder_ == null) { - if (reqCase_ == 2 && - req_ != lgraph.Lgraph.ListPeersRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ListPeersRequest.newBuilder((lgraph.Lgraph.ListPeersRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 2) { - listPeersRequestBuilder_.mergeFrom(value); - } - listPeersRequestBuilder_.setMessage(value); - } - reqCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public Builder clearListPeersRequest() { - if (listPeersRequestBuilder_ == null) { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 2) { - reqCase_ = 0; - req_ = null; - } - listPeersRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public lgraph.Lgraph.ListPeersRequest.Builder getListPeersRequestBuilder() { - return getListPeersRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - public lgraph.Lgraph.ListPeersRequestOrBuilder getListPeersRequestOrBuilder() { - if ((reqCase_ == 2) && (listPeersRequestBuilder_ != null)) { - return listPeersRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 2) { - return (lgraph.Lgraph.ListPeersRequest) req_; - } - return lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPeersRequest list_peers_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersRequest, lgraph.Lgraph.ListPeersRequest.Builder, lgraph.Lgraph.ListPeersRequestOrBuilder> - getListPeersRequestFieldBuilder() { - if (listPeersRequestBuilder_ == null) { - if (!(reqCase_ == 2)) { - req_ = lgraph.Lgraph.ListPeersRequest.getDefaultInstance(); - } - listPeersRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersRequest, lgraph.Lgraph.ListPeersRequest.Builder, lgraph.Lgraph.ListPeersRequestOrBuilder>( - (lgraph.Lgraph.ListPeersRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 2; - onChanged();; - return listPeersRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterRequest, lgraph.Lgraph.GetMasterRequest.Builder, lgraph.Lgraph.GetMasterRequestOrBuilder> getMasterRequestBuilder_; - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public boolean hasGetMasterRequest() { - return reqCase_ == 3; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public lgraph.Lgraph.GetMasterRequest getGetMasterRequest() { - if (getMasterRequestBuilder_ == null) { - if (reqCase_ == 3) { - return (lgraph.Lgraph.GetMasterRequest) req_; - } - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } else { - if (reqCase_ == 3) { - return getMasterRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public Builder setGetMasterRequest(lgraph.Lgraph.GetMasterRequest value) { - if (getMasterRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - getMasterRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public Builder setGetMasterRequest( - lgraph.Lgraph.GetMasterRequest.Builder builderForValue) { - if (getMasterRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - getMasterRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public Builder mergeGetMasterRequest(lgraph.Lgraph.GetMasterRequest value) { - if (getMasterRequestBuilder_ == null) { - if (reqCase_ == 3 && - req_ != lgraph.Lgraph.GetMasterRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.GetMasterRequest.newBuilder((lgraph.Lgraph.GetMasterRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 3) { - getMasterRequestBuilder_.mergeFrom(value); - } - getMasterRequestBuilder_.setMessage(value); - } - reqCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public Builder clearGetMasterRequest() { - if (getMasterRequestBuilder_ == null) { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 3) { - reqCase_ = 0; - req_ = null; - } - getMasterRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public lgraph.Lgraph.GetMasterRequest.Builder getGetMasterRequestBuilder() { - return getGetMasterRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - public lgraph.Lgraph.GetMasterRequestOrBuilder getGetMasterRequestOrBuilder() { - if ((reqCase_ == 3) && (getMasterRequestBuilder_ != null)) { - return getMasterRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 3) { - return (lgraph.Lgraph.GetMasterRequest) req_; - } - return lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetMasterRequest get_master_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterRequest, lgraph.Lgraph.GetMasterRequest.Builder, lgraph.Lgraph.GetMasterRequestOrBuilder> - getGetMasterRequestFieldBuilder() { - if (getMasterRequestBuilder_ == null) { - if (!(reqCase_ == 3)) { - req_ = lgraph.Lgraph.GetMasterRequest.getDefaultInstance(); - } - getMasterRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterRequest, lgraph.Lgraph.GetMasterRequest.Builder, lgraph.Lgraph.GetMasterRequestOrBuilder>( - (lgraph.Lgraph.GetMasterRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 3; - onChanged();; - return getMasterRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaRequest, lgraph.Lgraph.SyncMetaRequest.Builder, lgraph.Lgraph.SyncMetaRequestOrBuilder> syncMetaRequestBuilder_; - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public boolean hasSyncMetaRequest() { - return reqCase_ == 4; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public lgraph.Lgraph.SyncMetaRequest getSyncMetaRequest() { - if (syncMetaRequestBuilder_ == null) { - if (reqCase_ == 4) { - return (lgraph.Lgraph.SyncMetaRequest) req_; - } - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } else { - if (reqCase_ == 4) { - return syncMetaRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public Builder setSyncMetaRequest(lgraph.Lgraph.SyncMetaRequest value) { - if (syncMetaRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - syncMetaRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public Builder setSyncMetaRequest( - lgraph.Lgraph.SyncMetaRequest.Builder builderForValue) { - if (syncMetaRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - syncMetaRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public Builder mergeSyncMetaRequest(lgraph.Lgraph.SyncMetaRequest value) { - if (syncMetaRequestBuilder_ == null) { - if (reqCase_ == 4 && - req_ != lgraph.Lgraph.SyncMetaRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.SyncMetaRequest.newBuilder((lgraph.Lgraph.SyncMetaRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 4) { - syncMetaRequestBuilder_.mergeFrom(value); - } - syncMetaRequestBuilder_.setMessage(value); - } - reqCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public Builder clearSyncMetaRequest() { - if (syncMetaRequestBuilder_ == null) { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 4) { - reqCase_ = 0; - req_ = null; - } - syncMetaRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public lgraph.Lgraph.SyncMetaRequest.Builder getSyncMetaRequestBuilder() { - return getSyncMetaRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - public lgraph.Lgraph.SyncMetaRequestOrBuilder getSyncMetaRequestOrBuilder() { - if ((reqCase_ == 4) && (syncMetaRequestBuilder_ != null)) { - return syncMetaRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 4) { - return (lgraph.Lgraph.SyncMetaRequest) req_; - } - return lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SyncMetaRequest sync_meta_request = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaRequest, lgraph.Lgraph.SyncMetaRequest.Builder, lgraph.Lgraph.SyncMetaRequestOrBuilder> - getSyncMetaRequestFieldBuilder() { - if (syncMetaRequestBuilder_ == null) { - if (!(reqCase_ == 4)) { - req_ = lgraph.Lgraph.SyncMetaRequest.getDefaultInstance(); - } - syncMetaRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaRequest, lgraph.Lgraph.SyncMetaRequest.Builder, lgraph.Lgraph.SyncMetaRequestOrBuilder>( - (lgraph.Lgraph.SyncMetaRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 4; - onChanged();; - return syncMetaRequestBuilder_; - } - @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:lgraph.HARequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.HARequest) - private static final lgraph.Lgraph.HARequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.HARequest(); - } - - public static lgraph.Lgraph.HARequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HARequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HARequest(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 lgraph.Lgraph.HARequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HAResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.HAResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - boolean hasHeartbeatResponse(); - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - lgraph.Lgraph.HeartbeatResponse getHeartbeatResponse(); - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - lgraph.Lgraph.HeartbeatResponseOrBuilder getHeartbeatResponseOrBuilder(); - - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - boolean hasListPeersResponse(); - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - lgraph.Lgraph.ListPeersResponse getListPeersResponse(); - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - lgraph.Lgraph.ListPeersResponseOrBuilder getListPeersResponseOrBuilder(); - - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - boolean hasGetMasterResponse(); - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - lgraph.Lgraph.GetMasterResponse getGetMasterResponse(); - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - lgraph.Lgraph.GetMasterResponseOrBuilder getGetMasterResponseOrBuilder(); - - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - boolean hasSyncMetaResponse(); - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - lgraph.Lgraph.SyncMetaResponse getSyncMetaResponse(); - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - lgraph.Lgraph.SyncMetaResponseOrBuilder getSyncMetaResponseOrBuilder(); - - public lgraph.Lgraph.HAResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.HAResponse} - */ - public static final class HAResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.HAResponse) - HAResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use HAResponse.newBuilder() to construct. - private HAResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HAResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HAResponse( - 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: { - lgraph.Lgraph.HeartbeatResponse.Builder subBuilder = null; - if (respCase_ == 1) { - subBuilder = ((lgraph.Lgraph.HeartbeatResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.HeartbeatResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.HeartbeatResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 1; - break; - } - case 18: { - lgraph.Lgraph.ListPeersResponse.Builder subBuilder = null; - if (respCase_ == 2) { - subBuilder = ((lgraph.Lgraph.ListPeersResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ListPeersResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ListPeersResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 2; - break; - } - case 26: { - lgraph.Lgraph.GetMasterResponse.Builder subBuilder = null; - if (respCase_ == 3) { - subBuilder = ((lgraph.Lgraph.GetMasterResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.GetMasterResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GetMasterResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 3; - break; - } - case 34: { - lgraph.Lgraph.SyncMetaResponse.Builder subBuilder = null; - if (respCase_ == 4) { - subBuilder = ((lgraph.Lgraph.SyncMetaResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.SyncMetaResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SyncMetaResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 4; - 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 lgraph.Lgraph.internal_static_lgraph_HAResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HAResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HAResponse.class, lgraph.Lgraph.HAResponse.Builder.class); - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - HEARTBEAT_RESPONSE(1), - LIST_PEERS_RESPONSE(2), - GET_MASTER_RESPONSE(3), - SYNC_META_RESPONSE(4), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 1: return HEARTBEAT_RESPONSE; - case 2: return LIST_PEERS_RESPONSE; - case 3: return GET_MASTER_RESPONSE; - case 4: return SYNC_META_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int HEARTBEAT_RESPONSE_FIELD_NUMBER = 1; - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public boolean hasHeartbeatResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public lgraph.Lgraph.HeartbeatResponse getHeartbeatResponse() { - if (respCase_ == 1) { - return (lgraph.Lgraph.HeartbeatResponse) resp_; - } - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public lgraph.Lgraph.HeartbeatResponseOrBuilder getHeartbeatResponseOrBuilder() { - if (respCase_ == 1) { - return (lgraph.Lgraph.HeartbeatResponse) resp_; - } - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - - public static final int LIST_PEERS_RESPONSE_FIELD_NUMBER = 2; - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public boolean hasListPeersResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public lgraph.Lgraph.ListPeersResponse getListPeersResponse() { - if (respCase_ == 2) { - return (lgraph.Lgraph.ListPeersResponse) resp_; - } - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public lgraph.Lgraph.ListPeersResponseOrBuilder getListPeersResponseOrBuilder() { - if (respCase_ == 2) { - return (lgraph.Lgraph.ListPeersResponse) resp_; - } - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - - public static final int GET_MASTER_RESPONSE_FIELD_NUMBER = 3; - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public boolean hasGetMasterResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public lgraph.Lgraph.GetMasterResponse getGetMasterResponse() { - if (respCase_ == 3) { - return (lgraph.Lgraph.GetMasterResponse) resp_; - } - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public lgraph.Lgraph.GetMasterResponseOrBuilder getGetMasterResponseOrBuilder() { - if (respCase_ == 3) { - return (lgraph.Lgraph.GetMasterResponse) resp_; - } - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - - public static final int SYNC_META_RESPONSE_FIELD_NUMBER = 4; - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public boolean hasSyncMetaResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public lgraph.Lgraph.SyncMetaResponse getSyncMetaResponse() { - if (respCase_ == 4) { - return (lgraph.Lgraph.SyncMetaResponse) resp_; - } - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public lgraph.Lgraph.SyncMetaResponseOrBuilder getSyncMetaResponseOrBuilder() { - if (respCase_ == 4) { - return (lgraph.Lgraph.SyncMetaResponse) resp_; - } - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasListPeersResponse()) { - if (!getListPeersResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasGetMasterResponse()) { - if (!getGetMasterResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSyncMetaResponse()) { - if (!getSyncMetaResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (respCase_ == 1) { - output.writeMessage(1, (lgraph.Lgraph.HeartbeatResponse) resp_); - } - if (respCase_ == 2) { - output.writeMessage(2, (lgraph.Lgraph.ListPeersResponse) resp_); - } - if (respCase_ == 3) { - output.writeMessage(3, (lgraph.Lgraph.GetMasterResponse) resp_); - } - if (respCase_ == 4) { - output.writeMessage(4, (lgraph.Lgraph.SyncMetaResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (respCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (lgraph.Lgraph.HeartbeatResponse) resp_); - } - if (respCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (lgraph.Lgraph.ListPeersResponse) resp_); - } - if (respCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (lgraph.Lgraph.GetMasterResponse) resp_); - } - if (respCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (lgraph.Lgraph.SyncMetaResponse) resp_); - } - 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 lgraph.Lgraph.HAResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.HAResponse other = (lgraph.Lgraph.HAResponse) obj; - - boolean result = true; - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 1: - result = result && getHeartbeatResponse() - .equals(other.getHeartbeatResponse()); - break; - case 2: - result = result && getListPeersResponse() - .equals(other.getListPeersResponse()); - break; - case 3: - result = result && getGetMasterResponse() - .equals(other.getGetMasterResponse()); - break; - case 4: - result = result && getSyncMetaResponse() - .equals(other.getSyncMetaResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (respCase_) { - case 1: - hash = (37 * hash) + HEARTBEAT_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getHeartbeatResponse().hashCode(); - break; - case 2: - hash = (37 * hash) + LIST_PEERS_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getListPeersResponse().hashCode(); - break; - case 3: - hash = (37 * hash) + GET_MASTER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getGetMasterResponse().hashCode(); - break; - case 4: - hash = (37 * hash) + SYNC_META_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getSyncMetaResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.HAResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HAResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HAResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HAResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HAResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.HAResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.HAResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HAResponse 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 lgraph.Lgraph.HAResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HAResponse 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 lgraph.Lgraph.HAResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.HAResponse 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(lgraph.Lgraph.HAResponse 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 lgraph.HAResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.HAResponse) - lgraph.Lgraph.HAResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_HAResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_HAResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.HAResponse.class, lgraph.Lgraph.HAResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.HAResponse.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(); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_HAResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.HAResponse getDefaultInstanceForType() { - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.HAResponse build() { - lgraph.Lgraph.HAResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.HAResponse buildPartial() { - lgraph.Lgraph.HAResponse result = new lgraph.Lgraph.HAResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (respCase_ == 1) { - if (heartbeatResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = heartbeatResponseBuilder_.build(); - } - } - if (respCase_ == 2) { - if (listPeersResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = listPeersResponseBuilder_.build(); - } - } - if (respCase_ == 3) { - if (getMasterResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = getMasterResponseBuilder_.build(); - } - } - if (respCase_ == 4) { - if (syncMetaResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = syncMetaResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.HAResponse) { - return mergeFrom((lgraph.Lgraph.HAResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.HAResponse other) { - if (other == lgraph.Lgraph.HAResponse.getDefaultInstance()) return this; - switch (other.getRespCase()) { - case HEARTBEAT_RESPONSE: { - mergeHeartbeatResponse(other.getHeartbeatResponse()); - break; - } - case LIST_PEERS_RESPONSE: { - mergeListPeersResponse(other.getListPeersResponse()); - break; - } - case GET_MASTER_RESPONSE: { - mergeGetMasterResponse(other.getGetMasterResponse()); - break; - } - case SYNC_META_RESPONSE: { - mergeSyncMetaResponse(other.getSyncMetaResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasListPeersResponse()) { - if (!getListPeersResponse().isInitialized()) { - return false; - } - } - if (hasGetMasterResponse()) { - if (!getGetMasterResponse().isInitialized()) { - return false; - } - } - if (hasSyncMetaResponse()) { - if (!getSyncMetaResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.HAResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.HAResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatResponse, lgraph.Lgraph.HeartbeatResponse.Builder, lgraph.Lgraph.HeartbeatResponseOrBuilder> heartbeatResponseBuilder_; - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public boolean hasHeartbeatResponse() { - return respCase_ == 1; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public lgraph.Lgraph.HeartbeatResponse getHeartbeatResponse() { - if (heartbeatResponseBuilder_ == null) { - if (respCase_ == 1) { - return (lgraph.Lgraph.HeartbeatResponse) resp_; - } - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } else { - if (respCase_ == 1) { - return heartbeatResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public Builder setHeartbeatResponse(lgraph.Lgraph.HeartbeatResponse value) { - if (heartbeatResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - heartbeatResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public Builder setHeartbeatResponse( - lgraph.Lgraph.HeartbeatResponse.Builder builderForValue) { - if (heartbeatResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - heartbeatResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public Builder mergeHeartbeatResponse(lgraph.Lgraph.HeartbeatResponse value) { - if (heartbeatResponseBuilder_ == null) { - if (respCase_ == 1 && - resp_ != lgraph.Lgraph.HeartbeatResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.HeartbeatResponse.newBuilder((lgraph.Lgraph.HeartbeatResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 1) { - heartbeatResponseBuilder_.mergeFrom(value); - } - heartbeatResponseBuilder_.setMessage(value); - } - respCase_ = 1; - return this; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public Builder clearHeartbeatResponse() { - if (heartbeatResponseBuilder_ == null) { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 1) { - respCase_ = 0; - resp_ = null; - } - heartbeatResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public lgraph.Lgraph.HeartbeatResponse.Builder getHeartbeatResponseBuilder() { - return getHeartbeatResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - public lgraph.Lgraph.HeartbeatResponseOrBuilder getHeartbeatResponseOrBuilder() { - if ((respCase_ == 1) && (heartbeatResponseBuilder_ != null)) { - return heartbeatResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 1) { - return (lgraph.Lgraph.HeartbeatResponse) resp_; - } - return lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.HeartbeatResponse heartbeat_response = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatResponse, lgraph.Lgraph.HeartbeatResponse.Builder, lgraph.Lgraph.HeartbeatResponseOrBuilder> - getHeartbeatResponseFieldBuilder() { - if (heartbeatResponseBuilder_ == null) { - if (!(respCase_ == 1)) { - resp_ = lgraph.Lgraph.HeartbeatResponse.getDefaultInstance(); - } - heartbeatResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HeartbeatResponse, lgraph.Lgraph.HeartbeatResponse.Builder, lgraph.Lgraph.HeartbeatResponseOrBuilder>( - (lgraph.Lgraph.HeartbeatResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 1; - onChanged();; - return heartbeatResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersResponse, lgraph.Lgraph.ListPeersResponse.Builder, lgraph.Lgraph.ListPeersResponseOrBuilder> listPeersResponseBuilder_; - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public boolean hasListPeersResponse() { - return respCase_ == 2; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public lgraph.Lgraph.ListPeersResponse getListPeersResponse() { - if (listPeersResponseBuilder_ == null) { - if (respCase_ == 2) { - return (lgraph.Lgraph.ListPeersResponse) resp_; - } - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } else { - if (respCase_ == 2) { - return listPeersResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public Builder setListPeersResponse(lgraph.Lgraph.ListPeersResponse value) { - if (listPeersResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - listPeersResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public Builder setListPeersResponse( - lgraph.Lgraph.ListPeersResponse.Builder builderForValue) { - if (listPeersResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - listPeersResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public Builder mergeListPeersResponse(lgraph.Lgraph.ListPeersResponse value) { - if (listPeersResponseBuilder_ == null) { - if (respCase_ == 2 && - resp_ != lgraph.Lgraph.ListPeersResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ListPeersResponse.newBuilder((lgraph.Lgraph.ListPeersResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 2) { - listPeersResponseBuilder_.mergeFrom(value); - } - listPeersResponseBuilder_.setMessage(value); - } - respCase_ = 2; - return this; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public Builder clearListPeersResponse() { - if (listPeersResponseBuilder_ == null) { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 2) { - respCase_ = 0; - resp_ = null; - } - listPeersResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public lgraph.Lgraph.ListPeersResponse.Builder getListPeersResponseBuilder() { - return getListPeersResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - public lgraph.Lgraph.ListPeersResponseOrBuilder getListPeersResponseOrBuilder() { - if ((respCase_ == 2) && (listPeersResponseBuilder_ != null)) { - return listPeersResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 2) { - return (lgraph.Lgraph.ListPeersResponse) resp_; - } - return lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ListPeersResponse list_peers_response = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersResponse, lgraph.Lgraph.ListPeersResponse.Builder, lgraph.Lgraph.ListPeersResponseOrBuilder> - getListPeersResponseFieldBuilder() { - if (listPeersResponseBuilder_ == null) { - if (!(respCase_ == 2)) { - resp_ = lgraph.Lgraph.ListPeersResponse.getDefaultInstance(); - } - listPeersResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ListPeersResponse, lgraph.Lgraph.ListPeersResponse.Builder, lgraph.Lgraph.ListPeersResponseOrBuilder>( - (lgraph.Lgraph.ListPeersResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 2; - onChanged();; - return listPeersResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterResponse, lgraph.Lgraph.GetMasterResponse.Builder, lgraph.Lgraph.GetMasterResponseOrBuilder> getMasterResponseBuilder_; - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public boolean hasGetMasterResponse() { - return respCase_ == 3; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public lgraph.Lgraph.GetMasterResponse getGetMasterResponse() { - if (getMasterResponseBuilder_ == null) { - if (respCase_ == 3) { - return (lgraph.Lgraph.GetMasterResponse) resp_; - } - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } else { - if (respCase_ == 3) { - return getMasterResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public Builder setGetMasterResponse(lgraph.Lgraph.GetMasterResponse value) { - if (getMasterResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - getMasterResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public Builder setGetMasterResponse( - lgraph.Lgraph.GetMasterResponse.Builder builderForValue) { - if (getMasterResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - getMasterResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public Builder mergeGetMasterResponse(lgraph.Lgraph.GetMasterResponse value) { - if (getMasterResponseBuilder_ == null) { - if (respCase_ == 3 && - resp_ != lgraph.Lgraph.GetMasterResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.GetMasterResponse.newBuilder((lgraph.Lgraph.GetMasterResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 3) { - getMasterResponseBuilder_.mergeFrom(value); - } - getMasterResponseBuilder_.setMessage(value); - } - respCase_ = 3; - return this; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public Builder clearGetMasterResponse() { - if (getMasterResponseBuilder_ == null) { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 3) { - respCase_ = 0; - resp_ = null; - } - getMasterResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public lgraph.Lgraph.GetMasterResponse.Builder getGetMasterResponseBuilder() { - return getGetMasterResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - public lgraph.Lgraph.GetMasterResponseOrBuilder getGetMasterResponseOrBuilder() { - if ((respCase_ == 3) && (getMasterResponseBuilder_ != null)) { - return getMasterResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 3) { - return (lgraph.Lgraph.GetMasterResponse) resp_; - } - return lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GetMasterResponse get_master_response = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterResponse, lgraph.Lgraph.GetMasterResponse.Builder, lgraph.Lgraph.GetMasterResponseOrBuilder> - getGetMasterResponseFieldBuilder() { - if (getMasterResponseBuilder_ == null) { - if (!(respCase_ == 3)) { - resp_ = lgraph.Lgraph.GetMasterResponse.getDefaultInstance(); - } - getMasterResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GetMasterResponse, lgraph.Lgraph.GetMasterResponse.Builder, lgraph.Lgraph.GetMasterResponseOrBuilder>( - (lgraph.Lgraph.GetMasterResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 3; - onChanged();; - return getMasterResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaResponse, lgraph.Lgraph.SyncMetaResponse.Builder, lgraph.Lgraph.SyncMetaResponseOrBuilder> syncMetaResponseBuilder_; - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public boolean hasSyncMetaResponse() { - return respCase_ == 4; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public lgraph.Lgraph.SyncMetaResponse getSyncMetaResponse() { - if (syncMetaResponseBuilder_ == null) { - if (respCase_ == 4) { - return (lgraph.Lgraph.SyncMetaResponse) resp_; - } - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } else { - if (respCase_ == 4) { - return syncMetaResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public Builder setSyncMetaResponse(lgraph.Lgraph.SyncMetaResponse value) { - if (syncMetaResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - syncMetaResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public Builder setSyncMetaResponse( - lgraph.Lgraph.SyncMetaResponse.Builder builderForValue) { - if (syncMetaResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - syncMetaResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public Builder mergeSyncMetaResponse(lgraph.Lgraph.SyncMetaResponse value) { - if (syncMetaResponseBuilder_ == null) { - if (respCase_ == 4 && - resp_ != lgraph.Lgraph.SyncMetaResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.SyncMetaResponse.newBuilder((lgraph.Lgraph.SyncMetaResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 4) { - syncMetaResponseBuilder_.mergeFrom(value); - } - syncMetaResponseBuilder_.setMessage(value); - } - respCase_ = 4; - return this; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public Builder clearSyncMetaResponse() { - if (syncMetaResponseBuilder_ == null) { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 4) { - respCase_ = 0; - resp_ = null; - } - syncMetaResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public lgraph.Lgraph.SyncMetaResponse.Builder getSyncMetaResponseBuilder() { - return getSyncMetaResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - public lgraph.Lgraph.SyncMetaResponseOrBuilder getSyncMetaResponseOrBuilder() { - if ((respCase_ == 4) && (syncMetaResponseBuilder_ != null)) { - return syncMetaResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 4) { - return (lgraph.Lgraph.SyncMetaResponse) resp_; - } - return lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SyncMetaResponse sync_meta_response = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaResponse, lgraph.Lgraph.SyncMetaResponse.Builder, lgraph.Lgraph.SyncMetaResponseOrBuilder> - getSyncMetaResponseFieldBuilder() { - if (syncMetaResponseBuilder_ == null) { - if (!(respCase_ == 4)) { - resp_ = lgraph.Lgraph.SyncMetaResponse.getDefaultInstance(); - } - syncMetaResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SyncMetaResponse, lgraph.Lgraph.SyncMetaResponse.Builder, lgraph.Lgraph.SyncMetaResponseOrBuilder>( - (lgraph.Lgraph.SyncMetaResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 4; - onChanged();; - return syncMetaResponseBuilder_; - } - @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:lgraph.HAResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.HAResponse) - private static final lgraph.Lgraph.HAResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.HAResponse(); - } - - public static lgraph.Lgraph.HAResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HAResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HAResponse(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 lgraph.Lgraph.HAResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LGraphRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LGraphRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 client_version = 1; - */ - boolean hasClientVersion(); - /** - * optional int64 client_version = 1; - */ - long getClientVersion(); - - /** - * required string token = 2; - */ - boolean hasToken(); - /** - * required string token = 2; - */ - java.lang.String getToken(); - /** - * required string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - * optional bool is_write_op = 3; - */ - boolean hasIsWriteOp(); - /** - * optional bool is_write_op = 3; - */ - boolean getIsWriteOp(); - - /** - * optional string user = 4; - */ - boolean hasUser(); - /** - * optional string user = 4; - */ - java.lang.String getUser(); - /** - * optional string user = 4; - */ - com.google.protobuf.ByteString - getUserBytes(); - - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - boolean hasGraphApiRequest(); - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - lgraph.Lgraph.GraphApiRequest getGraphApiRequest(); - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - lgraph.Lgraph.GraphApiRequestOrBuilder getGraphApiRequestOrBuilder(); - - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - boolean hasCypherRequest(); - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - lgraph.Lgraph.CypherRequest getCypherRequest(); - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - lgraph.Lgraph.CypherRequestOrBuilder getCypherRequestOrBuilder(); - - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - boolean hasPluginRequest(); - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - lgraph.Lgraph.PluginRequest getPluginRequest(); - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - lgraph.Lgraph.PluginRequestOrBuilder getPluginRequestOrBuilder(); - - /** - * optional .lgraph.HARequest ha_request = 14; - */ - boolean hasHaRequest(); - /** - * optional .lgraph.HARequest ha_request = 14; - */ - lgraph.Lgraph.HARequest getHaRequest(); - /** - * optional .lgraph.HARequest ha_request = 14; - */ - lgraph.Lgraph.HARequestOrBuilder getHaRequestOrBuilder(); - - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - boolean hasImportRequest(); - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - lgraph.Lgraph.ImportRequest getImportRequest(); - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - lgraph.Lgraph.ImportRequestOrBuilder getImportRequestOrBuilder(); - - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - boolean hasGraphRequest(); - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - lgraph.Lgraph.GraphRequest getGraphRequest(); - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - lgraph.Lgraph.GraphRequestOrBuilder getGraphRequestOrBuilder(); - - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - boolean hasAclRequest(); - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - lgraph.Lgraph.AclRequest getAclRequest(); - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - lgraph.Lgraph.AclRequestOrBuilder getAclRequestOrBuilder(); - - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - boolean hasConfigRequest(); - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - lgraph.Lgraph.ConfigRequest getConfigRequest(); - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - lgraph.Lgraph.ConfigRequestOrBuilder getConfigRequestOrBuilder(); - - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - boolean hasRestoreRequest(); - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - lgraph.Lgraph.RestoreRequest getRestoreRequest(); - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - lgraph.Lgraph.RestoreRequestOrBuilder getRestoreRequestOrBuilder(); - - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - boolean hasSchemaRequest(); - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - lgraph.Lgraph.SchemaRequest getSchemaRequest(); - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - lgraph.Lgraph.SchemaRequestOrBuilder getSchemaRequestOrBuilder(); - - public lgraph.Lgraph.LGraphRequest.ReqCase getReqCase(); - } - /** - *
-   *--------------------------------
-   * envelope
-   *--------------------------------
-   * 
- * - * Protobuf type {@code lgraph.LGraphRequest} - */ - public static final class LGraphRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LGraphRequest) - LGraphRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LGraphRequest.newBuilder() to construct. - private LGraphRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LGraphRequest() { - clientVersion_ = 0L; - token_ = ""; - isWriteOp_ = false; - user_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LGraphRequest( - 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 8: { - bitField0_ |= 0x00000001; - clientVersion_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - token_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - isWriteOp_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - user_ = bs; - break; - } - case 90: { - lgraph.Lgraph.GraphApiRequest.Builder subBuilder = null; - if (reqCase_ == 11) { - subBuilder = ((lgraph.Lgraph.GraphApiRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.GraphApiRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GraphApiRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 11; - break; - } - case 98: { - lgraph.Lgraph.CypherRequest.Builder subBuilder = null; - if (reqCase_ == 12) { - subBuilder = ((lgraph.Lgraph.CypherRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.CypherRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.CypherRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 12; - break; - } - case 106: { - lgraph.Lgraph.PluginRequest.Builder subBuilder = null; - if (reqCase_ == 13) { - subBuilder = ((lgraph.Lgraph.PluginRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.PluginRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.PluginRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 13; - break; - } - case 114: { - lgraph.Lgraph.HARequest.Builder subBuilder = null; - if (reqCase_ == 14) { - subBuilder = ((lgraph.Lgraph.HARequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.HARequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.HARequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 14; - break; - } - case 122: { - lgraph.Lgraph.ImportRequest.Builder subBuilder = null; - if (reqCase_ == 15) { - subBuilder = ((lgraph.Lgraph.ImportRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ImportRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ImportRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 15; - break; - } - case 138: { - lgraph.Lgraph.GraphRequest.Builder subBuilder = null; - if (reqCase_ == 17) { - subBuilder = ((lgraph.Lgraph.GraphRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.GraphRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GraphRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 17; - break; - } - case 146: { - lgraph.Lgraph.AclRequest.Builder subBuilder = null; - if (reqCase_ == 18) { - subBuilder = ((lgraph.Lgraph.AclRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.AclRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AclRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 18; - break; - } - case 154: { - lgraph.Lgraph.ConfigRequest.Builder subBuilder = null; - if (reqCase_ == 19) { - subBuilder = ((lgraph.Lgraph.ConfigRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.ConfigRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ConfigRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 19; - break; - } - case 162: { - lgraph.Lgraph.RestoreRequest.Builder subBuilder = null; - if (reqCase_ == 20) { - subBuilder = ((lgraph.Lgraph.RestoreRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.RestoreRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.RestoreRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 20; - break; - } - case 170: { - lgraph.Lgraph.SchemaRequest.Builder subBuilder = null; - if (reqCase_ == 21) { - subBuilder = ((lgraph.Lgraph.SchemaRequest) req_).toBuilder(); - } - req_ = - input.readMessage(lgraph.Lgraph.SchemaRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SchemaRequest) req_); - req_ = subBuilder.buildPartial(); - } - reqCase_ = 21; - 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 lgraph.Lgraph.internal_static_lgraph_LGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LGraphRequest.class, lgraph.Lgraph.LGraphRequest.Builder.class); - } - - private int bitField0_; - private int reqCase_ = 0; - private java.lang.Object req_; - public enum ReqCase - implements com.google.protobuf.Internal.EnumLite { - GRAPH_API_REQUEST(11), - CYPHER_REQUEST(12), - PLUGIN_REQUEST(13), - HA_REQUEST(14), - IMPORT_REQUEST(15), - GRAPH_REQUEST(17), - ACL_REQUEST(18), - CONFIG_REQUEST(19), - RESTORE_REQUEST(20), - SCHEMA_REQUEST(21), - REQ_NOT_SET(0); - private final int value; - private ReqCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReqCase valueOf(int value) { - return forNumber(value); - } - - public static ReqCase forNumber(int value) { - switch (value) { - case 11: return GRAPH_API_REQUEST; - case 12: return CYPHER_REQUEST; - case 13: return PLUGIN_REQUEST; - case 14: return HA_REQUEST; - case 15: return IMPORT_REQUEST; - case 17: return GRAPH_REQUEST; - case 18: return ACL_REQUEST; - case 19: return CONFIG_REQUEST; - case 20: return RESTORE_REQUEST; - case 21: return SCHEMA_REQUEST; - case 0: return REQ_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public static final int CLIENT_VERSION_FIELD_NUMBER = 1; - private long clientVersion_; - /** - * optional int64 client_version = 1; - */ - public boolean hasClientVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 client_version = 1; - */ - public long getClientVersion() { - return clientVersion_; - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - * required string token = 2; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } - } - /** - * required string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_WRITE_OP_FIELD_NUMBER = 3; - private boolean isWriteOp_; - /** - * optional bool is_write_op = 3; - */ - public boolean hasIsWriteOp() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool is_write_op = 3; - */ - public boolean getIsWriteOp() { - return isWriteOp_; - } - - public static final int USER_FIELD_NUMBER = 4; - private volatile java.lang.Object user_; - /** - * optional string user = 4; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string user = 4; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * optional string user = 4; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRAPH_API_REQUEST_FIELD_NUMBER = 11; - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public boolean hasGraphApiRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public lgraph.Lgraph.GraphApiRequest getGraphApiRequest() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.GraphApiRequest) req_; - } - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public lgraph.Lgraph.GraphApiRequestOrBuilder getGraphApiRequestOrBuilder() { - if (reqCase_ == 11) { - return (lgraph.Lgraph.GraphApiRequest) req_; - } - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - - public static final int CYPHER_REQUEST_FIELD_NUMBER = 12; - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public boolean hasCypherRequest() { - return reqCase_ == 12; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public lgraph.Lgraph.CypherRequest getCypherRequest() { - if (reqCase_ == 12) { - return (lgraph.Lgraph.CypherRequest) req_; - } - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public lgraph.Lgraph.CypherRequestOrBuilder getCypherRequestOrBuilder() { - if (reqCase_ == 12) { - return (lgraph.Lgraph.CypherRequest) req_; - } - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - - public static final int PLUGIN_REQUEST_FIELD_NUMBER = 13; - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public boolean hasPluginRequest() { - return reqCase_ == 13; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public lgraph.Lgraph.PluginRequest getPluginRequest() { - if (reqCase_ == 13) { - return (lgraph.Lgraph.PluginRequest) req_; - } - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public lgraph.Lgraph.PluginRequestOrBuilder getPluginRequestOrBuilder() { - if (reqCase_ == 13) { - return (lgraph.Lgraph.PluginRequest) req_; - } - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - - public static final int HA_REQUEST_FIELD_NUMBER = 14; - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public boolean hasHaRequest() { - return reqCase_ == 14; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public lgraph.Lgraph.HARequest getHaRequest() { - if (reqCase_ == 14) { - return (lgraph.Lgraph.HARequest) req_; - } - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public lgraph.Lgraph.HARequestOrBuilder getHaRequestOrBuilder() { - if (reqCase_ == 14) { - return (lgraph.Lgraph.HARequest) req_; - } - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } - - public static final int IMPORT_REQUEST_FIELD_NUMBER = 15; - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public boolean hasImportRequest() { - return reqCase_ == 15; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public lgraph.Lgraph.ImportRequest getImportRequest() { - if (reqCase_ == 15) { - return (lgraph.Lgraph.ImportRequest) req_; - } - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public lgraph.Lgraph.ImportRequestOrBuilder getImportRequestOrBuilder() { - if (reqCase_ == 15) { - return (lgraph.Lgraph.ImportRequest) req_; - } - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - - public static final int GRAPH_REQUEST_FIELD_NUMBER = 17; - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public boolean hasGraphRequest() { - return reqCase_ == 17; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public lgraph.Lgraph.GraphRequest getGraphRequest() { - if (reqCase_ == 17) { - return (lgraph.Lgraph.GraphRequest) req_; - } - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public lgraph.Lgraph.GraphRequestOrBuilder getGraphRequestOrBuilder() { - if (reqCase_ == 17) { - return (lgraph.Lgraph.GraphRequest) req_; - } - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - - public static final int ACL_REQUEST_FIELD_NUMBER = 18; - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public boolean hasAclRequest() { - return reqCase_ == 18; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public lgraph.Lgraph.AclRequest getAclRequest() { - if (reqCase_ == 18) { - return (lgraph.Lgraph.AclRequest) req_; - } - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public lgraph.Lgraph.AclRequestOrBuilder getAclRequestOrBuilder() { - if (reqCase_ == 18) { - return (lgraph.Lgraph.AclRequest) req_; - } - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - - public static final int CONFIG_REQUEST_FIELD_NUMBER = 19; - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public boolean hasConfigRequest() { - return reqCase_ == 19; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public lgraph.Lgraph.ConfigRequest getConfigRequest() { - if (reqCase_ == 19) { - return (lgraph.Lgraph.ConfigRequest) req_; - } - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public lgraph.Lgraph.ConfigRequestOrBuilder getConfigRequestOrBuilder() { - if (reqCase_ == 19) { - return (lgraph.Lgraph.ConfigRequest) req_; - } - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - - public static final int RESTORE_REQUEST_FIELD_NUMBER = 20; - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public boolean hasRestoreRequest() { - return reqCase_ == 20; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public lgraph.Lgraph.RestoreRequest getRestoreRequest() { - if (reqCase_ == 20) { - return (lgraph.Lgraph.RestoreRequest) req_; - } - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public lgraph.Lgraph.RestoreRequestOrBuilder getRestoreRequestOrBuilder() { - if (reqCase_ == 20) { - return (lgraph.Lgraph.RestoreRequest) req_; - } - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - - public static final int SCHEMA_REQUEST_FIELD_NUMBER = 21; - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public boolean hasSchemaRequest() { - return reqCase_ == 21; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public lgraph.Lgraph.SchemaRequest getSchemaRequest() { - if (reqCase_ == 21) { - return (lgraph.Lgraph.SchemaRequest) req_; - } - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public lgraph.Lgraph.SchemaRequestOrBuilder getSchemaRequestOrBuilder() { - if (reqCase_ == 21) { - return (lgraph.Lgraph.SchemaRequest) req_; - } - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasToken()) { - memoizedIsInitialized = 0; - return false; - } - if (hasGraphApiRequest()) { - if (!getGraphApiRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCypherRequest()) { - if (!getCypherRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPluginRequest()) { - if (!getPluginRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasHaRequest()) { - if (!getHaRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasImportRequest()) { - if (!getImportRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasGraphRequest()) { - if (!getGraphRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAclRequest()) { - if (!getAclRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasRestoreRequest()) { - if (!getRestoreRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSchemaRequest()) { - if (!getSchemaRequest().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, clientVersion_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, isWriteOp_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_); - } - if (reqCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.GraphApiRequest) req_); - } - if (reqCase_ == 12) { - output.writeMessage(12, (lgraph.Lgraph.CypherRequest) req_); - } - if (reqCase_ == 13) { - output.writeMessage(13, (lgraph.Lgraph.PluginRequest) req_); - } - if (reqCase_ == 14) { - output.writeMessage(14, (lgraph.Lgraph.HARequest) req_); - } - if (reqCase_ == 15) { - output.writeMessage(15, (lgraph.Lgraph.ImportRequest) req_); - } - if (reqCase_ == 17) { - output.writeMessage(17, (lgraph.Lgraph.GraphRequest) req_); - } - if (reqCase_ == 18) { - output.writeMessage(18, (lgraph.Lgraph.AclRequest) req_); - } - if (reqCase_ == 19) { - output.writeMessage(19, (lgraph.Lgraph.ConfigRequest) req_); - } - if (reqCase_ == 20) { - output.writeMessage(20, (lgraph.Lgraph.RestoreRequest) req_); - } - if (reqCase_ == 21) { - output.writeMessage(21, (lgraph.Lgraph.SchemaRequest) req_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, clientVersion_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isWriteOp_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_); - } - if (reqCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.GraphApiRequest) req_); - } - if (reqCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (lgraph.Lgraph.CypherRequest) req_); - } - if (reqCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (lgraph.Lgraph.PluginRequest) req_); - } - if (reqCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (lgraph.Lgraph.HARequest) req_); - } - if (reqCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (lgraph.Lgraph.ImportRequest) req_); - } - if (reqCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (lgraph.Lgraph.GraphRequest) req_); - } - if (reqCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (lgraph.Lgraph.AclRequest) req_); - } - if (reqCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (lgraph.Lgraph.ConfigRequest) req_); - } - if (reqCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (lgraph.Lgraph.RestoreRequest) req_); - } - if (reqCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (lgraph.Lgraph.SchemaRequest) req_); - } - 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 lgraph.Lgraph.LGraphRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.LGraphRequest other = (lgraph.Lgraph.LGraphRequest) obj; - - boolean result = true; - result = result && (hasClientVersion() == other.hasClientVersion()); - if (hasClientVersion()) { - result = result && (getClientVersion() - == other.getClientVersion()); - } - result = result && (hasToken() == other.hasToken()); - if (hasToken()) { - result = result && getToken() - .equals(other.getToken()); - } - result = result && (hasIsWriteOp() == other.hasIsWriteOp()); - if (hasIsWriteOp()) { - result = result && (getIsWriteOp() - == other.getIsWriteOp()); - } - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && getReqCase().equals( - other.getReqCase()); - if (!result) return false; - switch (reqCase_) { - case 11: - result = result && getGraphApiRequest() - .equals(other.getGraphApiRequest()); - break; - case 12: - result = result && getCypherRequest() - .equals(other.getCypherRequest()); - break; - case 13: - result = result && getPluginRequest() - .equals(other.getPluginRequest()); - break; - case 14: - result = result && getHaRequest() - .equals(other.getHaRequest()); - break; - case 15: - result = result && getImportRequest() - .equals(other.getImportRequest()); - break; - case 17: - result = result && getGraphRequest() - .equals(other.getGraphRequest()); - break; - case 18: - result = result && getAclRequest() - .equals(other.getAclRequest()); - break; - case 19: - result = result && getConfigRequest() - .equals(other.getConfigRequest()); - break; - case 20: - result = result && getRestoreRequest() - .equals(other.getRestoreRequest()); - break; - case 21: - result = result && getSchemaRequest() - .equals(other.getSchemaRequest()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasClientVersion()) { - hash = (37 * hash) + CLIENT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getClientVersion()); - } - if (hasToken()) { - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - } - if (hasIsWriteOp()) { - hash = (37 * hash) + IS_WRITE_OP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsWriteOp()); - } - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - switch (reqCase_) { - case 11: - hash = (37 * hash) + GRAPH_API_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getGraphApiRequest().hashCode(); - break; - case 12: - hash = (37 * hash) + CYPHER_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getCypherRequest().hashCode(); - break; - case 13: - hash = (37 * hash) + PLUGIN_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getPluginRequest().hashCode(); - break; - case 14: - hash = (37 * hash) + HA_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getHaRequest().hashCode(); - break; - case 15: - hash = (37 * hash) + IMPORT_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getImportRequest().hashCode(); - break; - case 17: - hash = (37 * hash) + GRAPH_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getGraphRequest().hashCode(); - break; - case 18: - hash = (37 * hash) + ACL_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAclRequest().hashCode(); - break; - case 19: - hash = (37 * hash) + CONFIG_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getConfigRequest().hashCode(); - break; - case 20: - hash = (37 * hash) + RESTORE_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getRestoreRequest().hashCode(); - break; - case 21: - hash = (37 * hash) + SCHEMA_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getSchemaRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LGraphRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphRequest 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 lgraph.Lgraph.LGraphRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphRequest 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 lgraph.Lgraph.LGraphRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphRequest 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(lgraph.Lgraph.LGraphRequest 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; - } - /** - *
-     *--------------------------------
-     * envelope
-     *--------------------------------
-     * 
- * - * Protobuf type {@code lgraph.LGraphRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LGraphRequest) - lgraph.Lgraph.LGraphRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LGraphRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LGraphRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LGraphRequest.class, lgraph.Lgraph.LGraphRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.LGraphRequest.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(); - clientVersion_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - token_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - isWriteOp_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - reqCase_ = 0; - req_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LGraphRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LGraphRequest getDefaultInstanceForType() { - return lgraph.Lgraph.LGraphRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LGraphRequest build() { - lgraph.Lgraph.LGraphRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LGraphRequest buildPartial() { - lgraph.Lgraph.LGraphRequest result = new lgraph.Lgraph.LGraphRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.clientVersion_ = clientVersion_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.token_ = token_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.isWriteOp_ = isWriteOp_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.user_ = user_; - if (reqCase_ == 11) { - if (graphApiRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = graphApiRequestBuilder_.build(); - } - } - if (reqCase_ == 12) { - if (cypherRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = cypherRequestBuilder_.build(); - } - } - if (reqCase_ == 13) { - if (pluginRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = pluginRequestBuilder_.build(); - } - } - if (reqCase_ == 14) { - if (haRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = haRequestBuilder_.build(); - } - } - if (reqCase_ == 15) { - if (importRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = importRequestBuilder_.build(); - } - } - if (reqCase_ == 17) { - if (graphRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = graphRequestBuilder_.build(); - } - } - if (reqCase_ == 18) { - if (aclRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = aclRequestBuilder_.build(); - } - } - if (reqCase_ == 19) { - if (configRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = configRequestBuilder_.build(); - } - } - if (reqCase_ == 20) { - if (restoreRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = restoreRequestBuilder_.build(); - } - } - if (reqCase_ == 21) { - if (schemaRequestBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = schemaRequestBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.reqCase_ = reqCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LGraphRequest) { - return mergeFrom((lgraph.Lgraph.LGraphRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LGraphRequest other) { - if (other == lgraph.Lgraph.LGraphRequest.getDefaultInstance()) return this; - if (other.hasClientVersion()) { - setClientVersion(other.getClientVersion()); - } - if (other.hasToken()) { - bitField0_ |= 0x00000002; - token_ = other.token_; - onChanged(); - } - if (other.hasIsWriteOp()) { - setIsWriteOp(other.getIsWriteOp()); - } - if (other.hasUser()) { - bitField0_ |= 0x00000008; - user_ = other.user_; - onChanged(); - } - switch (other.getReqCase()) { - case GRAPH_API_REQUEST: { - mergeGraphApiRequest(other.getGraphApiRequest()); - break; - } - case CYPHER_REQUEST: { - mergeCypherRequest(other.getCypherRequest()); - break; - } - case PLUGIN_REQUEST: { - mergePluginRequest(other.getPluginRequest()); - break; - } - case HA_REQUEST: { - mergeHaRequest(other.getHaRequest()); - break; - } - case IMPORT_REQUEST: { - mergeImportRequest(other.getImportRequest()); - break; - } - case GRAPH_REQUEST: { - mergeGraphRequest(other.getGraphRequest()); - break; - } - case ACL_REQUEST: { - mergeAclRequest(other.getAclRequest()); - break; - } - case CONFIG_REQUEST: { - mergeConfigRequest(other.getConfigRequest()); - break; - } - case RESTORE_REQUEST: { - mergeRestoreRequest(other.getRestoreRequest()); - break; - } - case SCHEMA_REQUEST: { - mergeSchemaRequest(other.getSchemaRequest()); - break; - } - case REQ_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasToken()) { - return false; - } - if (hasGraphApiRequest()) { - if (!getGraphApiRequest().isInitialized()) { - return false; - } - } - if (hasCypherRequest()) { - if (!getCypherRequest().isInitialized()) { - return false; - } - } - if (hasPluginRequest()) { - if (!getPluginRequest().isInitialized()) { - return false; - } - } - if (hasHaRequest()) { - if (!getHaRequest().isInitialized()) { - return false; - } - } - if (hasImportRequest()) { - if (!getImportRequest().isInitialized()) { - return false; - } - } - if (hasGraphRequest()) { - if (!getGraphRequest().isInitialized()) { - return false; - } - } - if (hasAclRequest()) { - if (!getAclRequest().isInitialized()) { - return false; - } - } - if (hasRestoreRequest()) { - if (!getRestoreRequest().isInitialized()) { - return false; - } - } - if (hasSchemaRequest()) { - if (!getSchemaRequest().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LGraphRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LGraphRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int reqCase_ = 0; - private java.lang.Object req_; - public ReqCase - getReqCase() { - return ReqCase.forNumber( - reqCase_); - } - - public Builder clearReq() { - reqCase_ = 0; - req_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private long clientVersion_ ; - /** - * optional int64 client_version = 1; - */ - public boolean hasClientVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 client_version = 1; - */ - public long getClientVersion() { - return clientVersion_; - } - /** - * optional int64 client_version = 1; - */ - public Builder setClientVersion(long value) { - bitField0_ |= 0x00000001; - clientVersion_ = value; - onChanged(); - return this; - } - /** - * optional int64 client_version = 1; - */ - public Builder clearClientVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - clientVersion_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - * required string token = 2; - */ - public boolean hasToken() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - token_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - token_ = value; - onChanged(); - return this; - } - /** - * required string token = 2; - */ - public Builder clearToken() { - bitField0_ = (bitField0_ & ~0x00000002); - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * required string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - token_ = value; - onChanged(); - return this; - } - - private boolean isWriteOp_ ; - /** - * optional bool is_write_op = 3; - */ - public boolean hasIsWriteOp() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool is_write_op = 3; - */ - public boolean getIsWriteOp() { - return isWriteOp_; - } - /** - * optional bool is_write_op = 3; - */ - public Builder setIsWriteOp(boolean value) { - bitField0_ |= 0x00000004; - isWriteOp_ = value; - onChanged(); - return this; - } - /** - * optional bool is_write_op = 3; - */ - public Builder clearIsWriteOp() { - bitField0_ = (bitField0_ & ~0x00000004); - isWriteOp_ = false; - onChanged(); - return this; - } - - private java.lang.Object user_ = ""; - /** - * optional string user = 4; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string user = 4; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string user = 4; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string user = 4; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - user_ = value; - onChanged(); - return this; - } - /** - * optional string user = 4; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000008); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * optional string user = 4; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - user_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiRequest, lgraph.Lgraph.GraphApiRequest.Builder, lgraph.Lgraph.GraphApiRequestOrBuilder> graphApiRequestBuilder_; - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public boolean hasGraphApiRequest() { - return reqCase_ == 11; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public lgraph.Lgraph.GraphApiRequest getGraphApiRequest() { - if (graphApiRequestBuilder_ == null) { - if (reqCase_ == 11) { - return (lgraph.Lgraph.GraphApiRequest) req_; - } - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } else { - if (reqCase_ == 11) { - return graphApiRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public Builder setGraphApiRequest(lgraph.Lgraph.GraphApiRequest value) { - if (graphApiRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - graphApiRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public Builder setGraphApiRequest( - lgraph.Lgraph.GraphApiRequest.Builder builderForValue) { - if (graphApiRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - graphApiRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public Builder mergeGraphApiRequest(lgraph.Lgraph.GraphApiRequest value) { - if (graphApiRequestBuilder_ == null) { - if (reqCase_ == 11 && - req_ != lgraph.Lgraph.GraphApiRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.GraphApiRequest.newBuilder((lgraph.Lgraph.GraphApiRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 11) { - graphApiRequestBuilder_.mergeFrom(value); - } - graphApiRequestBuilder_.setMessage(value); - } - reqCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public Builder clearGraphApiRequest() { - if (graphApiRequestBuilder_ == null) { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 11) { - reqCase_ = 0; - req_ = null; - } - graphApiRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public lgraph.Lgraph.GraphApiRequest.Builder getGraphApiRequestBuilder() { - return getGraphApiRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - public lgraph.Lgraph.GraphApiRequestOrBuilder getGraphApiRequestOrBuilder() { - if ((reqCase_ == 11) && (graphApiRequestBuilder_ != null)) { - return graphApiRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 11) { - return (lgraph.Lgraph.GraphApiRequest) req_; - } - return lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphApiRequest graph_api_request = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiRequest, lgraph.Lgraph.GraphApiRequest.Builder, lgraph.Lgraph.GraphApiRequestOrBuilder> - getGraphApiRequestFieldBuilder() { - if (graphApiRequestBuilder_ == null) { - if (!(reqCase_ == 11)) { - req_ = lgraph.Lgraph.GraphApiRequest.getDefaultInstance(); - } - graphApiRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiRequest, lgraph.Lgraph.GraphApiRequest.Builder, lgraph.Lgraph.GraphApiRequestOrBuilder>( - (lgraph.Lgraph.GraphApiRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 11; - onChanged();; - return graphApiRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherRequest, lgraph.Lgraph.CypherRequest.Builder, lgraph.Lgraph.CypherRequestOrBuilder> cypherRequestBuilder_; - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public boolean hasCypherRequest() { - return reqCase_ == 12; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public lgraph.Lgraph.CypherRequest getCypherRequest() { - if (cypherRequestBuilder_ == null) { - if (reqCase_ == 12) { - return (lgraph.Lgraph.CypherRequest) req_; - } - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } else { - if (reqCase_ == 12) { - return cypherRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public Builder setCypherRequest(lgraph.Lgraph.CypherRequest value) { - if (cypherRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - cypherRequestBuilder_.setMessage(value); - } - reqCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public Builder setCypherRequest( - lgraph.Lgraph.CypherRequest.Builder builderForValue) { - if (cypherRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - cypherRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public Builder mergeCypherRequest(lgraph.Lgraph.CypherRequest value) { - if (cypherRequestBuilder_ == null) { - if (reqCase_ == 12 && - req_ != lgraph.Lgraph.CypherRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.CypherRequest.newBuilder((lgraph.Lgraph.CypherRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 12) { - cypherRequestBuilder_.mergeFrom(value); - } - cypherRequestBuilder_.setMessage(value); - } - reqCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public Builder clearCypherRequest() { - if (cypherRequestBuilder_ == null) { - if (reqCase_ == 12) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 12) { - reqCase_ = 0; - req_ = null; - } - cypherRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public lgraph.Lgraph.CypherRequest.Builder getCypherRequestBuilder() { - return getCypherRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - public lgraph.Lgraph.CypherRequestOrBuilder getCypherRequestOrBuilder() { - if ((reqCase_ == 12) && (cypherRequestBuilder_ != null)) { - return cypherRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 12) { - return (lgraph.Lgraph.CypherRequest) req_; - } - return lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherRequest cypher_request = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherRequest, lgraph.Lgraph.CypherRequest.Builder, lgraph.Lgraph.CypherRequestOrBuilder> - getCypherRequestFieldBuilder() { - if (cypherRequestBuilder_ == null) { - if (!(reqCase_ == 12)) { - req_ = lgraph.Lgraph.CypherRequest.getDefaultInstance(); - } - cypherRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherRequest, lgraph.Lgraph.CypherRequest.Builder, lgraph.Lgraph.CypherRequestOrBuilder>( - (lgraph.Lgraph.CypherRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 12; - onChanged();; - return cypherRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginRequest, lgraph.Lgraph.PluginRequest.Builder, lgraph.Lgraph.PluginRequestOrBuilder> pluginRequestBuilder_; - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public boolean hasPluginRequest() { - return reqCase_ == 13; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public lgraph.Lgraph.PluginRequest getPluginRequest() { - if (pluginRequestBuilder_ == null) { - if (reqCase_ == 13) { - return (lgraph.Lgraph.PluginRequest) req_; - } - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } else { - if (reqCase_ == 13) { - return pluginRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public Builder setPluginRequest(lgraph.Lgraph.PluginRequest value) { - if (pluginRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - pluginRequestBuilder_.setMessage(value); - } - reqCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public Builder setPluginRequest( - lgraph.Lgraph.PluginRequest.Builder builderForValue) { - if (pluginRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - pluginRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public Builder mergePluginRequest(lgraph.Lgraph.PluginRequest value) { - if (pluginRequestBuilder_ == null) { - if (reqCase_ == 13 && - req_ != lgraph.Lgraph.PluginRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.PluginRequest.newBuilder((lgraph.Lgraph.PluginRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 13) { - pluginRequestBuilder_.mergeFrom(value); - } - pluginRequestBuilder_.setMessage(value); - } - reqCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public Builder clearPluginRequest() { - if (pluginRequestBuilder_ == null) { - if (reqCase_ == 13) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 13) { - reqCase_ = 0; - req_ = null; - } - pluginRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public lgraph.Lgraph.PluginRequest.Builder getPluginRequestBuilder() { - return getPluginRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - public lgraph.Lgraph.PluginRequestOrBuilder getPluginRequestOrBuilder() { - if ((reqCase_ == 13) && (pluginRequestBuilder_ != null)) { - return pluginRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 13) { - return (lgraph.Lgraph.PluginRequest) req_; - } - return lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.PluginRequest plugin_request = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginRequest, lgraph.Lgraph.PluginRequest.Builder, lgraph.Lgraph.PluginRequestOrBuilder> - getPluginRequestFieldBuilder() { - if (pluginRequestBuilder_ == null) { - if (!(reqCase_ == 13)) { - req_ = lgraph.Lgraph.PluginRequest.getDefaultInstance(); - } - pluginRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginRequest, lgraph.Lgraph.PluginRequest.Builder, lgraph.Lgraph.PluginRequestOrBuilder>( - (lgraph.Lgraph.PluginRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 13; - onChanged();; - return pluginRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HARequest, lgraph.Lgraph.HARequest.Builder, lgraph.Lgraph.HARequestOrBuilder> haRequestBuilder_; - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public boolean hasHaRequest() { - return reqCase_ == 14; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public lgraph.Lgraph.HARequest getHaRequest() { - if (haRequestBuilder_ == null) { - if (reqCase_ == 14) { - return (lgraph.Lgraph.HARequest) req_; - } - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } else { - if (reqCase_ == 14) { - return haRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public Builder setHaRequest(lgraph.Lgraph.HARequest value) { - if (haRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - haRequestBuilder_.setMessage(value); - } - reqCase_ = 14; - return this; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public Builder setHaRequest( - lgraph.Lgraph.HARequest.Builder builderForValue) { - if (haRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - haRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 14; - return this; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public Builder mergeHaRequest(lgraph.Lgraph.HARequest value) { - if (haRequestBuilder_ == null) { - if (reqCase_ == 14 && - req_ != lgraph.Lgraph.HARequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.HARequest.newBuilder((lgraph.Lgraph.HARequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 14) { - haRequestBuilder_.mergeFrom(value); - } - haRequestBuilder_.setMessage(value); - } - reqCase_ = 14; - return this; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public Builder clearHaRequest() { - if (haRequestBuilder_ == null) { - if (reqCase_ == 14) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 14) { - reqCase_ = 0; - req_ = null; - } - haRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public lgraph.Lgraph.HARequest.Builder getHaRequestBuilder() { - return getHaRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - public lgraph.Lgraph.HARequestOrBuilder getHaRequestOrBuilder() { - if ((reqCase_ == 14) && (haRequestBuilder_ != null)) { - return haRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 14) { - return (lgraph.Lgraph.HARequest) req_; - } - return lgraph.Lgraph.HARequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.HARequest ha_request = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HARequest, lgraph.Lgraph.HARequest.Builder, lgraph.Lgraph.HARequestOrBuilder> - getHaRequestFieldBuilder() { - if (haRequestBuilder_ == null) { - if (!(reqCase_ == 14)) { - req_ = lgraph.Lgraph.HARequest.getDefaultInstance(); - } - haRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HARequest, lgraph.Lgraph.HARequest.Builder, lgraph.Lgraph.HARequestOrBuilder>( - (lgraph.Lgraph.HARequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 14; - onChanged();; - return haRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportRequest, lgraph.Lgraph.ImportRequest.Builder, lgraph.Lgraph.ImportRequestOrBuilder> importRequestBuilder_; - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public boolean hasImportRequest() { - return reqCase_ == 15; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public lgraph.Lgraph.ImportRequest getImportRequest() { - if (importRequestBuilder_ == null) { - if (reqCase_ == 15) { - return (lgraph.Lgraph.ImportRequest) req_; - } - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } else { - if (reqCase_ == 15) { - return importRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public Builder setImportRequest(lgraph.Lgraph.ImportRequest value) { - if (importRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - importRequestBuilder_.setMessage(value); - } - reqCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public Builder setImportRequest( - lgraph.Lgraph.ImportRequest.Builder builderForValue) { - if (importRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - importRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public Builder mergeImportRequest(lgraph.Lgraph.ImportRequest value) { - if (importRequestBuilder_ == null) { - if (reqCase_ == 15 && - req_ != lgraph.Lgraph.ImportRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ImportRequest.newBuilder((lgraph.Lgraph.ImportRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 15) { - importRequestBuilder_.mergeFrom(value); - } - importRequestBuilder_.setMessage(value); - } - reqCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public Builder clearImportRequest() { - if (importRequestBuilder_ == null) { - if (reqCase_ == 15) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 15) { - reqCase_ = 0; - req_ = null; - } - importRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public lgraph.Lgraph.ImportRequest.Builder getImportRequestBuilder() { - return getImportRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - public lgraph.Lgraph.ImportRequestOrBuilder getImportRequestOrBuilder() { - if ((reqCase_ == 15) && (importRequestBuilder_ != null)) { - return importRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 15) { - return (lgraph.Lgraph.ImportRequest) req_; - } - return lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ImportRequest import_request = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportRequest, lgraph.Lgraph.ImportRequest.Builder, lgraph.Lgraph.ImportRequestOrBuilder> - getImportRequestFieldBuilder() { - if (importRequestBuilder_ == null) { - if (!(reqCase_ == 15)) { - req_ = lgraph.Lgraph.ImportRequest.getDefaultInstance(); - } - importRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportRequest, lgraph.Lgraph.ImportRequest.Builder, lgraph.Lgraph.ImportRequestOrBuilder>( - (lgraph.Lgraph.ImportRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 15; - onChanged();; - return importRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphRequest, lgraph.Lgraph.GraphRequest.Builder, lgraph.Lgraph.GraphRequestOrBuilder> graphRequestBuilder_; - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public boolean hasGraphRequest() { - return reqCase_ == 17; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public lgraph.Lgraph.GraphRequest getGraphRequest() { - if (graphRequestBuilder_ == null) { - if (reqCase_ == 17) { - return (lgraph.Lgraph.GraphRequest) req_; - } - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } else { - if (reqCase_ == 17) { - return graphRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public Builder setGraphRequest(lgraph.Lgraph.GraphRequest value) { - if (graphRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - graphRequestBuilder_.setMessage(value); - } - reqCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public Builder setGraphRequest( - lgraph.Lgraph.GraphRequest.Builder builderForValue) { - if (graphRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - graphRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public Builder mergeGraphRequest(lgraph.Lgraph.GraphRequest value) { - if (graphRequestBuilder_ == null) { - if (reqCase_ == 17 && - req_ != lgraph.Lgraph.GraphRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.GraphRequest.newBuilder((lgraph.Lgraph.GraphRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 17) { - graphRequestBuilder_.mergeFrom(value); - } - graphRequestBuilder_.setMessage(value); - } - reqCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public Builder clearGraphRequest() { - if (graphRequestBuilder_ == null) { - if (reqCase_ == 17) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 17) { - reqCase_ = 0; - req_ = null; - } - graphRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public lgraph.Lgraph.GraphRequest.Builder getGraphRequestBuilder() { - return getGraphRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - public lgraph.Lgraph.GraphRequestOrBuilder getGraphRequestOrBuilder() { - if ((reqCase_ == 17) && (graphRequestBuilder_ != null)) { - return graphRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 17) { - return (lgraph.Lgraph.GraphRequest) req_; - } - return lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphRequest graph_request = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphRequest, lgraph.Lgraph.GraphRequest.Builder, lgraph.Lgraph.GraphRequestOrBuilder> - getGraphRequestFieldBuilder() { - if (graphRequestBuilder_ == null) { - if (!(reqCase_ == 17)) { - req_ = lgraph.Lgraph.GraphRequest.getDefaultInstance(); - } - graphRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphRequest, lgraph.Lgraph.GraphRequest.Builder, lgraph.Lgraph.GraphRequestOrBuilder>( - (lgraph.Lgraph.GraphRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 17; - onChanged();; - return graphRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclRequest, lgraph.Lgraph.AclRequest.Builder, lgraph.Lgraph.AclRequestOrBuilder> aclRequestBuilder_; - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public boolean hasAclRequest() { - return reqCase_ == 18; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public lgraph.Lgraph.AclRequest getAclRequest() { - if (aclRequestBuilder_ == null) { - if (reqCase_ == 18) { - return (lgraph.Lgraph.AclRequest) req_; - } - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } else { - if (reqCase_ == 18) { - return aclRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public Builder setAclRequest(lgraph.Lgraph.AclRequest value) { - if (aclRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - aclRequestBuilder_.setMessage(value); - } - reqCase_ = 18; - return this; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public Builder setAclRequest( - lgraph.Lgraph.AclRequest.Builder builderForValue) { - if (aclRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - aclRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 18; - return this; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public Builder mergeAclRequest(lgraph.Lgraph.AclRequest value) { - if (aclRequestBuilder_ == null) { - if (reqCase_ == 18 && - req_ != lgraph.Lgraph.AclRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.AclRequest.newBuilder((lgraph.Lgraph.AclRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 18) { - aclRequestBuilder_.mergeFrom(value); - } - aclRequestBuilder_.setMessage(value); - } - reqCase_ = 18; - return this; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public Builder clearAclRequest() { - if (aclRequestBuilder_ == null) { - if (reqCase_ == 18) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 18) { - reqCase_ = 0; - req_ = null; - } - aclRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public lgraph.Lgraph.AclRequest.Builder getAclRequestBuilder() { - return getAclRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - public lgraph.Lgraph.AclRequestOrBuilder getAclRequestOrBuilder() { - if ((reqCase_ == 18) && (aclRequestBuilder_ != null)) { - return aclRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 18) { - return (lgraph.Lgraph.AclRequest) req_; - } - return lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.AclRequest acl_request = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclRequest, lgraph.Lgraph.AclRequest.Builder, lgraph.Lgraph.AclRequestOrBuilder> - getAclRequestFieldBuilder() { - if (aclRequestBuilder_ == null) { - if (!(reqCase_ == 18)) { - req_ = lgraph.Lgraph.AclRequest.getDefaultInstance(); - } - aclRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclRequest, lgraph.Lgraph.AclRequest.Builder, lgraph.Lgraph.AclRequestOrBuilder>( - (lgraph.Lgraph.AclRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 18; - onChanged();; - return aclRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigRequest, lgraph.Lgraph.ConfigRequest.Builder, lgraph.Lgraph.ConfigRequestOrBuilder> configRequestBuilder_; - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public boolean hasConfigRequest() { - return reqCase_ == 19; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public lgraph.Lgraph.ConfigRequest getConfigRequest() { - if (configRequestBuilder_ == null) { - if (reqCase_ == 19) { - return (lgraph.Lgraph.ConfigRequest) req_; - } - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } else { - if (reqCase_ == 19) { - return configRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public Builder setConfigRequest(lgraph.Lgraph.ConfigRequest value) { - if (configRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - configRequestBuilder_.setMessage(value); - } - reqCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public Builder setConfigRequest( - lgraph.Lgraph.ConfigRequest.Builder builderForValue) { - if (configRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - configRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public Builder mergeConfigRequest(lgraph.Lgraph.ConfigRequest value) { - if (configRequestBuilder_ == null) { - if (reqCase_ == 19 && - req_ != lgraph.Lgraph.ConfigRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.ConfigRequest.newBuilder((lgraph.Lgraph.ConfigRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 19) { - configRequestBuilder_.mergeFrom(value); - } - configRequestBuilder_.setMessage(value); - } - reqCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public Builder clearConfigRequest() { - if (configRequestBuilder_ == null) { - if (reqCase_ == 19) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 19) { - reqCase_ = 0; - req_ = null; - } - configRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public lgraph.Lgraph.ConfigRequest.Builder getConfigRequestBuilder() { - return getConfigRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - public lgraph.Lgraph.ConfigRequestOrBuilder getConfigRequestOrBuilder() { - if ((reqCase_ == 19) && (configRequestBuilder_ != null)) { - return configRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 19) { - return (lgraph.Lgraph.ConfigRequest) req_; - } - return lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.ConfigRequest config_request = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigRequest, lgraph.Lgraph.ConfigRequest.Builder, lgraph.Lgraph.ConfigRequestOrBuilder> - getConfigRequestFieldBuilder() { - if (configRequestBuilder_ == null) { - if (!(reqCase_ == 19)) { - req_ = lgraph.Lgraph.ConfigRequest.getDefaultInstance(); - } - configRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigRequest, lgraph.Lgraph.ConfigRequest.Builder, lgraph.Lgraph.ConfigRequestOrBuilder>( - (lgraph.Lgraph.ConfigRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 19; - onChanged();; - return configRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreRequest, lgraph.Lgraph.RestoreRequest.Builder, lgraph.Lgraph.RestoreRequestOrBuilder> restoreRequestBuilder_; - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public boolean hasRestoreRequest() { - return reqCase_ == 20; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public lgraph.Lgraph.RestoreRequest getRestoreRequest() { - if (restoreRequestBuilder_ == null) { - if (reqCase_ == 20) { - return (lgraph.Lgraph.RestoreRequest) req_; - } - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } else { - if (reqCase_ == 20) { - return restoreRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public Builder setRestoreRequest(lgraph.Lgraph.RestoreRequest value) { - if (restoreRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - restoreRequestBuilder_.setMessage(value); - } - reqCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public Builder setRestoreRequest( - lgraph.Lgraph.RestoreRequest.Builder builderForValue) { - if (restoreRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - restoreRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public Builder mergeRestoreRequest(lgraph.Lgraph.RestoreRequest value) { - if (restoreRequestBuilder_ == null) { - if (reqCase_ == 20 && - req_ != lgraph.Lgraph.RestoreRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.RestoreRequest.newBuilder((lgraph.Lgraph.RestoreRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 20) { - restoreRequestBuilder_.mergeFrom(value); - } - restoreRequestBuilder_.setMessage(value); - } - reqCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public Builder clearRestoreRequest() { - if (restoreRequestBuilder_ == null) { - if (reqCase_ == 20) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 20) { - reqCase_ = 0; - req_ = null; - } - restoreRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public lgraph.Lgraph.RestoreRequest.Builder getRestoreRequestBuilder() { - return getRestoreRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - public lgraph.Lgraph.RestoreRequestOrBuilder getRestoreRequestOrBuilder() { - if ((reqCase_ == 20) && (restoreRequestBuilder_ != null)) { - return restoreRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 20) { - return (lgraph.Lgraph.RestoreRequest) req_; - } - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.RestoreRequest restore_request = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreRequest, lgraph.Lgraph.RestoreRequest.Builder, lgraph.Lgraph.RestoreRequestOrBuilder> - getRestoreRequestFieldBuilder() { - if (restoreRequestBuilder_ == null) { - if (!(reqCase_ == 20)) { - req_ = lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - restoreRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreRequest, lgraph.Lgraph.RestoreRequest.Builder, lgraph.Lgraph.RestoreRequestOrBuilder>( - (lgraph.Lgraph.RestoreRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 20; - onChanged();; - return restoreRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaRequest, lgraph.Lgraph.SchemaRequest.Builder, lgraph.Lgraph.SchemaRequestOrBuilder> schemaRequestBuilder_; - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public boolean hasSchemaRequest() { - return reqCase_ == 21; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public lgraph.Lgraph.SchemaRequest getSchemaRequest() { - if (schemaRequestBuilder_ == null) { - if (reqCase_ == 21) { - return (lgraph.Lgraph.SchemaRequest) req_; - } - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } else { - if (reqCase_ == 21) { - return schemaRequestBuilder_.getMessage(); - } - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public Builder setSchemaRequest(lgraph.Lgraph.SchemaRequest value) { - if (schemaRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - schemaRequestBuilder_.setMessage(value); - } - reqCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public Builder setSchemaRequest( - lgraph.Lgraph.SchemaRequest.Builder builderForValue) { - if (schemaRequestBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - schemaRequestBuilder_.setMessage(builderForValue.build()); - } - reqCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public Builder mergeSchemaRequest(lgraph.Lgraph.SchemaRequest value) { - if (schemaRequestBuilder_ == null) { - if (reqCase_ == 21 && - req_ != lgraph.Lgraph.SchemaRequest.getDefaultInstance()) { - req_ = lgraph.Lgraph.SchemaRequest.newBuilder((lgraph.Lgraph.SchemaRequest) req_) - .mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - if (reqCase_ == 21) { - schemaRequestBuilder_.mergeFrom(value); - } - schemaRequestBuilder_.setMessage(value); - } - reqCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public Builder clearSchemaRequest() { - if (schemaRequestBuilder_ == null) { - if (reqCase_ == 21) { - reqCase_ = 0; - req_ = null; - onChanged(); - } - } else { - if (reqCase_ == 21) { - reqCase_ = 0; - req_ = null; - } - schemaRequestBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public lgraph.Lgraph.SchemaRequest.Builder getSchemaRequestBuilder() { - return getSchemaRequestFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - public lgraph.Lgraph.SchemaRequestOrBuilder getSchemaRequestOrBuilder() { - if ((reqCase_ == 21) && (schemaRequestBuilder_ != null)) { - return schemaRequestBuilder_.getMessageOrBuilder(); - } else { - if (reqCase_ == 21) { - return (lgraph.Lgraph.SchemaRequest) req_; - } - return lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - } - /** - * optional .lgraph.SchemaRequest schema_request = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaRequest, lgraph.Lgraph.SchemaRequest.Builder, lgraph.Lgraph.SchemaRequestOrBuilder> - getSchemaRequestFieldBuilder() { - if (schemaRequestBuilder_ == null) { - if (!(reqCase_ == 21)) { - req_ = lgraph.Lgraph.SchemaRequest.getDefaultInstance(); - } - schemaRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaRequest, lgraph.Lgraph.SchemaRequest.Builder, lgraph.Lgraph.SchemaRequestOrBuilder>( - (lgraph.Lgraph.SchemaRequest) req_, - getParentForChildren(), - isClean()); - req_ = null; - } - reqCase_ = 21; - onChanged();; - return schemaRequestBuilder_; - } - @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:lgraph.LGraphRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.LGraphRequest) - private static final lgraph.Lgraph.LGraphRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LGraphRequest(); - } - - public static lgraph.Lgraph.LGraphRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LGraphRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LGraphRequest(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 lgraph.Lgraph.LGraphRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LGraphResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LGraphResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - boolean hasErrorCode(); - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - lgraph.Lgraph.LGraphResponse.ErrorCode getErrorCode(); - - /** - * optional string redirect = 2; - */ - boolean hasRedirect(); - /** - * optional string redirect = 2; - */ - java.lang.String getRedirect(); - /** - * optional string redirect = 2; - */ - com.google.protobuf.ByteString - getRedirectBytes(); - - /** - * optional string error = 3; - */ - boolean hasError(); - /** - * optional string error = 3; - */ - java.lang.String getError(); - /** - * optional string error = 3; - */ - com.google.protobuf.ByteString - getErrorBytes(); - - /** - * optional int64 server_version = 4; - */ - boolean hasServerVersion(); - /** - * optional int64 server_version = 4; - */ - long getServerVersion(); - - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - boolean hasGraphApiResponse(); - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - lgraph.Lgraph.GraphApiResponse getGraphApiResponse(); - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - lgraph.Lgraph.GraphApiResponseOrBuilder getGraphApiResponseOrBuilder(); - - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - boolean hasCypherResponse(); - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - lgraph.Lgraph.CypherResponse getCypherResponse(); - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - lgraph.Lgraph.CypherResponseOrBuilder getCypherResponseOrBuilder(); - - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - boolean hasPluginResponse(); - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - lgraph.Lgraph.PluginResponse getPluginResponse(); - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - lgraph.Lgraph.PluginResponseOrBuilder getPluginResponseOrBuilder(); - - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - boolean hasHaResponse(); - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - lgraph.Lgraph.HAResponse getHaResponse(); - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - lgraph.Lgraph.HAResponseOrBuilder getHaResponseOrBuilder(); - - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - boolean hasImportResponse(); - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - lgraph.Lgraph.ImportResponse getImportResponse(); - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - lgraph.Lgraph.ImportResponseOrBuilder getImportResponseOrBuilder(); - - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - boolean hasGraphResponse(); - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - lgraph.Lgraph.GraphResponse getGraphResponse(); - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - lgraph.Lgraph.GraphResponseOrBuilder getGraphResponseOrBuilder(); - - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - boolean hasAclResponse(); - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - lgraph.Lgraph.AclResponse getAclResponse(); - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - lgraph.Lgraph.AclResponseOrBuilder getAclResponseOrBuilder(); - - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - boolean hasConfigResponse(); - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - lgraph.Lgraph.ConfigResponse getConfigResponse(); - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - lgraph.Lgraph.ConfigResponseOrBuilder getConfigResponseOrBuilder(); - - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - boolean hasRestoreResponse(); - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - lgraph.Lgraph.RestoreResponse getRestoreResponse(); - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - lgraph.Lgraph.RestoreResponseOrBuilder getRestoreResponseOrBuilder(); - - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - boolean hasSchemaResponse(); - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - lgraph.Lgraph.SchemaResponse getSchemaResponse(); - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - lgraph.Lgraph.SchemaResponseOrBuilder getSchemaResponseOrBuilder(); - - public lgraph.Lgraph.LGraphResponse.RespCase getRespCase(); - } - /** - * Protobuf type {@code lgraph.LGraphResponse} - */ - public static final class LGraphResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LGraphResponse) - LGraphResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LGraphResponse.newBuilder() to construct. - private LGraphResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LGraphResponse() { - errorCode_ = 1; - redirect_ = ""; - error_ = ""; - serverVersion_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LGraphResponse( - 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 8: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.LGraphResponse.ErrorCode value = lgraph.Lgraph.LGraphResponse.ErrorCode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - errorCode_ = rawValue; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - redirect_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - error_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - serverVersion_ = input.readInt64(); - break; - } - case 90: { - lgraph.Lgraph.GraphApiResponse.Builder subBuilder = null; - if (respCase_ == 11) { - subBuilder = ((lgraph.Lgraph.GraphApiResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.GraphApiResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GraphApiResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 11; - break; - } - case 98: { - lgraph.Lgraph.CypherResponse.Builder subBuilder = null; - if (respCase_ == 12) { - subBuilder = ((lgraph.Lgraph.CypherResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.CypherResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.CypherResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 12; - break; - } - case 106: { - lgraph.Lgraph.PluginResponse.Builder subBuilder = null; - if (respCase_ == 13) { - subBuilder = ((lgraph.Lgraph.PluginResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.PluginResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.PluginResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 13; - break; - } - case 114: { - lgraph.Lgraph.HAResponse.Builder subBuilder = null; - if (respCase_ == 14) { - subBuilder = ((lgraph.Lgraph.HAResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.HAResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.HAResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 14; - break; - } - case 122: { - lgraph.Lgraph.ImportResponse.Builder subBuilder = null; - if (respCase_ == 15) { - subBuilder = ((lgraph.Lgraph.ImportResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ImportResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ImportResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 15; - break; - } - case 138: { - lgraph.Lgraph.GraphResponse.Builder subBuilder = null; - if (respCase_ == 17) { - subBuilder = ((lgraph.Lgraph.GraphResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.GraphResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.GraphResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 17; - break; - } - case 146: { - lgraph.Lgraph.AclResponse.Builder subBuilder = null; - if (respCase_ == 18) { - subBuilder = ((lgraph.Lgraph.AclResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.AclResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.AclResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 18; - break; - } - case 154: { - lgraph.Lgraph.ConfigResponse.Builder subBuilder = null; - if (respCase_ == 19) { - subBuilder = ((lgraph.Lgraph.ConfigResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.ConfigResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.ConfigResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 19; - break; - } - case 162: { - lgraph.Lgraph.RestoreResponse.Builder subBuilder = null; - if (respCase_ == 20) { - subBuilder = ((lgraph.Lgraph.RestoreResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.RestoreResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.RestoreResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 20; - break; - } - case 170: { - lgraph.Lgraph.SchemaResponse.Builder subBuilder = null; - if (respCase_ == 21) { - subBuilder = ((lgraph.Lgraph.SchemaResponse) resp_).toBuilder(); - } - resp_ = - input.readMessage(lgraph.Lgraph.SchemaResponse.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((lgraph.Lgraph.SchemaResponse) resp_); - resp_ = subBuilder.buildPartial(); - } - respCase_ = 21; - 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 lgraph.Lgraph.internal_static_lgraph_LGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LGraphResponse.class, lgraph.Lgraph.LGraphResponse.Builder.class); - } - - /** - * Protobuf enum {@code lgraph.LGraphResponse.ErrorCode} - */ - public enum ErrorCode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SUCCESS = 1; - */ - SUCCESS(1), - /** - * BAD_REQUEST = 2; - */ - BAD_REQUEST(2), - /** - * AUTH_ERROR = 3; - */ - AUTH_ERROR(3), - /** - * KILLED = 4; - */ - KILLED(4), - /** - * REDIRECT = 5; - */ - REDIRECT(5), - /** - * FAILED = 6; - */ - FAILED(6), - /** - * EXCEPTION = 255; - */ - EXCEPTION(255), - ; - - /** - * SUCCESS = 1; - */ - public static final int SUCCESS_VALUE = 1; - /** - * BAD_REQUEST = 2; - */ - public static final int BAD_REQUEST_VALUE = 2; - /** - * AUTH_ERROR = 3; - */ - public static final int AUTH_ERROR_VALUE = 3; - /** - * KILLED = 4; - */ - public static final int KILLED_VALUE = 4; - /** - * REDIRECT = 5; - */ - public static final int REDIRECT_VALUE = 5; - /** - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - /** - * EXCEPTION = 255; - */ - public static final int EXCEPTION_VALUE = 255; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ErrorCode valueOf(int value) { - return forNumber(value); - } - - public static ErrorCode forNumber(int value) { - switch (value) { - case 1: return SUCCESS; - case 2: return BAD_REQUEST; - case 3: return AUTH_ERROR; - case 4: return KILLED; - case 5: return REDIRECT; - case 6: return FAILED; - case 255: return EXCEPTION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ErrorCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorCode findValueByNumber(int number) { - return ErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return lgraph.Lgraph.LGraphResponse.getDescriptor().getEnumTypes().get(0); - } - - private static final ErrorCode[] VALUES = values(); - - public static ErrorCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ErrorCode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:lgraph.LGraphResponse.ErrorCode) - } - - private int bitField0_; - private int respCase_ = 0; - private java.lang.Object resp_; - public enum RespCase - implements com.google.protobuf.Internal.EnumLite { - GRAPH_API_RESPONSE(11), - CYPHER_RESPONSE(12), - PLUGIN_RESPONSE(13), - HA_RESPONSE(14), - IMPORT_RESPONSE(15), - GRAPH_RESPONSE(17), - ACL_RESPONSE(18), - CONFIG_RESPONSE(19), - RESTORE_RESPONSE(20), - SCHEMA_RESPONSE(21), - RESP_NOT_SET(0); - private final int value; - private RespCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RespCase valueOf(int value) { - return forNumber(value); - } - - public static RespCase forNumber(int value) { - switch (value) { - case 11: return GRAPH_API_RESPONSE; - case 12: return CYPHER_RESPONSE; - case 13: return PLUGIN_RESPONSE; - case 14: return HA_RESPONSE; - case 15: return IMPORT_RESPONSE; - case 17: return GRAPH_RESPONSE; - case 18: return ACL_RESPONSE; - case 19: return CONFIG_RESPONSE; - case 20: return RESTORE_RESPONSE; - case 21: return SCHEMA_RESPONSE; - case 0: return RESP_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public static final int ERROR_CODE_FIELD_NUMBER = 1; - private int errorCode_; - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public boolean hasErrorCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public lgraph.Lgraph.LGraphResponse.ErrorCode getErrorCode() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LGraphResponse.ErrorCode result = lgraph.Lgraph.LGraphResponse.ErrorCode.valueOf(errorCode_); - return result == null ? lgraph.Lgraph.LGraphResponse.ErrorCode.SUCCESS : result; - } - - public static final int REDIRECT_FIELD_NUMBER = 2; - private volatile java.lang.Object redirect_; - /** - * optional string redirect = 2; - */ - public boolean hasRedirect() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string redirect = 2; - */ - public java.lang.String getRedirect() { - java.lang.Object ref = redirect_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - redirect_ = s; - } - return s; - } - } - /** - * optional string redirect = 2; - */ - public com.google.protobuf.ByteString - getRedirectBytes() { - java.lang.Object ref = redirect_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirect_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 3; - private volatile java.lang.Object error_; - /** - * optional string error = 3; - */ - public boolean hasError() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string error = 3; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - error_ = s; - } - return s; - } - } - /** - * optional string error = 3; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVER_VERSION_FIELD_NUMBER = 4; - private long serverVersion_; - /** - * optional int64 server_version = 4; - */ - public boolean hasServerVersion() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 server_version = 4; - */ - public long getServerVersion() { - return serverVersion_; - } - - public static final int GRAPH_API_RESPONSE_FIELD_NUMBER = 11; - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public boolean hasGraphApiResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public lgraph.Lgraph.GraphApiResponse getGraphApiResponse() { - if (respCase_ == 11) { - return (lgraph.Lgraph.GraphApiResponse) resp_; - } - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public lgraph.Lgraph.GraphApiResponseOrBuilder getGraphApiResponseOrBuilder() { - if (respCase_ == 11) { - return (lgraph.Lgraph.GraphApiResponse) resp_; - } - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - - public static final int CYPHER_RESPONSE_FIELD_NUMBER = 12; - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public boolean hasCypherResponse() { - return respCase_ == 12; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public lgraph.Lgraph.CypherResponse getCypherResponse() { - if (respCase_ == 12) { - return (lgraph.Lgraph.CypherResponse) resp_; - } - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public lgraph.Lgraph.CypherResponseOrBuilder getCypherResponseOrBuilder() { - if (respCase_ == 12) { - return (lgraph.Lgraph.CypherResponse) resp_; - } - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - - public static final int PLUGIN_RESPONSE_FIELD_NUMBER = 13; - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public boolean hasPluginResponse() { - return respCase_ == 13; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public lgraph.Lgraph.PluginResponse getPluginResponse() { - if (respCase_ == 13) { - return (lgraph.Lgraph.PluginResponse) resp_; - } - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public lgraph.Lgraph.PluginResponseOrBuilder getPluginResponseOrBuilder() { - if (respCase_ == 13) { - return (lgraph.Lgraph.PluginResponse) resp_; - } - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - - public static final int HA_RESPONSE_FIELD_NUMBER = 14; - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public boolean hasHaResponse() { - return respCase_ == 14; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public lgraph.Lgraph.HAResponse getHaResponse() { - if (respCase_ == 14) { - return (lgraph.Lgraph.HAResponse) resp_; - } - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public lgraph.Lgraph.HAResponseOrBuilder getHaResponseOrBuilder() { - if (respCase_ == 14) { - return (lgraph.Lgraph.HAResponse) resp_; - } - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - - public static final int IMPORT_RESPONSE_FIELD_NUMBER = 15; - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public boolean hasImportResponse() { - return respCase_ == 15; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public lgraph.Lgraph.ImportResponse getImportResponse() { - if (respCase_ == 15) { - return (lgraph.Lgraph.ImportResponse) resp_; - } - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public lgraph.Lgraph.ImportResponseOrBuilder getImportResponseOrBuilder() { - if (respCase_ == 15) { - return (lgraph.Lgraph.ImportResponse) resp_; - } - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - - public static final int GRAPH_RESPONSE_FIELD_NUMBER = 17; - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public boolean hasGraphResponse() { - return respCase_ == 17; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public lgraph.Lgraph.GraphResponse getGraphResponse() { - if (respCase_ == 17) { - return (lgraph.Lgraph.GraphResponse) resp_; - } - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public lgraph.Lgraph.GraphResponseOrBuilder getGraphResponseOrBuilder() { - if (respCase_ == 17) { - return (lgraph.Lgraph.GraphResponse) resp_; - } - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - - public static final int ACL_RESPONSE_FIELD_NUMBER = 18; - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public boolean hasAclResponse() { - return respCase_ == 18; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public lgraph.Lgraph.AclResponse getAclResponse() { - if (respCase_ == 18) { - return (lgraph.Lgraph.AclResponse) resp_; - } - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public lgraph.Lgraph.AclResponseOrBuilder getAclResponseOrBuilder() { - if (respCase_ == 18) { - return (lgraph.Lgraph.AclResponse) resp_; - } - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - - public static final int CONFIG_RESPONSE_FIELD_NUMBER = 19; - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public boolean hasConfigResponse() { - return respCase_ == 19; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public lgraph.Lgraph.ConfigResponse getConfigResponse() { - if (respCase_ == 19) { - return (lgraph.Lgraph.ConfigResponse) resp_; - } - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public lgraph.Lgraph.ConfigResponseOrBuilder getConfigResponseOrBuilder() { - if (respCase_ == 19) { - return (lgraph.Lgraph.ConfigResponse) resp_; - } - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - - public static final int RESTORE_RESPONSE_FIELD_NUMBER = 20; - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public boolean hasRestoreResponse() { - return respCase_ == 20; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public lgraph.Lgraph.RestoreResponse getRestoreResponse() { - if (respCase_ == 20) { - return (lgraph.Lgraph.RestoreResponse) resp_; - } - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public lgraph.Lgraph.RestoreResponseOrBuilder getRestoreResponseOrBuilder() { - if (respCase_ == 20) { - return (lgraph.Lgraph.RestoreResponse) resp_; - } - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - - public static final int SCHEMA_RESPONSE_FIELD_NUMBER = 21; - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public boolean hasSchemaResponse() { - return respCase_ == 21; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public lgraph.Lgraph.SchemaResponse getSchemaResponse() { - if (respCase_ == 21) { - return (lgraph.Lgraph.SchemaResponse) resp_; - } - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public lgraph.Lgraph.SchemaResponseOrBuilder getSchemaResponseOrBuilder() { - if (respCase_ == 21) { - return (lgraph.Lgraph.SchemaResponse) resp_; - } - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasErrorCode()) { - memoizedIsInitialized = 0; - return false; - } - if (hasGraphApiResponse()) { - if (!getGraphApiResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasCypherResponse()) { - if (!getCypherResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasPluginResponse()) { - if (!getPluginResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasHaResponse()) { - if (!getHaResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasGraphResponse()) { - if (!getGraphResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasAclResponse()) { - if (!getAclResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasRestoreResponse()) { - if (!getRestoreResponse().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, errorCode_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirect_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, error_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, serverVersion_); - } - if (respCase_ == 11) { - output.writeMessage(11, (lgraph.Lgraph.GraphApiResponse) resp_); - } - if (respCase_ == 12) { - output.writeMessage(12, (lgraph.Lgraph.CypherResponse) resp_); - } - if (respCase_ == 13) { - output.writeMessage(13, (lgraph.Lgraph.PluginResponse) resp_); - } - if (respCase_ == 14) { - output.writeMessage(14, (lgraph.Lgraph.HAResponse) resp_); - } - if (respCase_ == 15) { - output.writeMessage(15, (lgraph.Lgraph.ImportResponse) resp_); - } - if (respCase_ == 17) { - output.writeMessage(17, (lgraph.Lgraph.GraphResponse) resp_); - } - if (respCase_ == 18) { - output.writeMessage(18, (lgraph.Lgraph.AclResponse) resp_); - } - if (respCase_ == 19) { - output.writeMessage(19, (lgraph.Lgraph.ConfigResponse) resp_); - } - if (respCase_ == 20) { - output.writeMessage(20, (lgraph.Lgraph.RestoreResponse) resp_); - } - if (respCase_ == 21) { - output.writeMessage(21, (lgraph.Lgraph.SchemaResponse) resp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, errorCode_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirect_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, error_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, serverVersion_); - } - if (respCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (lgraph.Lgraph.GraphApiResponse) resp_); - } - if (respCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (lgraph.Lgraph.CypherResponse) resp_); - } - if (respCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (lgraph.Lgraph.PluginResponse) resp_); - } - if (respCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (lgraph.Lgraph.HAResponse) resp_); - } - if (respCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (lgraph.Lgraph.ImportResponse) resp_); - } - if (respCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (lgraph.Lgraph.GraphResponse) resp_); - } - if (respCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (lgraph.Lgraph.AclResponse) resp_); - } - if (respCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (lgraph.Lgraph.ConfigResponse) resp_); - } - if (respCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (lgraph.Lgraph.RestoreResponse) resp_); - } - if (respCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (lgraph.Lgraph.SchemaResponse) resp_); - } - 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 lgraph.Lgraph.LGraphResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.LGraphResponse other = (lgraph.Lgraph.LGraphResponse) obj; - - boolean result = true; - result = result && (hasErrorCode() == other.hasErrorCode()); - if (hasErrorCode()) { - result = result && errorCode_ == other.errorCode_; - } - result = result && (hasRedirect() == other.hasRedirect()); - if (hasRedirect()) { - result = result && getRedirect() - .equals(other.getRedirect()); - } - result = result && (hasError() == other.hasError()); - if (hasError()) { - result = result && getError() - .equals(other.getError()); - } - result = result && (hasServerVersion() == other.hasServerVersion()); - if (hasServerVersion()) { - result = result && (getServerVersion() - == other.getServerVersion()); - } - result = result && getRespCase().equals( - other.getRespCase()); - if (!result) return false; - switch (respCase_) { - case 11: - result = result && getGraphApiResponse() - .equals(other.getGraphApiResponse()); - break; - case 12: - result = result && getCypherResponse() - .equals(other.getCypherResponse()); - break; - case 13: - result = result && getPluginResponse() - .equals(other.getPluginResponse()); - break; - case 14: - result = result && getHaResponse() - .equals(other.getHaResponse()); - break; - case 15: - result = result && getImportResponse() - .equals(other.getImportResponse()); - break; - case 17: - result = result && getGraphResponse() - .equals(other.getGraphResponse()); - break; - case 18: - result = result && getAclResponse() - .equals(other.getAclResponse()); - break; - case 19: - result = result && getConfigResponse() - .equals(other.getConfigResponse()); - break; - case 20: - result = result && getRestoreResponse() - .equals(other.getRestoreResponse()); - break; - case 21: - result = result && getSchemaResponse() - .equals(other.getSchemaResponse()); - break; - case 0: - default: - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasErrorCode()) { - hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; - hash = (53 * hash) + errorCode_; - } - if (hasRedirect()) { - hash = (37 * hash) + REDIRECT_FIELD_NUMBER; - hash = (53 * hash) + getRedirect().hashCode(); - } - if (hasError()) { - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - } - if (hasServerVersion()) { - hash = (37 * hash) + SERVER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getServerVersion()); - } - switch (respCase_) { - case 11: - hash = (37 * hash) + GRAPH_API_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getGraphApiResponse().hashCode(); - break; - case 12: - hash = (37 * hash) + CYPHER_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getCypherResponse().hashCode(); - break; - case 13: - hash = (37 * hash) + PLUGIN_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getPluginResponse().hashCode(); - break; - case 14: - hash = (37 * hash) + HA_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getHaResponse().hashCode(); - break; - case 15: - hash = (37 * hash) + IMPORT_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getImportResponse().hashCode(); - break; - case 17: - hash = (37 * hash) + GRAPH_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getGraphResponse().hashCode(); - break; - case 18: - hash = (37 * hash) + ACL_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getAclResponse().hashCode(); - break; - case 19: - hash = (37 * hash) + CONFIG_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getConfigResponse().hashCode(); - break; - case 20: - hash = (37 * hash) + RESTORE_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getRestoreResponse().hashCode(); - break; - case 21: - hash = (37 * hash) + SCHEMA_RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + getSchemaResponse().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LGraphResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LGraphResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LGraphResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphResponse 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 lgraph.Lgraph.LGraphResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphResponse 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 lgraph.Lgraph.LGraphResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LGraphResponse 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(lgraph.Lgraph.LGraphResponse 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 lgraph.LGraphResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LGraphResponse) - lgraph.Lgraph.LGraphResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LGraphResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LGraphResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LGraphResponse.class, lgraph.Lgraph.LGraphResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.LGraphResponse.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(); - errorCode_ = 1; - bitField0_ = (bitField0_ & ~0x00000001); - redirect_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - error_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - serverVersion_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - respCase_ = 0; - resp_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LGraphResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LGraphResponse getDefaultInstanceForType() { - return lgraph.Lgraph.LGraphResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LGraphResponse build() { - lgraph.Lgraph.LGraphResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LGraphResponse buildPartial() { - lgraph.Lgraph.LGraphResponse result = new lgraph.Lgraph.LGraphResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.errorCode_ = errorCode_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.redirect_ = redirect_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.error_ = error_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.serverVersion_ = serverVersion_; - if (respCase_ == 11) { - if (graphApiResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = graphApiResponseBuilder_.build(); - } - } - if (respCase_ == 12) { - if (cypherResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = cypherResponseBuilder_.build(); - } - } - if (respCase_ == 13) { - if (pluginResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = pluginResponseBuilder_.build(); - } - } - if (respCase_ == 14) { - if (haResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = haResponseBuilder_.build(); - } - } - if (respCase_ == 15) { - if (importResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = importResponseBuilder_.build(); - } - } - if (respCase_ == 17) { - if (graphResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = graphResponseBuilder_.build(); - } - } - if (respCase_ == 18) { - if (aclResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = aclResponseBuilder_.build(); - } - } - if (respCase_ == 19) { - if (configResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = configResponseBuilder_.build(); - } - } - if (respCase_ == 20) { - if (restoreResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = restoreResponseBuilder_.build(); - } - } - if (respCase_ == 21) { - if (schemaResponseBuilder_ == null) { - result.resp_ = resp_; - } else { - result.resp_ = schemaResponseBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.respCase_ = respCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LGraphResponse) { - return mergeFrom((lgraph.Lgraph.LGraphResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LGraphResponse other) { - if (other == lgraph.Lgraph.LGraphResponse.getDefaultInstance()) return this; - if (other.hasErrorCode()) { - setErrorCode(other.getErrorCode()); - } - if (other.hasRedirect()) { - bitField0_ |= 0x00000002; - redirect_ = other.redirect_; - onChanged(); - } - if (other.hasError()) { - bitField0_ |= 0x00000004; - error_ = other.error_; - onChanged(); - } - if (other.hasServerVersion()) { - setServerVersion(other.getServerVersion()); - } - switch (other.getRespCase()) { - case GRAPH_API_RESPONSE: { - mergeGraphApiResponse(other.getGraphApiResponse()); - break; - } - case CYPHER_RESPONSE: { - mergeCypherResponse(other.getCypherResponse()); - break; - } - case PLUGIN_RESPONSE: { - mergePluginResponse(other.getPluginResponse()); - break; - } - case HA_RESPONSE: { - mergeHaResponse(other.getHaResponse()); - break; - } - case IMPORT_RESPONSE: { - mergeImportResponse(other.getImportResponse()); - break; - } - case GRAPH_RESPONSE: { - mergeGraphResponse(other.getGraphResponse()); - break; - } - case ACL_RESPONSE: { - mergeAclResponse(other.getAclResponse()); - break; - } - case CONFIG_RESPONSE: { - mergeConfigResponse(other.getConfigResponse()); - break; - } - case RESTORE_RESPONSE: { - mergeRestoreResponse(other.getRestoreResponse()); - break; - } - case SCHEMA_RESPONSE: { - mergeSchemaResponse(other.getSchemaResponse()); - break; - } - case RESP_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasErrorCode()) { - return false; - } - if (hasGraphApiResponse()) { - if (!getGraphApiResponse().isInitialized()) { - return false; - } - } - if (hasCypherResponse()) { - if (!getCypherResponse().isInitialized()) { - return false; - } - } - if (hasPluginResponse()) { - if (!getPluginResponse().isInitialized()) { - return false; - } - } - if (hasHaResponse()) { - if (!getHaResponse().isInitialized()) { - return false; - } - } - if (hasGraphResponse()) { - if (!getGraphResponse().isInitialized()) { - return false; - } - } - if (hasAclResponse()) { - if (!getAclResponse().isInitialized()) { - return false; - } - } - if (hasRestoreResponse()) { - if (!getRestoreResponse().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LGraphResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LGraphResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int respCase_ = 0; - private java.lang.Object resp_; - public RespCase - getRespCase() { - return RespCase.forNumber( - respCase_); - } - - public Builder clearResp() { - respCase_ = 0; - resp_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int errorCode_ = 1; - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public boolean hasErrorCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public lgraph.Lgraph.LGraphResponse.ErrorCode getErrorCode() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LGraphResponse.ErrorCode result = lgraph.Lgraph.LGraphResponse.ErrorCode.valueOf(errorCode_); - return result == null ? lgraph.Lgraph.LGraphResponse.ErrorCode.SUCCESS : result; - } - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public Builder setErrorCode(lgraph.Lgraph.LGraphResponse.ErrorCode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - errorCode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .lgraph.LGraphResponse.ErrorCode error_code = 1; - */ - public Builder clearErrorCode() { - bitField0_ = (bitField0_ & ~0x00000001); - errorCode_ = 1; - onChanged(); - return this; - } - - private java.lang.Object redirect_ = ""; - /** - * optional string redirect = 2; - */ - public boolean hasRedirect() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string redirect = 2; - */ - public java.lang.String getRedirect() { - java.lang.Object ref = redirect_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - redirect_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string redirect = 2; - */ - public com.google.protobuf.ByteString - getRedirectBytes() { - java.lang.Object ref = redirect_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirect_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string redirect = 2; - */ - public Builder setRedirect( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - redirect_ = value; - onChanged(); - return this; - } - /** - * optional string redirect = 2; - */ - public Builder clearRedirect() { - bitField0_ = (bitField0_ & ~0x00000002); - redirect_ = getDefaultInstance().getRedirect(); - onChanged(); - return this; - } - /** - * optional string redirect = 2; - */ - public Builder setRedirectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - redirect_ = value; - onChanged(); - return this; - } - - private java.lang.Object error_ = ""; - /** - * optional string error = 3; - */ - public boolean hasError() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string error = 3; - */ - public java.lang.String getError() { - java.lang.Object ref = error_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - error_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string error = 3; - */ - public com.google.protobuf.ByteString - getErrorBytes() { - java.lang.Object ref = error_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - error_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string error = 3; - */ - public Builder setError( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - error_ = value; - onChanged(); - return this; - } - /** - * optional string error = 3; - */ - public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); - error_ = getDefaultInstance().getError(); - onChanged(); - return this; - } - /** - * optional string error = 3; - */ - public Builder setErrorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - error_ = value; - onChanged(); - return this; - } - - private long serverVersion_ ; - /** - * optional int64 server_version = 4; - */ - public boolean hasServerVersion() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 server_version = 4; - */ - public long getServerVersion() { - return serverVersion_; - } - /** - * optional int64 server_version = 4; - */ - public Builder setServerVersion(long value) { - bitField0_ |= 0x00000008; - serverVersion_ = value; - onChanged(); - return this; - } - /** - * optional int64 server_version = 4; - */ - public Builder clearServerVersion() { - bitField0_ = (bitField0_ & ~0x00000008); - serverVersion_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiResponse, lgraph.Lgraph.GraphApiResponse.Builder, lgraph.Lgraph.GraphApiResponseOrBuilder> graphApiResponseBuilder_; - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public boolean hasGraphApiResponse() { - return respCase_ == 11; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public lgraph.Lgraph.GraphApiResponse getGraphApiResponse() { - if (graphApiResponseBuilder_ == null) { - if (respCase_ == 11) { - return (lgraph.Lgraph.GraphApiResponse) resp_; - } - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } else { - if (respCase_ == 11) { - return graphApiResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public Builder setGraphApiResponse(lgraph.Lgraph.GraphApiResponse value) { - if (graphApiResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - graphApiResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public Builder setGraphApiResponse( - lgraph.Lgraph.GraphApiResponse.Builder builderForValue) { - if (graphApiResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - graphApiResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public Builder mergeGraphApiResponse(lgraph.Lgraph.GraphApiResponse value) { - if (graphApiResponseBuilder_ == null) { - if (respCase_ == 11 && - resp_ != lgraph.Lgraph.GraphApiResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.GraphApiResponse.newBuilder((lgraph.Lgraph.GraphApiResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 11) { - graphApiResponseBuilder_.mergeFrom(value); - } - graphApiResponseBuilder_.setMessage(value); - } - respCase_ = 11; - return this; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public Builder clearGraphApiResponse() { - if (graphApiResponseBuilder_ == null) { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 11) { - respCase_ = 0; - resp_ = null; - } - graphApiResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public lgraph.Lgraph.GraphApiResponse.Builder getGraphApiResponseBuilder() { - return getGraphApiResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - public lgraph.Lgraph.GraphApiResponseOrBuilder getGraphApiResponseOrBuilder() { - if ((respCase_ == 11) && (graphApiResponseBuilder_ != null)) { - return graphApiResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 11) { - return (lgraph.Lgraph.GraphApiResponse) resp_; - } - return lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphApiResponse graph_api_response = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiResponse, lgraph.Lgraph.GraphApiResponse.Builder, lgraph.Lgraph.GraphApiResponseOrBuilder> - getGraphApiResponseFieldBuilder() { - if (graphApiResponseBuilder_ == null) { - if (!(respCase_ == 11)) { - resp_ = lgraph.Lgraph.GraphApiResponse.getDefaultInstance(); - } - graphApiResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphApiResponse, lgraph.Lgraph.GraphApiResponse.Builder, lgraph.Lgraph.GraphApiResponseOrBuilder>( - (lgraph.Lgraph.GraphApiResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 11; - onChanged();; - return graphApiResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResponse, lgraph.Lgraph.CypherResponse.Builder, lgraph.Lgraph.CypherResponseOrBuilder> cypherResponseBuilder_; - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public boolean hasCypherResponse() { - return respCase_ == 12; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public lgraph.Lgraph.CypherResponse getCypherResponse() { - if (cypherResponseBuilder_ == null) { - if (respCase_ == 12) { - return (lgraph.Lgraph.CypherResponse) resp_; - } - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } else { - if (respCase_ == 12) { - return cypherResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public Builder setCypherResponse(lgraph.Lgraph.CypherResponse value) { - if (cypherResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - cypherResponseBuilder_.setMessage(value); - } - respCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public Builder setCypherResponse( - lgraph.Lgraph.CypherResponse.Builder builderForValue) { - if (cypherResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - cypherResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public Builder mergeCypherResponse(lgraph.Lgraph.CypherResponse value) { - if (cypherResponseBuilder_ == null) { - if (respCase_ == 12 && - resp_ != lgraph.Lgraph.CypherResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.CypherResponse.newBuilder((lgraph.Lgraph.CypherResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 12) { - cypherResponseBuilder_.mergeFrom(value); - } - cypherResponseBuilder_.setMessage(value); - } - respCase_ = 12; - return this; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public Builder clearCypherResponse() { - if (cypherResponseBuilder_ == null) { - if (respCase_ == 12) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 12) { - respCase_ = 0; - resp_ = null; - } - cypherResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public lgraph.Lgraph.CypherResponse.Builder getCypherResponseBuilder() { - return getCypherResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - public lgraph.Lgraph.CypherResponseOrBuilder getCypherResponseOrBuilder() { - if ((respCase_ == 12) && (cypherResponseBuilder_ != null)) { - return cypherResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 12) { - return (lgraph.Lgraph.CypherResponse) resp_; - } - return lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.CypherResponse cypher_response = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResponse, lgraph.Lgraph.CypherResponse.Builder, lgraph.Lgraph.CypherResponseOrBuilder> - getCypherResponseFieldBuilder() { - if (cypherResponseBuilder_ == null) { - if (!(respCase_ == 12)) { - resp_ = lgraph.Lgraph.CypherResponse.getDefaultInstance(); - } - cypherResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.CypherResponse, lgraph.Lgraph.CypherResponse.Builder, lgraph.Lgraph.CypherResponseOrBuilder>( - (lgraph.Lgraph.CypherResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 12; - onChanged();; - return cypherResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginResponse, lgraph.Lgraph.PluginResponse.Builder, lgraph.Lgraph.PluginResponseOrBuilder> pluginResponseBuilder_; - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public boolean hasPluginResponse() { - return respCase_ == 13; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public lgraph.Lgraph.PluginResponse getPluginResponse() { - if (pluginResponseBuilder_ == null) { - if (respCase_ == 13) { - return (lgraph.Lgraph.PluginResponse) resp_; - } - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } else { - if (respCase_ == 13) { - return pluginResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public Builder setPluginResponse(lgraph.Lgraph.PluginResponse value) { - if (pluginResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - pluginResponseBuilder_.setMessage(value); - } - respCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public Builder setPluginResponse( - lgraph.Lgraph.PluginResponse.Builder builderForValue) { - if (pluginResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - pluginResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public Builder mergePluginResponse(lgraph.Lgraph.PluginResponse value) { - if (pluginResponseBuilder_ == null) { - if (respCase_ == 13 && - resp_ != lgraph.Lgraph.PluginResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.PluginResponse.newBuilder((lgraph.Lgraph.PluginResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 13) { - pluginResponseBuilder_.mergeFrom(value); - } - pluginResponseBuilder_.setMessage(value); - } - respCase_ = 13; - return this; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public Builder clearPluginResponse() { - if (pluginResponseBuilder_ == null) { - if (respCase_ == 13) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 13) { - respCase_ = 0; - resp_ = null; - } - pluginResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public lgraph.Lgraph.PluginResponse.Builder getPluginResponseBuilder() { - return getPluginResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - public lgraph.Lgraph.PluginResponseOrBuilder getPluginResponseOrBuilder() { - if ((respCase_ == 13) && (pluginResponseBuilder_ != null)) { - return pluginResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 13) { - return (lgraph.Lgraph.PluginResponse) resp_; - } - return lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.PluginResponse plugin_response = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginResponse, lgraph.Lgraph.PluginResponse.Builder, lgraph.Lgraph.PluginResponseOrBuilder> - getPluginResponseFieldBuilder() { - if (pluginResponseBuilder_ == null) { - if (!(respCase_ == 13)) { - resp_ = lgraph.Lgraph.PluginResponse.getDefaultInstance(); - } - pluginResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.PluginResponse, lgraph.Lgraph.PluginResponse.Builder, lgraph.Lgraph.PluginResponseOrBuilder>( - (lgraph.Lgraph.PluginResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 13; - onChanged();; - return pluginResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HAResponse, lgraph.Lgraph.HAResponse.Builder, lgraph.Lgraph.HAResponseOrBuilder> haResponseBuilder_; - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public boolean hasHaResponse() { - return respCase_ == 14; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public lgraph.Lgraph.HAResponse getHaResponse() { - if (haResponseBuilder_ == null) { - if (respCase_ == 14) { - return (lgraph.Lgraph.HAResponse) resp_; - } - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } else { - if (respCase_ == 14) { - return haResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public Builder setHaResponse(lgraph.Lgraph.HAResponse value) { - if (haResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - haResponseBuilder_.setMessage(value); - } - respCase_ = 14; - return this; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public Builder setHaResponse( - lgraph.Lgraph.HAResponse.Builder builderForValue) { - if (haResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - haResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 14; - return this; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public Builder mergeHaResponse(lgraph.Lgraph.HAResponse value) { - if (haResponseBuilder_ == null) { - if (respCase_ == 14 && - resp_ != lgraph.Lgraph.HAResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.HAResponse.newBuilder((lgraph.Lgraph.HAResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 14) { - haResponseBuilder_.mergeFrom(value); - } - haResponseBuilder_.setMessage(value); - } - respCase_ = 14; - return this; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public Builder clearHaResponse() { - if (haResponseBuilder_ == null) { - if (respCase_ == 14) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 14) { - respCase_ = 0; - resp_ = null; - } - haResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public lgraph.Lgraph.HAResponse.Builder getHaResponseBuilder() { - return getHaResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - public lgraph.Lgraph.HAResponseOrBuilder getHaResponseOrBuilder() { - if ((respCase_ == 14) && (haResponseBuilder_ != null)) { - return haResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 14) { - return (lgraph.Lgraph.HAResponse) resp_; - } - return lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.HAResponse ha_response = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HAResponse, lgraph.Lgraph.HAResponse.Builder, lgraph.Lgraph.HAResponseOrBuilder> - getHaResponseFieldBuilder() { - if (haResponseBuilder_ == null) { - if (!(respCase_ == 14)) { - resp_ = lgraph.Lgraph.HAResponse.getDefaultInstance(); - } - haResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.HAResponse, lgraph.Lgraph.HAResponse.Builder, lgraph.Lgraph.HAResponseOrBuilder>( - (lgraph.Lgraph.HAResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 14; - onChanged();; - return haResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportResponse, lgraph.Lgraph.ImportResponse.Builder, lgraph.Lgraph.ImportResponseOrBuilder> importResponseBuilder_; - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public boolean hasImportResponse() { - return respCase_ == 15; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public lgraph.Lgraph.ImportResponse getImportResponse() { - if (importResponseBuilder_ == null) { - if (respCase_ == 15) { - return (lgraph.Lgraph.ImportResponse) resp_; - } - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } else { - if (respCase_ == 15) { - return importResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public Builder setImportResponse(lgraph.Lgraph.ImportResponse value) { - if (importResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - importResponseBuilder_.setMessage(value); - } - respCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public Builder setImportResponse( - lgraph.Lgraph.ImportResponse.Builder builderForValue) { - if (importResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - importResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public Builder mergeImportResponse(lgraph.Lgraph.ImportResponse value) { - if (importResponseBuilder_ == null) { - if (respCase_ == 15 && - resp_ != lgraph.Lgraph.ImportResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ImportResponse.newBuilder((lgraph.Lgraph.ImportResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 15) { - importResponseBuilder_.mergeFrom(value); - } - importResponseBuilder_.setMessage(value); - } - respCase_ = 15; - return this; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public Builder clearImportResponse() { - if (importResponseBuilder_ == null) { - if (respCase_ == 15) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 15) { - respCase_ = 0; - resp_ = null; - } - importResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public lgraph.Lgraph.ImportResponse.Builder getImportResponseBuilder() { - return getImportResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - public lgraph.Lgraph.ImportResponseOrBuilder getImportResponseOrBuilder() { - if ((respCase_ == 15) && (importResponseBuilder_ != null)) { - return importResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 15) { - return (lgraph.Lgraph.ImportResponse) resp_; - } - return lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ImportResponse import_response = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportResponse, lgraph.Lgraph.ImportResponse.Builder, lgraph.Lgraph.ImportResponseOrBuilder> - getImportResponseFieldBuilder() { - if (importResponseBuilder_ == null) { - if (!(respCase_ == 15)) { - resp_ = lgraph.Lgraph.ImportResponse.getDefaultInstance(); - } - importResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ImportResponse, lgraph.Lgraph.ImportResponse.Builder, lgraph.Lgraph.ImportResponseOrBuilder>( - (lgraph.Lgraph.ImportResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 15; - onChanged();; - return importResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphResponse, lgraph.Lgraph.GraphResponse.Builder, lgraph.Lgraph.GraphResponseOrBuilder> graphResponseBuilder_; - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public boolean hasGraphResponse() { - return respCase_ == 17; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public lgraph.Lgraph.GraphResponse getGraphResponse() { - if (graphResponseBuilder_ == null) { - if (respCase_ == 17) { - return (lgraph.Lgraph.GraphResponse) resp_; - } - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } else { - if (respCase_ == 17) { - return graphResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public Builder setGraphResponse(lgraph.Lgraph.GraphResponse value) { - if (graphResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - graphResponseBuilder_.setMessage(value); - } - respCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public Builder setGraphResponse( - lgraph.Lgraph.GraphResponse.Builder builderForValue) { - if (graphResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - graphResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public Builder mergeGraphResponse(lgraph.Lgraph.GraphResponse value) { - if (graphResponseBuilder_ == null) { - if (respCase_ == 17 && - resp_ != lgraph.Lgraph.GraphResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.GraphResponse.newBuilder((lgraph.Lgraph.GraphResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 17) { - graphResponseBuilder_.mergeFrom(value); - } - graphResponseBuilder_.setMessage(value); - } - respCase_ = 17; - return this; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public Builder clearGraphResponse() { - if (graphResponseBuilder_ == null) { - if (respCase_ == 17) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 17) { - respCase_ = 0; - resp_ = null; - } - graphResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public lgraph.Lgraph.GraphResponse.Builder getGraphResponseBuilder() { - return getGraphResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - public lgraph.Lgraph.GraphResponseOrBuilder getGraphResponseOrBuilder() { - if ((respCase_ == 17) && (graphResponseBuilder_ != null)) { - return graphResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 17) { - return (lgraph.Lgraph.GraphResponse) resp_; - } - return lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.GraphResponse graph_response = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphResponse, lgraph.Lgraph.GraphResponse.Builder, lgraph.Lgraph.GraphResponseOrBuilder> - getGraphResponseFieldBuilder() { - if (graphResponseBuilder_ == null) { - if (!(respCase_ == 17)) { - resp_ = lgraph.Lgraph.GraphResponse.getDefaultInstance(); - } - graphResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.GraphResponse, lgraph.Lgraph.GraphResponse.Builder, lgraph.Lgraph.GraphResponseOrBuilder>( - (lgraph.Lgraph.GraphResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 17; - onChanged();; - return graphResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclResponse, lgraph.Lgraph.AclResponse.Builder, lgraph.Lgraph.AclResponseOrBuilder> aclResponseBuilder_; - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public boolean hasAclResponse() { - return respCase_ == 18; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public lgraph.Lgraph.AclResponse getAclResponse() { - if (aclResponseBuilder_ == null) { - if (respCase_ == 18) { - return (lgraph.Lgraph.AclResponse) resp_; - } - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } else { - if (respCase_ == 18) { - return aclResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public Builder setAclResponse(lgraph.Lgraph.AclResponse value) { - if (aclResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - aclResponseBuilder_.setMessage(value); - } - respCase_ = 18; - return this; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public Builder setAclResponse( - lgraph.Lgraph.AclResponse.Builder builderForValue) { - if (aclResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - aclResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 18; - return this; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public Builder mergeAclResponse(lgraph.Lgraph.AclResponse value) { - if (aclResponseBuilder_ == null) { - if (respCase_ == 18 && - resp_ != lgraph.Lgraph.AclResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.AclResponse.newBuilder((lgraph.Lgraph.AclResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 18) { - aclResponseBuilder_.mergeFrom(value); - } - aclResponseBuilder_.setMessage(value); - } - respCase_ = 18; - return this; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public Builder clearAclResponse() { - if (aclResponseBuilder_ == null) { - if (respCase_ == 18) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 18) { - respCase_ = 0; - resp_ = null; - } - aclResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public lgraph.Lgraph.AclResponse.Builder getAclResponseBuilder() { - return getAclResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - public lgraph.Lgraph.AclResponseOrBuilder getAclResponseOrBuilder() { - if ((respCase_ == 18) && (aclResponseBuilder_ != null)) { - return aclResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 18) { - return (lgraph.Lgraph.AclResponse) resp_; - } - return lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.AclResponse acl_response = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclResponse, lgraph.Lgraph.AclResponse.Builder, lgraph.Lgraph.AclResponseOrBuilder> - getAclResponseFieldBuilder() { - if (aclResponseBuilder_ == null) { - if (!(respCase_ == 18)) { - resp_ = lgraph.Lgraph.AclResponse.getDefaultInstance(); - } - aclResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.AclResponse, lgraph.Lgraph.AclResponse.Builder, lgraph.Lgraph.AclResponseOrBuilder>( - (lgraph.Lgraph.AclResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 18; - onChanged();; - return aclResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigResponse, lgraph.Lgraph.ConfigResponse.Builder, lgraph.Lgraph.ConfigResponseOrBuilder> configResponseBuilder_; - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public boolean hasConfigResponse() { - return respCase_ == 19; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public lgraph.Lgraph.ConfigResponse getConfigResponse() { - if (configResponseBuilder_ == null) { - if (respCase_ == 19) { - return (lgraph.Lgraph.ConfigResponse) resp_; - } - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } else { - if (respCase_ == 19) { - return configResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public Builder setConfigResponse(lgraph.Lgraph.ConfigResponse value) { - if (configResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - configResponseBuilder_.setMessage(value); - } - respCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public Builder setConfigResponse( - lgraph.Lgraph.ConfigResponse.Builder builderForValue) { - if (configResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - configResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public Builder mergeConfigResponse(lgraph.Lgraph.ConfigResponse value) { - if (configResponseBuilder_ == null) { - if (respCase_ == 19 && - resp_ != lgraph.Lgraph.ConfigResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.ConfigResponse.newBuilder((lgraph.Lgraph.ConfigResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 19) { - configResponseBuilder_.mergeFrom(value); - } - configResponseBuilder_.setMessage(value); - } - respCase_ = 19; - return this; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public Builder clearConfigResponse() { - if (configResponseBuilder_ == null) { - if (respCase_ == 19) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 19) { - respCase_ = 0; - resp_ = null; - } - configResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public lgraph.Lgraph.ConfigResponse.Builder getConfigResponseBuilder() { - return getConfigResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - public lgraph.Lgraph.ConfigResponseOrBuilder getConfigResponseOrBuilder() { - if ((respCase_ == 19) && (configResponseBuilder_ != null)) { - return configResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 19) { - return (lgraph.Lgraph.ConfigResponse) resp_; - } - return lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.ConfigResponse config_response = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigResponse, lgraph.Lgraph.ConfigResponse.Builder, lgraph.Lgraph.ConfigResponseOrBuilder> - getConfigResponseFieldBuilder() { - if (configResponseBuilder_ == null) { - if (!(respCase_ == 19)) { - resp_ = lgraph.Lgraph.ConfigResponse.getDefaultInstance(); - } - configResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.ConfigResponse, lgraph.Lgraph.ConfigResponse.Builder, lgraph.Lgraph.ConfigResponseOrBuilder>( - (lgraph.Lgraph.ConfigResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 19; - onChanged();; - return configResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreResponse, lgraph.Lgraph.RestoreResponse.Builder, lgraph.Lgraph.RestoreResponseOrBuilder> restoreResponseBuilder_; - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public boolean hasRestoreResponse() { - return respCase_ == 20; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public lgraph.Lgraph.RestoreResponse getRestoreResponse() { - if (restoreResponseBuilder_ == null) { - if (respCase_ == 20) { - return (lgraph.Lgraph.RestoreResponse) resp_; - } - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } else { - if (respCase_ == 20) { - return restoreResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public Builder setRestoreResponse(lgraph.Lgraph.RestoreResponse value) { - if (restoreResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - restoreResponseBuilder_.setMessage(value); - } - respCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public Builder setRestoreResponse( - lgraph.Lgraph.RestoreResponse.Builder builderForValue) { - if (restoreResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - restoreResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public Builder mergeRestoreResponse(lgraph.Lgraph.RestoreResponse value) { - if (restoreResponseBuilder_ == null) { - if (respCase_ == 20 && - resp_ != lgraph.Lgraph.RestoreResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.RestoreResponse.newBuilder((lgraph.Lgraph.RestoreResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 20) { - restoreResponseBuilder_.mergeFrom(value); - } - restoreResponseBuilder_.setMessage(value); - } - respCase_ = 20; - return this; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public Builder clearRestoreResponse() { - if (restoreResponseBuilder_ == null) { - if (respCase_ == 20) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 20) { - respCase_ = 0; - resp_ = null; - } - restoreResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public lgraph.Lgraph.RestoreResponse.Builder getRestoreResponseBuilder() { - return getRestoreResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - public lgraph.Lgraph.RestoreResponseOrBuilder getRestoreResponseOrBuilder() { - if ((respCase_ == 20) && (restoreResponseBuilder_ != null)) { - return restoreResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 20) { - return (lgraph.Lgraph.RestoreResponse) resp_; - } - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.RestoreResponse restore_response = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreResponse, lgraph.Lgraph.RestoreResponse.Builder, lgraph.Lgraph.RestoreResponseOrBuilder> - getRestoreResponseFieldBuilder() { - if (restoreResponseBuilder_ == null) { - if (!(respCase_ == 20)) { - resp_ = lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - restoreResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.RestoreResponse, lgraph.Lgraph.RestoreResponse.Builder, lgraph.Lgraph.RestoreResponseOrBuilder>( - (lgraph.Lgraph.RestoreResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 20; - onChanged();; - return restoreResponseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaResponse, lgraph.Lgraph.SchemaResponse.Builder, lgraph.Lgraph.SchemaResponseOrBuilder> schemaResponseBuilder_; - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public boolean hasSchemaResponse() { - return respCase_ == 21; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public lgraph.Lgraph.SchemaResponse getSchemaResponse() { - if (schemaResponseBuilder_ == null) { - if (respCase_ == 21) { - return (lgraph.Lgraph.SchemaResponse) resp_; - } - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } else { - if (respCase_ == 21) { - return schemaResponseBuilder_.getMessage(); - } - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public Builder setSchemaResponse(lgraph.Lgraph.SchemaResponse value) { - if (schemaResponseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resp_ = value; - onChanged(); - } else { - schemaResponseBuilder_.setMessage(value); - } - respCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public Builder setSchemaResponse( - lgraph.Lgraph.SchemaResponse.Builder builderForValue) { - if (schemaResponseBuilder_ == null) { - resp_ = builderForValue.build(); - onChanged(); - } else { - schemaResponseBuilder_.setMessage(builderForValue.build()); - } - respCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public Builder mergeSchemaResponse(lgraph.Lgraph.SchemaResponse value) { - if (schemaResponseBuilder_ == null) { - if (respCase_ == 21 && - resp_ != lgraph.Lgraph.SchemaResponse.getDefaultInstance()) { - resp_ = lgraph.Lgraph.SchemaResponse.newBuilder((lgraph.Lgraph.SchemaResponse) resp_) - .mergeFrom(value).buildPartial(); - } else { - resp_ = value; - } - onChanged(); - } else { - if (respCase_ == 21) { - schemaResponseBuilder_.mergeFrom(value); - } - schemaResponseBuilder_.setMessage(value); - } - respCase_ = 21; - return this; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public Builder clearSchemaResponse() { - if (schemaResponseBuilder_ == null) { - if (respCase_ == 21) { - respCase_ = 0; - resp_ = null; - onChanged(); - } - } else { - if (respCase_ == 21) { - respCase_ = 0; - resp_ = null; - } - schemaResponseBuilder_.clear(); - } - return this; - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public lgraph.Lgraph.SchemaResponse.Builder getSchemaResponseBuilder() { - return getSchemaResponseFieldBuilder().getBuilder(); - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - public lgraph.Lgraph.SchemaResponseOrBuilder getSchemaResponseOrBuilder() { - if ((respCase_ == 21) && (schemaResponseBuilder_ != null)) { - return schemaResponseBuilder_.getMessageOrBuilder(); - } else { - if (respCase_ == 21) { - return (lgraph.Lgraph.SchemaResponse) resp_; - } - return lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - } - /** - * optional .lgraph.SchemaResponse schema_response = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaResponse, lgraph.Lgraph.SchemaResponse.Builder, lgraph.Lgraph.SchemaResponseOrBuilder> - getSchemaResponseFieldBuilder() { - if (schemaResponseBuilder_ == null) { - if (!(respCase_ == 21)) { - resp_ = lgraph.Lgraph.SchemaResponse.getDefaultInstance(); - } - schemaResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.SchemaResponse, lgraph.Lgraph.SchemaResponse.Builder, lgraph.Lgraph.SchemaResponseOrBuilder>( - (lgraph.Lgraph.SchemaResponse) resp_, - getParentForChildren(), - isClean()); - resp_ = null; - } - respCase_ = 21; - onChanged();; - return schemaResponseBuilder_; - } - @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:lgraph.LGraphResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.LGraphResponse) - private static final lgraph.Lgraph.LGraphResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LGraphResponse(); - } - - public static lgraph.Lgraph.LGraphResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LGraphResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LGraphResponse(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 lgraph.Lgraph.LGraphResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BackupLogEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.BackupLogEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 index = 1; - */ - boolean hasIndex(); - /** - * required int64 index = 1; - */ - long getIndex(); - - /** - * required int64 time = 2; - */ - boolean hasTime(); - /** - * required int64 time = 2; - */ - long getTime(); - - /** - * required .lgraph.LGraphRequest req = 3; - */ - boolean hasReq(); - /** - * required .lgraph.LGraphRequest req = 3; - */ - lgraph.Lgraph.LGraphRequest getReq(); - /** - * required .lgraph.LGraphRequest req = 3; - */ - lgraph.Lgraph.LGraphRequestOrBuilder getReqOrBuilder(); - } - /** - *
-   * For backup and restore
-   * 
- * - * Protobuf type {@code lgraph.BackupLogEntry} - */ - public static final class BackupLogEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.BackupLogEntry) - BackupLogEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use BackupLogEntry.newBuilder() to construct. - private BackupLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BackupLogEntry() { - index_ = 0L; - time_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BackupLogEntry( - 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 8: { - bitField0_ |= 0x00000001; - index_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - time_ = input.readInt64(); - break; - } - case 26: { - lgraph.Lgraph.LGraphRequest.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = req_.toBuilder(); - } - req_ = input.readMessage(lgraph.Lgraph.LGraphRequest.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(req_); - req_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - 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 lgraph.Lgraph.internal_static_lgraph_BackupLogEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_BackupLogEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.BackupLogEntry.class, lgraph.Lgraph.BackupLogEntry.Builder.class); - } - - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - - public static final int TIME_FIELD_NUMBER = 2; - private long time_; - /** - * required int64 time = 2; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 time = 2; - */ - public long getTime() { - return time_; - } - - public static final int REQ_FIELD_NUMBER = 3; - private lgraph.Lgraph.LGraphRequest req_; - /** - * required .lgraph.LGraphRequest req = 3; - */ - public boolean hasReq() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public lgraph.Lgraph.LGraphRequest getReq() { - return req_ == null ? lgraph.Lgraph.LGraphRequest.getDefaultInstance() : req_; - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public lgraph.Lgraph.LGraphRequestOrBuilder getReqOrBuilder() { - return req_ == null ? lgraph.Lgraph.LGraphRequest.getDefaultInstance() : req_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasIndex()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReq()) { - memoizedIsInitialized = 0; - return false; - } - if (!getReq().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, time_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, getReq()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, time_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getReq()); - } - 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 lgraph.Lgraph.BackupLogEntry)) { - return super.equals(obj); - } - lgraph.Lgraph.BackupLogEntry other = (lgraph.Lgraph.BackupLogEntry) obj; - - boolean result = true; - result = result && (hasIndex() == other.hasIndex()); - if (hasIndex()) { - result = result && (getIndex() - == other.getIndex()); - } - result = result && (hasTime() == other.hasTime()); - if (hasTime()) { - result = result && (getTime() - == other.getTime()); - } - result = result && (hasReq() == other.hasReq()); - if (hasReq()) { - result = result && getReq() - .equals(other.getReq()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIndex()) { - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - } - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - } - if (hasReq()) { - hash = (37 * hash) + REQ_FIELD_NUMBER; - hash = (53 * hash) + getReq().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.BackupLogEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.BackupLogEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.BackupLogEntry 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 lgraph.Lgraph.BackupLogEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.BackupLogEntry 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 lgraph.Lgraph.BackupLogEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.BackupLogEntry 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(lgraph.Lgraph.BackupLogEntry 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; - } - /** - *
-     * For backup and restore
-     * 
- * - * Protobuf type {@code lgraph.BackupLogEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.BackupLogEntry) - lgraph.Lgraph.BackupLogEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_BackupLogEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_BackupLogEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.BackupLogEntry.class, lgraph.Lgraph.BackupLogEntry.Builder.class); - } - - // Construct using lgraph.Lgraph.BackupLogEntry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReqFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - index_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - if (reqBuilder_ == null) { - req_ = null; - } else { - reqBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_BackupLogEntry_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.BackupLogEntry getDefaultInstanceForType() { - return lgraph.Lgraph.BackupLogEntry.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.BackupLogEntry build() { - lgraph.Lgraph.BackupLogEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.BackupLogEntry buildPartial() { - lgraph.Lgraph.BackupLogEntry result = new lgraph.Lgraph.BackupLogEntry(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.time_ = time_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (reqBuilder_ == null) { - result.req_ = req_; - } else { - result.req_ = reqBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.BackupLogEntry) { - return mergeFrom((lgraph.Lgraph.BackupLogEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.BackupLogEntry other) { - if (other == lgraph.Lgraph.BackupLogEntry.getDefaultInstance()) return this; - if (other.hasIndex()) { - setIndex(other.getIndex()); - } - if (other.hasTime()) { - setTime(other.getTime()); - } - if (other.hasReq()) { - mergeReq(other.getReq()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIndex()) { - return false; - } - if (!hasTime()) { - return false; - } - if (!hasReq()) { - return false; - } - if (!getReq().isInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.BackupLogEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.BackupLogEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long index_ ; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - * required int64 index = 1; - */ - public Builder setIndex(long value) { - bitField0_ |= 0x00000001; - index_ = value; - onChanged(); - return this; - } - /** - * required int64 index = 1; - */ - public Builder clearIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - index_ = 0L; - onChanged(); - return this; - } - - private long time_ ; - /** - * required int64 time = 2; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 time = 2; - */ - public long getTime() { - return time_; - } - /** - * required int64 time = 2; - */ - public Builder setTime(long value) { - bitField0_ |= 0x00000002; - time_ = value; - onChanged(); - return this; - } - /** - * required int64 time = 2; - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000002); - time_ = 0L; - onChanged(); - return this; - } - - private lgraph.Lgraph.LGraphRequest req_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LGraphRequest, lgraph.Lgraph.LGraphRequest.Builder, lgraph.Lgraph.LGraphRequestOrBuilder> reqBuilder_; - /** - * required .lgraph.LGraphRequest req = 3; - */ - public boolean hasReq() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public lgraph.Lgraph.LGraphRequest getReq() { - if (reqBuilder_ == null) { - return req_ == null ? lgraph.Lgraph.LGraphRequest.getDefaultInstance() : req_; - } else { - return reqBuilder_.getMessage(); - } - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public Builder setReq(lgraph.Lgraph.LGraphRequest value) { - if (reqBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - req_ = value; - onChanged(); - } else { - reqBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public Builder setReq( - lgraph.Lgraph.LGraphRequest.Builder builderForValue) { - if (reqBuilder_ == null) { - req_ = builderForValue.build(); - onChanged(); - } else { - reqBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public Builder mergeReq(lgraph.Lgraph.LGraphRequest value) { - if (reqBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - req_ != null && - req_ != lgraph.Lgraph.LGraphRequest.getDefaultInstance()) { - req_ = - lgraph.Lgraph.LGraphRequest.newBuilder(req_).mergeFrom(value).buildPartial(); - } else { - req_ = value; - } - onChanged(); - } else { - reqBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public Builder clearReq() { - if (reqBuilder_ == null) { - req_ = null; - onChanged(); - } else { - reqBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public lgraph.Lgraph.LGraphRequest.Builder getReqBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getReqFieldBuilder().getBuilder(); - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - public lgraph.Lgraph.LGraphRequestOrBuilder getReqOrBuilder() { - if (reqBuilder_ != null) { - return reqBuilder_.getMessageOrBuilder(); - } else { - return req_ == null ? - lgraph.Lgraph.LGraphRequest.getDefaultInstance() : req_; - } - } - /** - * required .lgraph.LGraphRequest req = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LGraphRequest, lgraph.Lgraph.LGraphRequest.Builder, lgraph.Lgraph.LGraphRequestOrBuilder> - getReqFieldBuilder() { - if (reqBuilder_ == null) { - reqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - lgraph.Lgraph.LGraphRequest, lgraph.Lgraph.LGraphRequest.Builder, lgraph.Lgraph.LGraphRequestOrBuilder>( - getReq(), - getParentForChildren(), - isClean()); - req_ = null; - } - return reqBuilder_; - } - @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:lgraph.BackupLogEntry) - } - - // @@protoc_insertion_point(class_scope:lgraph.BackupLogEntry) - private static final lgraph.Lgraph.BackupLogEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.BackupLogEntry(); - } - - public static lgraph.Lgraph.BackupLogEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackupLogEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BackupLogEntry(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 lgraph.Lgraph.BackupLogEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RestoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.RestoreRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - java.util.List - getLogsList(); - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - lgraph.Lgraph.BackupLogEntry getLogs(int index); - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - int getLogsCount(); - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - java.util.List - getLogsOrBuilderList(); - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - lgraph.Lgraph.BackupLogEntryOrBuilder getLogsOrBuilder( - int index); - } - /** - * Protobuf type {@code lgraph.RestoreRequest} - */ - public static final class RestoreRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.RestoreRequest) - RestoreRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RestoreRequest.newBuilder() to construct. - private RestoreRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RestoreRequest() { - logs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RestoreRequest( - 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: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - logs_.add( - input.readMessage(lgraph.Lgraph.BackupLogEntry.PARSER, extensionRegistry)); - 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) == 0x00000001)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_RestoreRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_RestoreRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.RestoreRequest.class, lgraph.Lgraph.RestoreRequest.Builder.class); - } - - public static final int LOGS_FIELD_NUMBER = 1; - private java.util.List logs_; - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntry getLogs(int index) { - return logs_.get(index); - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntryOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(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; - - for (int i = 0; i < getLogsCount(); i++) { - if (!getLogs(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(1, logs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, logs_.get(i)); - } - 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 lgraph.Lgraph.RestoreRequest)) { - return super.equals(obj); - } - lgraph.Lgraph.RestoreRequest other = (lgraph.Lgraph.RestoreRequest) obj; - - boolean result = true; - result = result && getLogsList() - .equals(other.getLogsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.RestoreRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreRequest 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 lgraph.Lgraph.RestoreRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreRequest 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 lgraph.Lgraph.RestoreRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreRequest 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(lgraph.Lgraph.RestoreRequest 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 lgraph.RestoreRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.RestoreRequest) - lgraph.Lgraph.RestoreRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_RestoreRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_RestoreRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.RestoreRequest.class, lgraph.Lgraph.RestoreRequest.Builder.class); - } - - // Construct using lgraph.Lgraph.RestoreRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - logsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_RestoreRequest_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.RestoreRequest getDefaultInstanceForType() { - return lgraph.Lgraph.RestoreRequest.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.RestoreRequest build() { - lgraph.Lgraph.RestoreRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.RestoreRequest buildPartial() { - lgraph.Lgraph.RestoreRequest result = new lgraph.Lgraph.RestoreRequest(this); - int from_bitField0_ = bitField0_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.RestoreRequest) { - return mergeFrom((lgraph.Lgraph.RestoreRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.RestoreRequest other) { - if (other == lgraph.Lgraph.RestoreRequest.getDefaultInstance()) return this; - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000001); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getLogsCount(); i++) { - if (!getLogs(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.RestoreRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.RestoreRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.BackupLogEntry, lgraph.Lgraph.BackupLogEntry.Builder, lgraph.Lgraph.BackupLogEntryOrBuilder> logsBuilder_; - - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntry getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder setLogs( - int index, lgraph.Lgraph.BackupLogEntry value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder setLogs( - int index, lgraph.Lgraph.BackupLogEntry.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder addLogs(lgraph.Lgraph.BackupLogEntry value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder addLogs( - int index, lgraph.Lgraph.BackupLogEntry value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder addLogs( - lgraph.Lgraph.BackupLogEntry.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder addLogs( - int index, lgraph.Lgraph.BackupLogEntry.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntry.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntryOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntry.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - lgraph.Lgraph.BackupLogEntry.getDefaultInstance()); - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public lgraph.Lgraph.BackupLogEntry.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, lgraph.Lgraph.BackupLogEntry.getDefaultInstance()); - } - /** - * repeated .lgraph.BackupLogEntry logs = 1; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.BackupLogEntry, lgraph.Lgraph.BackupLogEntry.Builder, lgraph.Lgraph.BackupLogEntryOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - lgraph.Lgraph.BackupLogEntry, lgraph.Lgraph.BackupLogEntry.Builder, lgraph.Lgraph.BackupLogEntryOrBuilder>( - logs_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - @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:lgraph.RestoreRequest) - } - - // @@protoc_insertion_point(class_scope:lgraph.RestoreRequest) - private static final lgraph.Lgraph.RestoreRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.RestoreRequest(); - } - - public static lgraph.Lgraph.RestoreRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreRequest(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 lgraph.Lgraph.RestoreRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RestoreResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.RestoreResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 last_success_idx = 1; - */ - boolean hasLastSuccessIdx(); - /** - * required int64 last_success_idx = 1; - */ - long getLastSuccessIdx(); - } - /** - * Protobuf type {@code lgraph.RestoreResponse} - */ - public static final class RestoreResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.RestoreResponse) - RestoreResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RestoreResponse.newBuilder() to construct. - private RestoreResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RestoreResponse() { - lastSuccessIdx_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RestoreResponse( - 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 8: { - bitField0_ |= 0x00000001; - lastSuccessIdx_ = input.readInt64(); - 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 lgraph.Lgraph.internal_static_lgraph_RestoreResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_RestoreResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.RestoreResponse.class, lgraph.Lgraph.RestoreResponse.Builder.class); - } - - private int bitField0_; - public static final int LAST_SUCCESS_IDX_FIELD_NUMBER = 1; - private long lastSuccessIdx_; - /** - * required int64 last_success_idx = 1; - */ - public boolean hasLastSuccessIdx() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 last_success_idx = 1; - */ - public long getLastSuccessIdx() { - return lastSuccessIdx_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasLastSuccessIdx()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, lastSuccessIdx_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, lastSuccessIdx_); - } - 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 lgraph.Lgraph.RestoreResponse)) { - return super.equals(obj); - } - lgraph.Lgraph.RestoreResponse other = (lgraph.Lgraph.RestoreResponse) obj; - - boolean result = true; - result = result && (hasLastSuccessIdx() == other.hasLastSuccessIdx()); - if (hasLastSuccessIdx()) { - result = result && (getLastSuccessIdx() - == other.getLastSuccessIdx()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasLastSuccessIdx()) { - hash = (37 * hash) + LAST_SUCCESS_IDX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastSuccessIdx()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.RestoreResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.RestoreResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.RestoreResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreResponse 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 lgraph.Lgraph.RestoreResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreResponse 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 lgraph.Lgraph.RestoreResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.RestoreResponse 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(lgraph.Lgraph.RestoreResponse 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 lgraph.RestoreResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.RestoreResponse) - lgraph.Lgraph.RestoreResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_RestoreResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_RestoreResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.RestoreResponse.class, lgraph.Lgraph.RestoreResponse.Builder.class); - } - - // Construct using lgraph.Lgraph.RestoreResponse.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(); - lastSuccessIdx_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_RestoreResponse_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.RestoreResponse getDefaultInstanceForType() { - return lgraph.Lgraph.RestoreResponse.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.RestoreResponse build() { - lgraph.Lgraph.RestoreResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.RestoreResponse buildPartial() { - lgraph.Lgraph.RestoreResponse result = new lgraph.Lgraph.RestoreResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.lastSuccessIdx_ = lastSuccessIdx_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.RestoreResponse) { - return mergeFrom((lgraph.Lgraph.RestoreResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.RestoreResponse other) { - if (other == lgraph.Lgraph.RestoreResponse.getDefaultInstance()) return this; - if (other.hasLastSuccessIdx()) { - setLastSuccessIdx(other.getLastSuccessIdx()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasLastSuccessIdx()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.RestoreResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.RestoreResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long lastSuccessIdx_ ; - /** - * required int64 last_success_idx = 1; - */ - public boolean hasLastSuccessIdx() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 last_success_idx = 1; - */ - public long getLastSuccessIdx() { - return lastSuccessIdx_; - } - /** - * required int64 last_success_idx = 1; - */ - public Builder setLastSuccessIdx(long value) { - bitField0_ |= 0x00000001; - lastSuccessIdx_ = value; - onChanged(); - return this; - } - /** - * required int64 last_success_idx = 1; - */ - public Builder clearLastSuccessIdx() { - bitField0_ = (bitField0_ & ~0x00000001); - lastSuccessIdx_ = 0L; - 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:lgraph.RestoreResponse) - } - - // @@protoc_insertion_point(class_scope:lgraph.RestoreResponse) - private static final lgraph.Lgraph.RestoreResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.RestoreResponse(); - } - - public static lgraph.Lgraph.RestoreResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestoreResponse(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 lgraph.Lgraph.RestoreResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LogMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:lgraph.LogMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * required int64 index = 1; - */ - boolean hasIndex(); - /** - * required int64 index = 1; - */ - long getIndex(); - - /** - * required int64 time = 2; - */ - boolean hasTime(); - /** - * required int64 time = 2; - */ - long getTime(); - - /** - * required bool begin_end = 3; - */ - boolean hasBeginEnd(); - /** - * required bool begin_end = 3; - */ - boolean getBeginEnd(); - - /** - * optional string user = 4; - */ - boolean hasUser(); - /** - * optional string user = 4; - */ - java.lang.String getUser(); - /** - * optional string user = 4; - */ - com.google.protobuf.ByteString - getUserBytes(); - - /** - * optional string graph = 5; - */ - boolean hasGraph(); - /** - * optional string graph = 5; - */ - java.lang.String getGraph(); - /** - * optional string graph = 5; - */ - com.google.protobuf.ByteString - getGraphBytes(); - - /** - * optional .lgraph.LogApiType type = 6; - */ - boolean hasType(); - /** - * optional .lgraph.LogApiType type = 6; - */ - lgraph.Lgraph.LogApiType getType(); - - /** - * optional bool read_write = 7; - */ - boolean hasReadWrite(); - /** - * optional bool read_write = 7; - */ - boolean getReadWrite(); - - /** - * optional bool success = 8; - */ - boolean hasSuccess(); - /** - * optional bool success = 8; - */ - boolean getSuccess(); - - /** - * optional string content = 9; - */ - boolean hasContent(); - /** - * optional string content = 9; - */ - java.lang.String getContent(); - /** - * optional string content = 9; - */ - com.google.protobuf.ByteString - getContentBytes(); - } - /** - * Protobuf type {@code lgraph.LogMessage} - */ - public static final class LogMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:lgraph.LogMessage) - LogMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use LogMessage.newBuilder() to construct. - private LogMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LogMessage() { - index_ = 0L; - time_ = 0L; - beginEnd_ = false; - user_ = ""; - graph_ = ""; - type_ = 0; - readWrite_ = false; - success_ = false; - content_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LogMessage( - 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 8: { - bitField0_ |= 0x00000001; - index_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - time_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - beginEnd_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - user_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - graph_ = bs; - break; - } - case 48: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - lgraph.Lgraph.LogApiType value = lgraph.Lgraph.LogApiType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - type_ = rawValue; - } - break; - } - case 56: { - bitField0_ |= 0x00000040; - readWrite_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - success_ = input.readBool(); - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - content_ = bs; - 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 lgraph.Lgraph.internal_static_lgraph_LogMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LogMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LogMessage.class, lgraph.Lgraph.LogMessage.Builder.class); - } - - private int bitField0_; - public static final int INDEX_FIELD_NUMBER = 1; - private long index_; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - - public static final int TIME_FIELD_NUMBER = 2; - private long time_; - /** - * required int64 time = 2; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 time = 2; - */ - public long getTime() { - return time_; - } - - public static final int BEGIN_END_FIELD_NUMBER = 3; - private boolean beginEnd_; - /** - * required bool begin_end = 3; - */ - public boolean hasBeginEnd() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool begin_end = 3; - */ - public boolean getBeginEnd() { - return beginEnd_; - } - - public static final int USER_FIELD_NUMBER = 4; - private volatile java.lang.Object user_; - /** - * optional string user = 4; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string user = 4; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } - } - /** - * optional string user = 4; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRAPH_FIELD_NUMBER = 5; - private volatile java.lang.Object graph_; - /** - * optional string graph = 5; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string graph = 5; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } - } - /** - * optional string graph = 5; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 6; - private int type_; - /** - * optional .lgraph.LogApiType type = 6; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .lgraph.LogApiType type = 6; - */ - public lgraph.Lgraph.LogApiType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LogApiType result = lgraph.Lgraph.LogApiType.valueOf(type_); - return result == null ? lgraph.Lgraph.LogApiType.SingleApi : result; - } - - public static final int READ_WRITE_FIELD_NUMBER = 7; - private boolean readWrite_; - /** - * optional bool read_write = 7; - */ - public boolean hasReadWrite() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool read_write = 7; - */ - public boolean getReadWrite() { - return readWrite_; - } - - public static final int SUCCESS_FIELD_NUMBER = 8; - private boolean success_; - /** - * optional bool success = 8; - */ - public boolean hasSuccess() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bool success = 8; - */ - public boolean getSuccess() { - return success_; - } - - public static final int CONTENT_FIELD_NUMBER = 9; - private volatile java.lang.Object content_; - /** - * optional string content = 9; - */ - public boolean hasContent() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string content = 9; - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - content_ = s; - } - return s; - } - } - /** - * optional string content = 9; - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = 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; - - if (!hasIndex()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasBeginEnd()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, time_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, beginEnd_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, user_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, graph_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, type_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, readWrite_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBool(8, success_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, content_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, time_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, beginEnd_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, user_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, graph_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, type_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, readWrite_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, success_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, content_); - } - 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 lgraph.Lgraph.LogMessage)) { - return super.equals(obj); - } - lgraph.Lgraph.LogMessage other = (lgraph.Lgraph.LogMessage) obj; - - boolean result = true; - result = result && (hasIndex() == other.hasIndex()); - if (hasIndex()) { - result = result && (getIndex() - == other.getIndex()); - } - result = result && (hasTime() == other.hasTime()); - if (hasTime()) { - result = result && (getTime() - == other.getTime()); - } - result = result && (hasBeginEnd() == other.hasBeginEnd()); - if (hasBeginEnd()) { - result = result && (getBeginEnd() - == other.getBeginEnd()); - } - result = result && (hasUser() == other.hasUser()); - if (hasUser()) { - result = result && getUser() - .equals(other.getUser()); - } - result = result && (hasGraph() == other.hasGraph()); - if (hasGraph()) { - result = result && getGraph() - .equals(other.getGraph()); - } - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && type_ == other.type_; - } - result = result && (hasReadWrite() == other.hasReadWrite()); - if (hasReadWrite()) { - result = result && (getReadWrite() - == other.getReadWrite()); - } - result = result && (hasSuccess() == other.hasSuccess()); - if (hasSuccess()) { - result = result && (getSuccess() - == other.getSuccess()); - } - result = result && (hasContent() == other.hasContent()); - if (hasContent()) { - result = result && getContent() - .equals(other.getContent()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIndex()) { - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); - } - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getTime()); - } - if (hasBeginEnd()) { - hash = (37 * hash) + BEGIN_END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBeginEnd()); - } - if (hasUser()) { - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - } - if (hasGraph()) { - hash = (37 * hash) + GRAPH_FIELD_NUMBER; - hash = (53 * hash) + getGraph().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasReadWrite()) { - hash = (37 * hash) + READ_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReadWrite()); - } - if (hasSuccess()) { - hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuccess()); - } - if (hasContent()) { - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static lgraph.Lgraph.LogMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static lgraph.Lgraph.LogMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static lgraph.Lgraph.LogMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogMessage 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 lgraph.Lgraph.LogMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogMessage 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 lgraph.Lgraph.LogMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static lgraph.Lgraph.LogMessage 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(lgraph.Lgraph.LogMessage 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 lgraph.LogMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:lgraph.LogMessage) - lgraph.Lgraph.LogMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return lgraph.Lgraph.internal_static_lgraph_LogMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return lgraph.Lgraph.internal_static_lgraph_LogMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - lgraph.Lgraph.LogMessage.class, lgraph.Lgraph.LogMessage.Builder.class); - } - - // Construct using lgraph.Lgraph.LogMessage.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(); - index_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - time_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - beginEnd_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - user_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - graph_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - readWrite_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - success_ = false; - bitField0_ = (bitField0_ & ~0x00000080); - content_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return lgraph.Lgraph.internal_static_lgraph_LogMessage_descriptor; - } - - @java.lang.Override - public lgraph.Lgraph.LogMessage getDefaultInstanceForType() { - return lgraph.Lgraph.LogMessage.getDefaultInstance(); - } - - @java.lang.Override - public lgraph.Lgraph.LogMessage build() { - lgraph.Lgraph.LogMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public lgraph.Lgraph.LogMessage buildPartial() { - lgraph.Lgraph.LogMessage result = new lgraph.Lgraph.LogMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.index_ = index_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.time_ = time_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.beginEnd_ = beginEnd_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.user_ = user_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.graph_ = graph_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.readWrite_ = readWrite_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.success_ = success_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.content_ = content_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof lgraph.Lgraph.LogMessage) { - return mergeFrom((lgraph.Lgraph.LogMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(lgraph.Lgraph.LogMessage other) { - if (other == lgraph.Lgraph.LogMessage.getDefaultInstance()) return this; - if (other.hasIndex()) { - setIndex(other.getIndex()); - } - if (other.hasTime()) { - setTime(other.getTime()); - } - if (other.hasBeginEnd()) { - setBeginEnd(other.getBeginEnd()); - } - if (other.hasUser()) { - bitField0_ |= 0x00000008; - user_ = other.user_; - onChanged(); - } - if (other.hasGraph()) { - bitField0_ |= 0x00000010; - graph_ = other.graph_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasReadWrite()) { - setReadWrite(other.getReadWrite()); - } - if (other.hasSuccess()) { - setSuccess(other.getSuccess()); - } - if (other.hasContent()) { - bitField0_ |= 0x00000100; - content_ = other.content_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasIndex()) { - return false; - } - if (!hasTime()) { - return false; - } - if (!hasBeginEnd()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - lgraph.Lgraph.LogMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (lgraph.Lgraph.LogMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long index_ ; - /** - * required int64 index = 1; - */ - public boolean hasIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int64 index = 1; - */ - public long getIndex() { - return index_; - } - /** - * required int64 index = 1; - */ - public Builder setIndex(long value) { - bitField0_ |= 0x00000001; - index_ = value; - onChanged(); - return this; - } - /** - * required int64 index = 1; - */ - public Builder clearIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - index_ = 0L; - onChanged(); - return this; - } - - private long time_ ; - /** - * required int64 time = 2; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int64 time = 2; - */ - public long getTime() { - return time_; - } - /** - * required int64 time = 2; - */ - public Builder setTime(long value) { - bitField0_ |= 0x00000002; - time_ = value; - onChanged(); - return this; - } - /** - * required int64 time = 2; - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000002); - time_ = 0L; - onChanged(); - return this; - } - - private boolean beginEnd_ ; - /** - * required bool begin_end = 3; - */ - public boolean hasBeginEnd() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required bool begin_end = 3; - */ - public boolean getBeginEnd() { - return beginEnd_; - } - /** - * required bool begin_end = 3; - */ - public Builder setBeginEnd(boolean value) { - bitField0_ |= 0x00000004; - beginEnd_ = value; - onChanged(); - return this; - } - /** - * required bool begin_end = 3; - */ - public Builder clearBeginEnd() { - bitField0_ = (bitField0_ & ~0x00000004); - beginEnd_ = false; - onChanged(); - return this; - } - - private java.lang.Object user_ = ""; - /** - * optional string user = 4; - */ - public boolean hasUser() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string user = 4; - */ - public java.lang.String getUser() { - java.lang.Object ref = user_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - user_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string user = 4; - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = user_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - user_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string user = 4; - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - user_ = value; - onChanged(); - return this; - } - /** - * optional string user = 4; - */ - public Builder clearUser() { - bitField0_ = (bitField0_ & ~0x00000008); - user_ = getDefaultInstance().getUser(); - onChanged(); - return this; - } - /** - * optional string user = 4; - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - user_ = value; - onChanged(); - return this; - } - - private java.lang.Object graph_ = ""; - /** - * optional string graph = 5; - */ - public boolean hasGraph() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string graph = 5; - */ - public java.lang.String getGraph() { - java.lang.Object ref = graph_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - graph_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string graph = 5; - */ - public com.google.protobuf.ByteString - getGraphBytes() { - java.lang.Object ref = graph_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - graph_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string graph = 5; - */ - public Builder setGraph( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - graph_ = value; - onChanged(); - return this; - } - /** - * optional string graph = 5; - */ - public Builder clearGraph() { - bitField0_ = (bitField0_ & ~0x00000010); - graph_ = getDefaultInstance().getGraph(); - onChanged(); - return this; - } - /** - * optional string graph = 5; - */ - public Builder setGraphBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - graph_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * optional .lgraph.LogApiType type = 6; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .lgraph.LogApiType type = 6; - */ - public lgraph.Lgraph.LogApiType getType() { - @SuppressWarnings("deprecation") - lgraph.Lgraph.LogApiType result = lgraph.Lgraph.LogApiType.valueOf(type_); - return result == null ? lgraph.Lgraph.LogApiType.SingleApi : result; - } - /** - * optional .lgraph.LogApiType type = 6; - */ - public Builder setType(lgraph.Lgraph.LogApiType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .lgraph.LogApiType type = 6; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000020); - type_ = 0; - onChanged(); - return this; - } - - private boolean readWrite_ ; - /** - * optional bool read_write = 7; - */ - public boolean hasReadWrite() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool read_write = 7; - */ - public boolean getReadWrite() { - return readWrite_; - } - /** - * optional bool read_write = 7; - */ - public Builder setReadWrite(boolean value) { - bitField0_ |= 0x00000040; - readWrite_ = value; - onChanged(); - return this; - } - /** - * optional bool read_write = 7; - */ - public Builder clearReadWrite() { - bitField0_ = (bitField0_ & ~0x00000040); - readWrite_ = false; - onChanged(); - return this; - } - - private boolean success_ ; - /** - * optional bool success = 8; - */ - public boolean hasSuccess() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bool success = 8; - */ - public boolean getSuccess() { - return success_; - } - /** - * optional bool success = 8; - */ - public Builder setSuccess(boolean value) { - bitField0_ |= 0x00000080; - success_ = value; - onChanged(); - return this; - } - /** - * optional bool success = 8; - */ - public Builder clearSuccess() { - bitField0_ = (bitField0_ & ~0x00000080); - success_ = false; - onChanged(); - return this; - } - - private java.lang.Object content_ = ""; - /** - * optional string content = 9; - */ - public boolean hasContent() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string content = 9; - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string content = 9; - */ - public com.google.protobuf.ByteString - getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - content_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string content = 9; - */ - public Builder setContent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - content_ = value; - onChanged(); - return this; - } - /** - * optional string content = 9; - */ - public Builder clearContent() { - bitField0_ = (bitField0_ & ~0x00000100); - content_ = getDefaultInstance().getContent(); - onChanged(); - return this; - } - /** - * optional string content = 9; - */ - public Builder setContentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - content_ = 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:lgraph.LogMessage) - } - - // @@protoc_insertion_point(class_scope:lgraph.LogMessage) - private static final lgraph.Lgraph.LogMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new lgraph.Lgraph.LogMessage(); - } - - public static lgraph.Lgraph.LogMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LogMessage(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 lgraph.Lgraph.LogMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_Snapshot_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_Snapshot_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoFieldData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoFieldData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListOfProtoFieldData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListOfProtoFieldData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoFieldSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoFieldSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoIndexSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoIndexSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SrcDstFieldValues_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SrcDstFieldValues_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_Property_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_Property_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_EdgeConstraint_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_EdgeConstraint_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddLabelRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddLabelRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddLabelResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddLabelResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListLabelsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListLabelsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListLabelsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListLabelsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetLabelRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetLabelRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetLabelResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetLabelResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddIndexRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddIndexRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddIndexResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddIndexResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelIndexRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelIndexRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelIndexResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelIndexResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddVertexesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddVertexesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddVertexesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddVertexesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelVertexRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelVertexRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelVertexResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelVertexResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModVertexRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModVertexRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModVertexResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModVertexResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddEdgesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddEdgesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddEdgesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddEdgesResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelEdgeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelEdgeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelEdgeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelEdgeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModEdgeRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModEdgeRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModEdgeResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModEdgeResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_FlushRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_FlushRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_FlushResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_FlushResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SubGraphRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SubGraphRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_VertexData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_VertexData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_EdgeData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_EdgeData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SubGraphResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SubGraphResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GraphApiRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GraphApiRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GraphApiResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GraphApiResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModConfigRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModConfigRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModConfigResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModConfigResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ConfigRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ConfigRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ConfigResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ConfigResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoDBConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoDBConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddGraphRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddGraphRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddGraphResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddGraphResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DeleteGraphRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DeleteGraphRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DeleteGraphResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DeleteGraphResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListGraphsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListGraphsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListGraphsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListGraphsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GraphRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GraphRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GraphResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GraphResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AuthRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AuthRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LoginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LoginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LogoutRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LogoutRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AuthResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AuthResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddUserRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddUserRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddUserResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddUserResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListOfString_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListOfString_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SetPasswordParam_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SetPasswordParam_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModUserRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModUserRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModUserResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModUserResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelUserRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelUserRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelUserResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelUserResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetUserInfoRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetUserInfoRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoUserInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoUserInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetUserInfoResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetUserInfoResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListUserRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListUserRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListUserResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListUserResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListUserResponse_UsersEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListUserResponse_UsersEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoGraphAccess_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoGraphAccess_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoGraphAccess_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoGraphAccess_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddRoleRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddRoleRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AddRoleResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AddRoleResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelRoleRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelRoleRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelRoleResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelRoleResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModRoleRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModRoleRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ModRoleResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ModRoleResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetRoleInfoRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetRoleInfoRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ProtoRoleInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ProtoRoleInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetRoleInfoResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetRoleInfoResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListRoleRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListRoleRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListRoleResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListRoleResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListRoleResponse_RolesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListRoleResponse_RolesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AclRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AclRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_AclResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_AclResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_Header_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_Header_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_CypherResult_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_CypherResult_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_CypherRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_CypherRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_CypherResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_CypherResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ImportRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ImportRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ImportResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ImportResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SchemaRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SchemaRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SchemaResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SchemaResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_CallPluginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_CallPluginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_CallPluginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_CallPluginResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LoadPluginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LoadPluginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LoadPluginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LoadPluginResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelPluginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelPluginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_DelPluginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_DelPluginResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListPluginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListPluginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListPluginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListPluginResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_PluginRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_PluginRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_PluginResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_PluginResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_HeartbeatRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_HeartbeatRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_HeartbeatResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_HeartbeatResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_PeerInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_PeerInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListPeersRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListPeersRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_ListPeersResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_ListPeersResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetMasterRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetMasterRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_GetMasterResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_GetMasterResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SyncMetaRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SyncMetaRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_SyncMetaResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_SyncMetaResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_HARequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_HARequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_HAResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_HAResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LGraphRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LGraphRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LGraphResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LGraphResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_BackupLogEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_BackupLogEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_RestoreRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_RestoreRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_RestoreResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_RestoreResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_lgraph_LogMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_lgraph_LogMessage_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\014lgraph.proto\022\006lgraph\"\031\n\010Snapshot\022\r\n\005va" + - "lue\030\001 \002(\003\"\321\001\n\016ProtoFieldData\022\021\n\007boolean\030" + - "\001 \001(\010H\000\022\017\n\005int8_\030\002 \001(\005H\000\022\020\n\006int16_\030\003 \001(\005" + - "H\000\022\020\n\006int32_\030\004 \001(\005H\000\022\020\n\006int64_\030\005 \001(\003H\000\022\014" + - "\n\002sp\030\006 \001(\002H\000\022\014\n\002dp\030\007 \001(\001H\000\022\016\n\004date\030\010 \001(\005" + - "H\000\022\022\n\010datetime\030\t \001(\003H\000\022\r\n\003str\030\n \001(\tH\000\022\016\n" + - "\004blob\030\013 \001(\014H\000B\006\n\004Data\">\n\024ListOfProtoFiel" + - "dData\022&\n\006values\030\001 \003(\0132\026.lgraph.ProtoFiel" + - "dData\"V\n\016ProtoFieldSpec\022\014\n\004name\030\001 \002(\t\022$\n" + - "\004type\030\002 \002(\0162\026.lgraph.ProtoFieldType\022\020\n\010n" + - "ullable\030\003 \002(\010\">\n\016ProtoIndexSpec\022\r\n\005label" + - "\030\001 \002(\t\022\r\n\005field\030\002 \002(\t\022\016\n\006unique\030\003 \002(\010\"[\n" + - "\021SrcDstFieldValues\022\013\n\003src\030\001 \002(\003\022\013\n\003dst\030\002" + - " \002(\003\022,\n\006values\030\003 \002(\0132\034.lgraph.ListOfProt" + - "oFieldData\">\n\010Property\022\013\n\003key\030\001 \002(\t\022%\n\005v" + - "alue\030\002 \002(\0132\026.lgraph.ProtoFieldData\"6\n\016Ed" + - "geConstraint\022\021\n\tsrc_label\030\001 \002(\t\022\021\n\tdst_l" + - "abel\030\002 \002(\t\"\261\001\n\017AddLabelRequest\022\021\n\tis_ver" + - "tex\030\001 \002(\010\022\r\n\005label\030\002 \002(\t\022\017\n\007primary\030\003 \001(" + - "\t\022\021\n\ttid_order\030\004 \001(\t\0220\n\020edge_constraints" + - "\030\005 \003(\0132\026.lgraph.EdgeConstraint\022&\n\006fields" + - "\030\006 \003(\0132\026.lgraph.ProtoFieldSpec\"\022\n\020AddLab" + - "elResponse\"&\n\021ListLabelsRequest\022\021\n\tis_ve" + - "rtex\030\001 \002(\010\"$\n\022ListLabelsResponse\022\016\n\006labe" + - "ls\030\001 \003(\t\"$\n\017GetLabelRequest\022\021\n\tis_vertex" + - "\030\001 \002(\010\":\n\020GetLabelResponse\022&\n\006fields\030\001 \003" + - "(\0132\026.lgraph.ProtoFieldSpec\"B\n\017AddIndexRe" + - "quest\022\r\n\005label\030\001 \002(\t\022\r\n\005field\030\002 \002(\t\022\021\n\ti" + - "s_unique\030\003 \002(\010\"\022\n\020AddIndexResponse\"/\n\017De" + - "lIndexRequest\022\r\n\005label\030\001 \002(\t\022\r\n\005field\030\002 " + - "\002(\t\"\022\n\020DelIndexResponse\"c\n\022AddVertexesRe" + - "quest\022\r\n\005label\030\001 \002(\t\022\016\n\006fields\030\002 \003(\t\022.\n\010" + - "vertexes\030\003 \003(\0132\034.lgraph.ListOfProtoField" + - "Data\"\"\n\023AddVertexesResponse\022\013\n\003vid\030\001 \003(\003" + - "\"\037\n\020DelVertexRequest\022\013\n\003vid\030\001 \002(\003\"2\n\021Del" + - "VertexResponse\022\r\n\005n_ins\030\001 \002(\003\022\016\n\006n_outs\030" + - "\002 \002(\003\"l\n\020ModVertexRequest\022\013\n\003vid\030\001 \002(\003\022\r" + - "\n\005label\030\002 \001(\t\022\016\n\006fields\030\003 \003(\t\022,\n\006values\030" + - "\004 \002(\0132\034.lgraph.ListOfProtoFieldData\"\023\n\021M" + - "odVertexResponse\"Z\n\017AddEdgesRequest\022\r\n\005l" + - "abel\030\001 \002(\t\022\016\n\006fields\030\002 \003(\t\022(\n\005edges\030\003 \003(" + - "\0132\031.lgraph.SrcDstFieldValues\":\n\020AddEdges" + - "Response\022\013\n\003lid\030\001 \002(\003\022\013\n\003tid\030\002 \002(\003\022\014\n\004ei" + - "ds\030\003 \003(\003\"Q\n\016DelEdgeRequest\022\013\n\003src\030\001 \002(\003\022" + - "\013\n\003tid\030\002 \002(\003\022\013\n\003lid\030\003 \002(\003\022\013\n\003dst\030\004 \002(\003\022\013" + - "\n\003eid\030\005 \002(\003\"\021\n\017DelEdgeResponse\"\217\001\n\016ModEd" + - "geRequest\022\013\n\003src\030\001 \002(\003\022\013\n\003tid\030\002 \002(\003\022\013\n\003l" + - "id\030\003 \002(\003\022\013\n\003dst\030\004 \002(\003\022\013\n\003eid\030\005 \002(\003\022\016\n\006fi" + - "elds\030\006 \003(\t\022,\n\006values\030\007 \002(\0132\034.lgraph.List" + - "OfProtoFieldData\"\021\n\017ModEdgeResponse\"\016\n\014F" + - "lushRequest\"\017\n\rFlushResponse\"\037\n\017SubGraph" + - "Request\022\014\n\004vids\030\001 \003(\003\"N\n\nVertexData\022\013\n\003v" + - "id\030\001 \002(\003\022\r\n\005label\030\002 \002(\t\022$\n\nproperties\030\003 " + - "\003(\0132\020.lgraph.Property\"\200\001\n\010EdgeData\022\013\n\003sr" + - "c\030\001 \002(\003\022\013\n\003tid\030\002 \002(\003\022\013\n\003lid\030\003 \002(\003\022\013\n\003dst" + - "\030\004 \002(\003\022\013\n\003eid\030\005 \002(\003\022\r\n\005label\030\006 \002(\t\022$\n\npr" + - "operties\030\007 \003(\0132\020.lgraph.Property\"V\n\020SubG" + - "raphResponse\022!\n\005nodes\030\001 \003(\0132\022.lgraph.Ver" + - "texData\022\037\n\005edges\030\002 \003(\0132\020.lgraph.EdgeData" + - "\"\370\004\n\017GraphApiRequest\0224\n\021add_label_reques" + - "t\030\001 \001(\0132\027.lgraph.AddLabelRequestH\000\0224\n\021ad" + - "d_index_request\030\002 \001(\0132\027.lgraph.AddIndexR" + - "equestH\000\022:\n\024add_vertexes_request\030\003 \001(\0132\032" + - ".lgraph.AddVertexesRequestH\000\0224\n\021add_edge" + - "s_request\030\004 \001(\0132\027.lgraph.AddEdgesRequest" + - "H\000\0224\n\021del_index_request\030\005 \001(\0132\027.lgraph.D" + - "elIndexRequestH\000\0226\n\022del_vertex_request\030\006" + - " \001(\0132\030.lgraph.DelVertexRequestH\000\0222\n\020del_" + - "edge_request\030\007 \001(\0132\026.lgraph.DelEdgeReque" + - "stH\000\0226\n\022mod_vertex_request\030\010 \001(\0132\030.lgrap" + - "h.ModVertexRequestH\000\0222\n\020mod_edge_request" + - "\030\t \001(\0132\026.lgraph.ModEdgeRequestH\000\0224\n\021sub_" + - "graph_request\030\n \001(\0132\027.lgraph.SubGraphReq" + - "uestH\000\022-\n\rflush_request\030\013 \001(\0132\024.lgraph.F" + - "lushRequestH\000\022\r\n\005graph\030\014 \002(\tB\005\n\003Req\"\201\005\n\020" + - "GraphApiResponse\0226\n\022add_label_response\030\001" + - " \001(\0132\030.lgraph.AddLabelResponseH\000\0226\n\022add_" + - "index_response\030\002 \001(\0132\030.lgraph.AddIndexRe" + - "sponseH\000\022<\n\025add_vertexes_response\030\003 \001(\0132" + - "\033.lgraph.AddVertexesResponseH\000\0226\n\022add_ed" + - "ges_response\030\004 \001(\0132\030.lgraph.AddEdgesResp" + - "onseH\000\0226\n\022del_index_response\030\005 \001(\0132\030.lgr" + - "aph.DelIndexResponseH\000\0228\n\023del_vertex_res" + - "ponse\030\006 \001(\0132\031.lgraph.DelVertexResponseH\000" + - "\0224\n\021del_edge_response\030\007 \001(\0132\027.lgraph.Del" + - "EdgeResponseH\000\0228\n\023mod_vertex_response\030\010 " + - "\001(\0132\031.lgraph.ModVertexResponseH\000\0224\n\021mod_" + - "edge_response\030\t \001(\0132\027.lgraph.ModEdgeResp" + - "onseH\000\0226\n\022sub_graph_response\030\n \001(\0132\030.lgr" + - "aph.SubGraphResponseH\000\022/\n\016flush_response" + - "\030\013 \001(\0132\025.lgraph.FlushResponseH\000B\006\n\004Resp\"" + - "H\n\020ModConfigRequest\022\014\n\004keys\030\001 \003(\t\022&\n\006val" + - "ues\030\002 \003(\0132\026.lgraph.ProtoFieldData\"\023\n\021Mod" + - "ConfigResponse\"N\n\rConfigRequest\0226\n\022mod_c" + - "onfig_request\030\001 \001(\0132\030.lgraph.ModConfigRe" + - "questH\000B\005\n\003Req\"R\n\016ConfigResponse\0228\n\023mod_" + - "config_response\030\001 \001(\0132\031.lgraph.ModConfig" + - "ResponseH\000B\006\n\004Resp\"=\n\rProtoDBConfig\022\017\n\007d" + - "b_size\030\001 \002(\003\022\r\n\005async\030\002 \002(\010\022\014\n\004desc\030\003 \002(" + - "\t\"F\n\017AddGraphRequest\022\014\n\004name\030\001 \002(\t\022%\n\006co" + - "nfig\030\002 \002(\0132\025.lgraph.ProtoDBConfig\"\022\n\020Add" + - "GraphResponse\"\"\n\022DeleteGraphRequest\022\014\n\004n" + - "ame\030\001 \002(\t\"\025\n\023DeleteGraphResponse\"\023\n\021List" + - "GraphsRequest\"K\n\022ListGraphsResponse\022\r\n\005n" + - "ames\030\001 \003(\t\022&\n\007configs\030\002 \003(\0132\025.lgraph.Pro" + - "toDBConfig\"\301\001\n\014GraphRequest\0224\n\021add_graph" + - "_request\030\001 \001(\0132\027.lgraph.AddGraphRequestH" + - "\000\022:\n\024delete_graph_request\030\002 \001(\0132\032.lgraph" + - ".DeleteGraphRequestH\000\0228\n\023list_graphs_req" + - "uest\030\003 \001(\0132\031.lgraph.ListGraphsRequestH\000B" + - "\005\n\003Req\"\311\001\n\rGraphResponse\0226\n\022add_graph_re" + - "sponse\030\001 \001(\0132\030.lgraph.AddGraphResponseH\000" + - "\022<\n\025delete_graph_response\030\002 \001(\0132\033.lgraph" + - ".DeleteGraphResponseH\000\022:\n\024list_graphs_re" + - "sponse\030\003 \001(\0132\032.lgraph.ListGraphsResponse" + - "H\000B\006\n\004Resp\"g\n\013AuthRequest\022%\n\005login\030\001 \001(\013" + - "2\024.lgraph.LoginRequestH\000\022\'\n\006logout\030\002 \001(\013" + - "2\025.lgraph.LogoutRequestH\000B\010\n\006action\".\n\014L" + - "oginRequest\022\014\n\004user\030\001 \002(\t\022\020\n\010password\030\002 " + - "\002(\t\"\036\n\rLogoutRequest\022\r\n\005token\030\001 \002(\t\"\035\n\014A" + - "uthResponse\022\r\n\005token\030\001 \002(\t\"S\n\016AddUserReq" + - "uest\022\014\n\004user\030\001 \002(\t\022\020\n\010password\030\002 \002(\t\022\023\n\013" + - "auth_method\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\"\021\n\017AddUs" + - "erResponse\"\036\n\014ListOfString\022\016\n\006values\030\001 \003" + - "(\t\"6\n\020SetPasswordParam\022\020\n\010old_pass\030\001 \001(\t" + - "\022\020\n\010new_pass\030\002 \002(\t\"\224\002\n\016ModUserRequest\022\014\n" + - "\004user\030\001 \002(\t\0220\n\014set_password\030\002 \001(\0132\030.lgra" + - "ph.SetPasswordParamH\000\022)\n\tset_roles\030\003 \001(\013" + - "2\024.lgraph.ListOfStringH\000\022)\n\tadd_roles\030\004 " + - "\001(\0132\024.lgraph.ListOfStringH\000\022)\n\tdel_roles" + - "\030\005 \001(\0132\024.lgraph.ListOfStringH\000\022\020\n\006enable" + - "\030\006 \001(\010H\000\022\021\n\007disable\030\007 \001(\010H\000\022\022\n\010set_desc\030" + - "\010 \001(\tH\000B\010\n\006action\"\021\n\017ModUserResponse\"\036\n\016" + - "DelUserRequest\022\014\n\004user\030\001 \002(\t\"\021\n\017DelUserR" + - "esponse\"\"\n\022GetUserInfoRequest\022\014\n\004user\030\001 " + - "\002(\t\"H\n\rProtoUserInfo\022\023\n\013is_disabled\030\001 \002(" + - "\010\022\r\n\005roles\030\002 \003(\t\022\023\n\013auth_method\030\003 \001(\t\":\n" + - "\023GetUserInfoResponse\022#\n\004info\030\001 \002(\0132\025.lgr" + - "aph.ProtoUserInfo\"\021\n\017ListUserRequest\"\213\001\n" + - "\020ListUserResponse\0222\n\005users\030\001 \003(\0132#.lgrap" + - "h.ListUserResponse.UsersEntry\032C\n\nUsersEn" + - "try\022\013\n\003key\030\001 \001(\t\022$\n\005value\030\002 \001(\0132\025.lgraph" + - ".ProtoUserInfo:\0028\001\"\221\001\n\020ProtoGraphAccess\022" + - "4\n\006values\030\001 \003(\0132$.lgraph.ProtoGraphAcces" + - "s.ValuesEntry\032G\n\013ValuesEntry\022\013\n\003key\030\001 \001(" + - "\t\022\'\n\005value\030\002 \001(\0162\030.lgraph.ProtoAccessLev" + - "el:\0028\001\",\n\016AddRoleRequest\022\014\n\004role\030\001 \002(\t\022\014" + - "\n\004desc\030\002 \001(\t\"\021\n\017AddRoleResponse\"\036\n\016DelRo" + - "leRequest\022\014\n\004role\030\001 \002(\t\"\021\n\017DelRoleRespon" + - "se\"\327\001\n\016ModRoleRequest\022\014\n\004role\030\001 \002(\t\022\022\n\010m" + - "od_desc\030\002 \001(\tH\000\0229\n\025set_full_graph_access" + - "\030\003 \001(\0132\030.lgraph.ProtoGraphAccessH\000\0229\n\025se" + - "t_diff_graph_access\030\004 \001(\0132\030.lgraph.Proto" + - "GraphAccessH\000\022\020\n\006enable\030\005 \001(\010H\000\022\021\n\007disab" + - "le\030\006 \001(\010H\000B\010\n\006action\"\021\n\017ModRoleResponse\"" + - "\"\n\022GetRoleInfoRequest\022\014\n\004role\030\001 \002(\t\"b\n\rP" + - "rotoRoleInfo\022\023\n\013is_disabled\030\001 \002(\010\022\014\n\004des" + - "c\030\002 \002(\t\022.\n\014graph_access\030\003 \002(\0132\030.lgraph.P" + - "rotoGraphAccess\":\n\023GetRoleInfoResponse\022#" + - "\n\004info\030\001 \002(\0132\025.lgraph.ProtoRoleInfo\"\021\n\017L" + - "istRoleRequest\"\213\001\n\020ListRoleResponse\0222\n\005r" + - "oles\030\001 \003(\0132#.lgraph.ListRoleResponse.Rol" + - "esEntry\032C\n\nRolesEntry\022\013\n\003key\030\001 \001(\t\022$\n\005va" + - "lue\030\002 \001(\0132\025.lgraph.ProtoRoleInfo:\0028\001\"\340\004\n" + - "\nAclRequest\022+\n\014auth_request\030\001 \001(\0132\023.lgra" + - "ph.AuthRequestH\000\0222\n\020add_user_request\030\002 \001" + - "(\0132\026.lgraph.AddUserRequestH\000\0222\n\020mod_user" + - "_request\030\003 \001(\0132\026.lgraph.ModUserRequestH\000" + - "\0222\n\020del_user_request\030\004 \001(\0132\026.lgraph.DelU" + - "serRequestH\000\022<\n\026list_user_info_request\030\005" + - " \001(\0132\032.lgraph.GetUserInfoRequestH\000\0222\n\020ad" + - "d_role_request\030\006 \001(\0132\026.lgraph.AddRoleReq" + - "uestH\000\0222\n\020mod_role_request\030\007 \001(\0132\026.lgrap" + - "h.ModRoleRequestH\000\0222\n\020del_role_request\030\010" + - " \001(\0132\026.lgraph.DelRoleRequestH\000\022<\n\026list_r" + - "ole_info_request\030\t \001(\0132\032.lgraph.GetRoleI" + - "nfoRequestH\000\0224\n\021list_user_request\030\n \001(\0132" + - "\027.lgraph.ListUserRequestH\000\0224\n\021list_role_" + - "request\030\013 \001(\0132\027.lgraph.ListRoleRequestH\000" + - "B\005\n\003Req\"\370\004\n\013AclResponse\022-\n\rauth_response" + - "\030\001 \001(\0132\024.lgraph.AuthResponseH\000\0224\n\021add_us" + - "er_response\030\002 \001(\0132\027.lgraph.AddUserRespon" + - "seH\000\0224\n\021mod_user_response\030\003 \001(\0132\027.lgraph" + - ".ModUserResponseH\000\0224\n\021del_user_response\030" + - "\004 \001(\0132\027.lgraph.DelUserResponseH\000\022>\n\027list" + - "_user_info_response\030\005 \001(\0132\033.lgraph.GetUs" + - "erInfoResponseH\000\0224\n\021add_role_response\030\006 " + - "\001(\0132\027.lgraph.AddRoleResponseH\000\0224\n\021mod_ro" + - "le_response\030\007 \001(\0132\027.lgraph.ModRoleRespon" + - "seH\000\0224\n\021del_role_response\030\010 \001(\0132\027.lgraph" + - ".DelRoleResponseH\000\022>\n\027list_role_info_res" + - "ponse\030\t \001(\0132\033.lgraph.GetRoleInfoResponse" + - "H\000\0226\n\022list_user_response\030\n \001(\0132\030.lgraph." + - "ListUserResponseH\000\0226\n\022list_role_response" + - "\030\013 \001(\0132\030.lgraph.ListRoleResponseH\000B\006\n\004Re" + - "sp\"$\n\006Header\022\014\n\004name\030\001 \002(\t\022\014\n\004type\030\002 \002(\005" + - "\"m\n\014CypherResult\022\036\n\006header\030\001 \003(\0132\016.lgrap" + - "h.Header\022,\n\006result\030\002 \003(\0132\034.lgraph.ListOf" + - "ProtoFieldData\022\017\n\007elapsed\030\003 \002(\001\"\276\001\n\rCyph" + - "erRequest\022\r\n\005query\030\001 \002(\t\022\023\n\013param_names\030" + - "\002 \003(\t\0222\n\014param_values\030\003 \001(\0132\034.lgraph.Lis" + - "tOfProtoFieldData\022\035\n\025result_in_json_form" + - "at\030\004 \002(\010\022\r\n\005graph\030\005 \001(\t\022\017\n\007timeout\030\006 \001(\001" + - "\022\026\n\016per_node_limit\030\007 \001(\003\"`\n\016CypherRespon" + - "se\022\025\n\013json_result\030\001 \001(\tH\000\022-\n\rbinary_resu" + - "lt\030\002 \001(\0132\024.lgraph.CypherResultH\000B\010\n\006Resu" + - "lt\"o\n\rImportRequest\022\r\n\005graph\030\003 \002(\t\022\023\n\013de" + - "scription\030\004 \002(\t\022\014\n\004data\030\005 \002(\t\022\031\n\021continu" + - "e_on_error\030\006 \002(\010\022\021\n\tdelimiter\030\007 \002(\t\"4\n\016I" + - "mportResponse\022\013\n\003log\030\001 \001(\t\022\025\n\rerror_mess" + - "age\030\002 \001(\t\"3\n\rSchemaRequest\022\r\n\005graph\030\003 \002(" + - "\t\022\023\n\013description\030\004 \002(\t\"4\n\016SchemaResponse" + - "\022\013\n\003log\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\"U\n\021" + - "CallPluginRequest\022\014\n\004name\030\001 \002(\t\022\r\n\005param" + - "\030\002 \002(\014\022\017\n\007timeout\030\003 \001(\001\022\022\n\nin_process\030\004 " + - "\001(\010\"#\n\022CallPluginResponse\022\r\n\005reply\030\001 \002(\014" + - "\"\265\001\n\021LoadPluginRequest\022\014\n\004name\030\001 \002(\t\022\021\n\t" + - "read_only\030\002 \002(\010\022\014\n\004code\030\003 \002(\014\022\014\n\004desc\030\004 " + - "\001(\t\0225\n\tcode_type\030\005 \001(\0162\".lgraph.LoadPlug" + - "inRequest.CodeType\",\n\010CodeType\022\006\n\002PY\020\001\022\006" + - "\n\002SO\020\002\022\007\n\003CPP\020\003\022\007\n\003ZIP\020\004\"\024\n\022LoadPluginRe" + - "sponse\" \n\020DelPluginRequest\022\014\n\004name\030\001 \002(\t" + - "\"\023\n\021DelPluginResponse\"\023\n\021ListPluginReque" + - "st\"\024\n\022ListPluginResponse\"\336\002\n\rPluginReque" + - "st\022.\n\004type\030\001 \002(\0162 .lgraph.PluginRequest." + - "PluginType\0228\n\023load_plugin_request\030\002 \001(\0132" + - "\031.lgraph.LoadPluginRequestH\000\0226\n\022del_plug" + - "in_request\030\003 \001(\0132\030.lgraph.DelPluginReque" + - "stH\000\0228\n\023call_plugin_request\030\004 \001(\0132\031.lgra" + - "ph.CallPluginRequestH\000\0228\n\023list_plugin_re" + - "quest\030\005 \001(\0132\031.lgraph.ListPluginRequestH\000" + - "\022\r\n\005graph\030\006 \002(\t\"!\n\nPluginType\022\007\n\003CPP\020\001\022\n" + - "\n\006PYTHON\020\002B\005\n\003Req\"\206\002\n\016PluginResponse\022:\n\024" + - "load_plugin_response\030\001 \001(\0132\032.lgraph.Load" + - "PluginResponseH\000\0228\n\023del_plugin_response\030" + - "\002 \001(\0132\031.lgraph.DelPluginResponseH\000\022:\n\024ca" + - "ll_plugin_response\030\003 \001(\0132\032.lgraph.CallPl" + - "uginResponseH\000\022:\n\024list_plugin_response\030\004" + - " \001(\0132\032.lgraph.ListPluginResponseH\000B\006\n\004Re" + - "sp\"Y\n\020HeartbeatRequest\022\020\n\010rpc_addr\030\001 \002(\t" + - "\022\021\n\trest_addr\030\002 \002(\t\022 \n\005state\030\003 \002(\0162\021.lgr" + - "aph.NodeState\"\023\n\021HeartbeatResponse\"Q\n\010Pe" + - "erInfo\022\020\n\010rpc_addr\030\001 \002(\t\022\021\n\trest_addr\030\002 " + - "\002(\t\022 \n\005state\030\003 \002(\0162\021.lgraph.NodeState\"\022\n" + - "\020ListPeersRequest\"4\n\021ListPeersResponse\022\037" + - "\n\005peers\030\001 \003(\0132\020.lgraph.PeerInfo\"\022\n\020GetMa" + - "sterRequest\"5\n\021GetMasterResponse\022 \n\006mast" + - "er\030\001 \002(\0132\020.lgraph.PeerInfo\"\"\n\017SyncMetaRe" + - "quest\022\017\n\007confirm\030\001 \002(\t\"\037\n\020SyncMetaRespon" + - "se\022\013\n\003ret\030\001 \002(\005\"\357\001\n\tHARequest\0225\n\021heartbe" + - "at_request\030\001 \001(\0132\030.lgraph.HeartbeatReque" + - "stH\000\0226\n\022list_peers_request\030\002 \001(\0132\030.lgrap" + - "h.ListPeersRequestH\000\0226\n\022get_master_reque" + - "st\030\003 \001(\0132\030.lgraph.GetMasterRequestH\000\0224\n\021" + - "sync_meta_request\030\004 \001(\0132\027.lgraph.SyncMet" + - "aRequestH\000B\005\n\003Req\"\371\001\n\nHAResponse\0227\n\022hear" + - "tbeat_response\030\001 \001(\0132\031.lgraph.HeartbeatR" + - "esponseH\000\0228\n\023list_peers_response\030\002 \001(\0132\031" + - ".lgraph.ListPeersResponseH\000\0228\n\023get_maste" + - "r_response\030\003 \001(\0132\031.lgraph.GetMasterRespo" + - "nseH\000\0226\n\022sync_meta_response\030\004 \001(\0132\030.lgra" + - "ph.SyncMetaResponseH\000B\006\n\004Resp\"\301\004\n\rLGraph" + - "Request\022\026\n\016client_version\030\001 \001(\003\022\r\n\005token" + - "\030\002 \002(\t\022\023\n\013is_write_op\030\003 \001(\010\022\014\n\004user\030\004 \001(" + - "\t\0224\n\021graph_api_request\030\013 \001(\0132\027.lgraph.Gr" + - "aphApiRequestH\000\022/\n\016cypher_request\030\014 \001(\0132" + - "\025.lgraph.CypherRequestH\000\022/\n\016plugin_reque" + - "st\030\r \001(\0132\025.lgraph.PluginRequestH\000\022\'\n\nha_" + - "request\030\016 \001(\0132\021.lgraph.HARequestH\000\022/\n\016im" + - "port_request\030\017 \001(\0132\025.lgraph.ImportReques" + - "tH\000\022-\n\rgraph_request\030\021 \001(\0132\024.lgraph.Grap" + - "hRequestH\000\022)\n\013acl_request\030\022 \001(\0132\022.lgraph" + - ".AclRequestH\000\022/\n\016config_request\030\023 \001(\0132\025." + - "lgraph.ConfigRequestH\000\0221\n\017restore_reques" + - "t\030\024 \001(\0132\026.lgraph.RestoreRequestH\000\022/\n\016sch" + - "ema_request\030\025 \001(\0132\025.lgraph.SchemaRequest" + - "H\000B\005\n\003Req\"\355\005\n\016LGraphResponse\0224\n\nerror_co" + - "de\030\001 \002(\0162 .lgraph.LGraphResponse.ErrorCo" + - "de\022\020\n\010redirect\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\022\026\n\016s" + - "erver_version\030\004 \001(\003\0226\n\022graph_api_respons" + - "e\030\013 \001(\0132\030.lgraph.GraphApiResponseH\000\0221\n\017c" + - "ypher_response\030\014 \001(\0132\026.lgraph.CypherResp" + - "onseH\000\0221\n\017plugin_response\030\r \001(\0132\026.lgraph" + - ".PluginResponseH\000\022)\n\013ha_response\030\016 \001(\0132\022" + - ".lgraph.HAResponseH\000\0221\n\017import_response\030" + - "\017 \001(\0132\026.lgraph.ImportResponseH\000\022/\n\016graph" + - "_response\030\021 \001(\0132\025.lgraph.GraphResponseH\000" + - "\022+\n\014acl_response\030\022 \001(\0132\023.lgraph.AclRespo" + - "nseH\000\0221\n\017config_response\030\023 \001(\0132\026.lgraph." + - "ConfigResponseH\000\0223\n\020restore_response\030\024 \001" + - "(\0132\027.lgraph.RestoreResponseH\000\0221\n\017schema_" + - "response\030\025 \001(\0132\026.lgraph.SchemaResponseH\000" + - "\"o\n\tErrorCode\022\013\n\007SUCCESS\020\001\022\017\n\013BAD_REQUES" + - "T\020\002\022\016\n\nAUTH_ERROR\020\003\022\n\n\006KILLED\020\004\022\014\n\010REDIR" + - "ECT\020\005\022\n\n\006FAILED\020\006\022\016\n\tEXCEPTION\020\377\001B\006\n\004Res" + - "p\"Q\n\016BackupLogEntry\022\r\n\005index\030\001 \002(\003\022\014\n\004ti" + - "me\030\002 \002(\003\022\"\n\003req\030\003 \002(\0132\025.lgraph.LGraphReq" + - "uest\"6\n\016RestoreRequest\022$\n\004logs\030\001 \003(\0132\026.l" + - "graph.BackupLogEntry\"+\n\017RestoreResponse\022" + - "\030\n\020last_success_idx\030\001 \002(\003\"\261\001\n\nLogMessage" + - "\022\r\n\005index\030\001 \002(\003\022\014\n\004time\030\002 \002(\003\022\021\n\tbegin_e" + - "nd\030\003 \002(\010\022\014\n\004user\030\004 \001(\t\022\r\n\005graph\030\005 \001(\t\022 \n" + - "\004type\030\006 \001(\0162\022.lgraph.LogApiType\022\022\n\nread_" + - "write\030\007 \001(\010\022\017\n\007success\030\010 \001(\010\022\017\n\007content\030" + - "\t \001(\t*\223\001\n\016ProtoFieldType\022\007\n\003NUL\020\000\022\010\n\004BOO" + - "L\020\001\022\010\n\004INT8\020\002\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005I" + - "NT64\020\005\022\t\n\005FLOAT\020\006\022\n\n\006DOUBLE\020\007\022\010\n\004DATE\020\010\022" + - "\014\n\010DATETIME\020\t\022\n\n\006STRING\020\n\022\010\n\004BLOB\020\013*E\n\020P" + - "rotoAccessLevel\022\010\n\004NONE\020\000\022\r\n\tREAD_ONLY\020\001" + - "\022\016\n\nREAD_WRITE\020\002\022\010\n\004FULL\020\003*z\n\tNodeState\022" + - "\021\n\rUNINITIALIZED\020\001\022\024\n\020LOADING_SNAPSHOT\020\002" + - "\022\021\n\rREPLAYING_LOG\020\003\022\021\n\rJOINED_FOLLOW\020\004\022\021" + - "\n\rJOINED_MASTER\020\005\022\013\n\007OFFLINE\020\006*A\n\nLogApi" + - "Type\022\r\n\tSingleApi\020\000\022\014\n\010Security\020\001\022\n\n\006Plu" + - "gin\020\002\022\n\n\006Cypher\020\0032R\n\020LGraphRPCService\022>\n" + - "\rHandleRequest\022\025.lgraph.LGraphRequest\032\026." + - "lgraph.LGraphResponseB\003\200\001\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_lgraph_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_lgraph_Snapshot_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_Snapshot_descriptor, - new java.lang.String[] { "Value", }); - internal_static_lgraph_ProtoFieldData_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_lgraph_ProtoFieldData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoFieldData_descriptor, - new java.lang.String[] { "Boolean", "Int8", "Int16", "Int32", "Int64", "Sp", "Dp", "Date", "Datetime", "Str", "Blob", "Data", }); - internal_static_lgraph_ListOfProtoFieldData_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_lgraph_ListOfProtoFieldData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListOfProtoFieldData_descriptor, - new java.lang.String[] { "Values", }); - internal_static_lgraph_ProtoFieldSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_lgraph_ProtoFieldSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoFieldSpec_descriptor, - new java.lang.String[] { "Name", "Type", "Nullable", }); - internal_static_lgraph_ProtoIndexSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_lgraph_ProtoIndexSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoIndexSpec_descriptor, - new java.lang.String[] { "Label", "Field", "Unique", }); - internal_static_lgraph_SrcDstFieldValues_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_lgraph_SrcDstFieldValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SrcDstFieldValues_descriptor, - new java.lang.String[] { "Src", "Dst", "Values", }); - internal_static_lgraph_Property_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_lgraph_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_Property_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_lgraph_EdgeConstraint_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_lgraph_EdgeConstraint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_EdgeConstraint_descriptor, - new java.lang.String[] { "SrcLabel", "DstLabel", }); - internal_static_lgraph_AddLabelRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_lgraph_AddLabelRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddLabelRequest_descriptor, - new java.lang.String[] { "IsVertex", "Label", "Primary", "TidOrder", "EdgeConstraints", "Fields", }); - internal_static_lgraph_AddLabelResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_lgraph_AddLabelResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddLabelResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_lgraph_ListLabelsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListLabelsRequest_descriptor, - new java.lang.String[] { "IsVertex", }); - internal_static_lgraph_ListLabelsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_lgraph_ListLabelsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListLabelsResponse_descriptor, - new java.lang.String[] { "Labels", }); - internal_static_lgraph_GetLabelRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_lgraph_GetLabelRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetLabelRequest_descriptor, - new java.lang.String[] { "IsVertex", }); - internal_static_lgraph_GetLabelResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_lgraph_GetLabelResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetLabelResponse_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_lgraph_AddIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_lgraph_AddIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddIndexRequest_descriptor, - new java.lang.String[] { "Label", "Field", "IsUnique", }); - internal_static_lgraph_AddIndexResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_lgraph_AddIndexResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddIndexResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_DelIndexRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_lgraph_DelIndexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelIndexRequest_descriptor, - new java.lang.String[] { "Label", "Field", }); - internal_static_lgraph_DelIndexResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_lgraph_DelIndexResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelIndexResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_AddVertexesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_lgraph_AddVertexesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddVertexesRequest_descriptor, - new java.lang.String[] { "Label", "Fields", "Vertexes", }); - internal_static_lgraph_AddVertexesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_lgraph_AddVertexesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddVertexesResponse_descriptor, - new java.lang.String[] { "Vid", }); - internal_static_lgraph_DelVertexRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_lgraph_DelVertexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelVertexRequest_descriptor, - new java.lang.String[] { "Vid", }); - internal_static_lgraph_DelVertexResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_lgraph_DelVertexResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelVertexResponse_descriptor, - new java.lang.String[] { "NIns", "NOuts", }); - internal_static_lgraph_ModVertexRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_lgraph_ModVertexRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModVertexRequest_descriptor, - new java.lang.String[] { "Vid", "Label", "Fields", "Values", }); - internal_static_lgraph_ModVertexResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_lgraph_ModVertexResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModVertexResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_AddEdgesRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_lgraph_AddEdgesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddEdgesRequest_descriptor, - new java.lang.String[] { "Label", "Fields", "Edges", }); - internal_static_lgraph_AddEdgesResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_lgraph_AddEdgesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddEdgesResponse_descriptor, - new java.lang.String[] { "Lid", "Tid", "Eids", }); - internal_static_lgraph_DelEdgeRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_lgraph_DelEdgeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelEdgeRequest_descriptor, - new java.lang.String[] { "Src", "Tid", "Lid", "Dst", "Eid", }); - internal_static_lgraph_DelEdgeResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_lgraph_DelEdgeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelEdgeResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ModEdgeRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_lgraph_ModEdgeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModEdgeRequest_descriptor, - new java.lang.String[] { "Src", "Tid", "Lid", "Dst", "Eid", "Fields", "Values", }); - internal_static_lgraph_ModEdgeResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_lgraph_ModEdgeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModEdgeResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_FlushRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_lgraph_FlushRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_FlushRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_FlushResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_lgraph_FlushResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_FlushResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_SubGraphRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_lgraph_SubGraphRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SubGraphRequest_descriptor, - new java.lang.String[] { "Vids", }); - internal_static_lgraph_VertexData_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_lgraph_VertexData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_VertexData_descriptor, - new java.lang.String[] { "Vid", "Label", "Properties", }); - internal_static_lgraph_EdgeData_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_lgraph_EdgeData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_EdgeData_descriptor, - new java.lang.String[] { "Src", "Tid", "Lid", "Dst", "Eid", "Label", "Properties", }); - internal_static_lgraph_SubGraphResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_lgraph_SubGraphResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SubGraphResponse_descriptor, - new java.lang.String[] { "Nodes", "Edges", }); - internal_static_lgraph_GraphApiRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_lgraph_GraphApiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GraphApiRequest_descriptor, - new java.lang.String[] { "AddLabelRequest", "AddIndexRequest", "AddVertexesRequest", "AddEdgesRequest", "DelIndexRequest", "DelVertexRequest", "DelEdgeRequest", "ModVertexRequest", "ModEdgeRequest", "SubGraphRequest", "FlushRequest", "Graph", "Req", }); - internal_static_lgraph_GraphApiResponse_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_lgraph_GraphApiResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GraphApiResponse_descriptor, - new java.lang.String[] { "AddLabelResponse", "AddIndexResponse", "AddVertexesResponse", "AddEdgesResponse", "DelIndexResponse", "DelVertexResponse", "DelEdgeResponse", "ModVertexResponse", "ModEdgeResponse", "SubGraphResponse", "FlushResponse", "Resp", }); - internal_static_lgraph_ModConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_lgraph_ModConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModConfigRequest_descriptor, - new java.lang.String[] { "Keys", "Values", }); - internal_static_lgraph_ModConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_lgraph_ModConfigResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModConfigResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_lgraph_ConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ConfigRequest_descriptor, - new java.lang.String[] { "ModConfigRequest", "Req", }); - internal_static_lgraph_ConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_lgraph_ConfigResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ConfigResponse_descriptor, - new java.lang.String[] { "ModConfigResponse", "Resp", }); - internal_static_lgraph_ProtoDBConfig_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_lgraph_ProtoDBConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoDBConfig_descriptor, - new java.lang.String[] { "DbSize", "Async", "Desc", }); - internal_static_lgraph_AddGraphRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_lgraph_AddGraphRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddGraphRequest_descriptor, - new java.lang.String[] { "Name", "Config", }); - internal_static_lgraph_AddGraphResponse_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_lgraph_AddGraphResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddGraphResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_DeleteGraphRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_lgraph_DeleteGraphRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DeleteGraphRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_lgraph_DeleteGraphResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_lgraph_DeleteGraphResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DeleteGraphResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListGraphsRequest_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_lgraph_ListGraphsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListGraphsRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListGraphsResponse_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_lgraph_ListGraphsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListGraphsResponse_descriptor, - new java.lang.String[] { "Names", "Configs", }); - internal_static_lgraph_GraphRequest_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_lgraph_GraphRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GraphRequest_descriptor, - new java.lang.String[] { "AddGraphRequest", "DeleteGraphRequest", "ListGraphsRequest", "Req", }); - internal_static_lgraph_GraphResponse_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_lgraph_GraphResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GraphResponse_descriptor, - new java.lang.String[] { "AddGraphResponse", "DeleteGraphResponse", "ListGraphsResponse", "Resp", }); - internal_static_lgraph_AuthRequest_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_lgraph_AuthRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AuthRequest_descriptor, - new java.lang.String[] { "Login", "Logout", "Action", }); - internal_static_lgraph_LoginRequest_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_lgraph_LoginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LoginRequest_descriptor, - new java.lang.String[] { "User", "Password", }); - internal_static_lgraph_LogoutRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_lgraph_LogoutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LogoutRequest_descriptor, - new java.lang.String[] { "Token", }); - internal_static_lgraph_AuthResponse_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_lgraph_AuthResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AuthResponse_descriptor, - new java.lang.String[] { "Token", }); - internal_static_lgraph_AddUserRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_lgraph_AddUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddUserRequest_descriptor, - new java.lang.String[] { "User", "Password", "AuthMethod", "Desc", }); - internal_static_lgraph_AddUserResponse_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_lgraph_AddUserResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddUserResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListOfString_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_lgraph_ListOfString_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListOfString_descriptor, - new java.lang.String[] { "Values", }); - internal_static_lgraph_SetPasswordParam_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_lgraph_SetPasswordParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SetPasswordParam_descriptor, - new java.lang.String[] { "OldPass", "NewPass", }); - internal_static_lgraph_ModUserRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_lgraph_ModUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModUserRequest_descriptor, - new java.lang.String[] { "User", "SetPassword", "SetRoles", "AddRoles", "DelRoles", "Enable", "Disable", "SetDesc", "Action", }); - internal_static_lgraph_ModUserResponse_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_lgraph_ModUserResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModUserResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_DelUserRequest_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_lgraph_DelUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelUserRequest_descriptor, - new java.lang.String[] { "User", }); - internal_static_lgraph_DelUserResponse_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_lgraph_DelUserResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelUserResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_GetUserInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_lgraph_GetUserInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetUserInfoRequest_descriptor, - new java.lang.String[] { "User", }); - internal_static_lgraph_ProtoUserInfo_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_lgraph_ProtoUserInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoUserInfo_descriptor, - new java.lang.String[] { "IsDisabled", "Roles", "AuthMethod", }); - internal_static_lgraph_GetUserInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_lgraph_GetUserInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetUserInfoResponse_descriptor, - new java.lang.String[] { "Info", }); - internal_static_lgraph_ListUserRequest_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_lgraph_ListUserRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListUserRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListUserResponse_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_lgraph_ListUserResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListUserResponse_descriptor, - new java.lang.String[] { "Users", }); - internal_static_lgraph_ListUserResponse_UsersEntry_descriptor = - internal_static_lgraph_ListUserResponse_descriptor.getNestedTypes().get(0); - internal_static_lgraph_ListUserResponse_UsersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListUserResponse_UsersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_lgraph_ProtoGraphAccess_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_lgraph_ProtoGraphAccess_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoGraphAccess_descriptor, - new java.lang.String[] { "Values", }); - internal_static_lgraph_ProtoGraphAccess_ValuesEntry_descriptor = - internal_static_lgraph_ProtoGraphAccess_descriptor.getNestedTypes().get(0); - internal_static_lgraph_ProtoGraphAccess_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoGraphAccess_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_lgraph_AddRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_lgraph_AddRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddRoleRequest_descriptor, - new java.lang.String[] { "Role", "Desc", }); - internal_static_lgraph_AddRoleResponse_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_lgraph_AddRoleResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AddRoleResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_DelRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_lgraph_DelRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelRoleRequest_descriptor, - new java.lang.String[] { "Role", }); - internal_static_lgraph_DelRoleResponse_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_lgraph_DelRoleResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelRoleResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ModRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_lgraph_ModRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModRoleRequest_descriptor, - new java.lang.String[] { "Role", "ModDesc", "SetFullGraphAccess", "SetDiffGraphAccess", "Enable", "Disable", "Action", }); - internal_static_lgraph_ModRoleResponse_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_lgraph_ModRoleResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ModRoleResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_GetRoleInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_lgraph_GetRoleInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetRoleInfoRequest_descriptor, - new java.lang.String[] { "Role", }); - internal_static_lgraph_ProtoRoleInfo_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_lgraph_ProtoRoleInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ProtoRoleInfo_descriptor, - new java.lang.String[] { "IsDisabled", "Desc", "GraphAccess", }); - internal_static_lgraph_GetRoleInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_lgraph_GetRoleInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetRoleInfoResponse_descriptor, - new java.lang.String[] { "Info", }); - internal_static_lgraph_ListRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_lgraph_ListRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListRoleRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListRoleResponse_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_lgraph_ListRoleResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListRoleResponse_descriptor, - new java.lang.String[] { "Roles", }); - internal_static_lgraph_ListRoleResponse_RolesEntry_descriptor = - internal_static_lgraph_ListRoleResponse_descriptor.getNestedTypes().get(0); - internal_static_lgraph_ListRoleResponse_RolesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListRoleResponse_RolesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_lgraph_AclRequest_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_lgraph_AclRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AclRequest_descriptor, - new java.lang.String[] { "AuthRequest", "AddUserRequest", "ModUserRequest", "DelUserRequest", "ListUserInfoRequest", "AddRoleRequest", "ModRoleRequest", "DelRoleRequest", "ListRoleInfoRequest", "ListUserRequest", "ListRoleRequest", "Req", }); - internal_static_lgraph_AclResponse_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_lgraph_AclResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_AclResponse_descriptor, - new java.lang.String[] { "AuthResponse", "AddUserResponse", "ModUserResponse", "DelUserResponse", "ListUserInfoResponse", "AddRoleResponse", "ModRoleResponse", "DelRoleResponse", "ListRoleInfoResponse", "ListUserResponse", "ListRoleResponse", "Resp", }); - internal_static_lgraph_Header_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_lgraph_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_Header_descriptor, - new java.lang.String[] { "Name", "Type", }); - internal_static_lgraph_CypherResult_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_lgraph_CypherResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_CypherResult_descriptor, - new java.lang.String[] { "Header", "Result", "Elapsed", }); - internal_static_lgraph_CypherRequest_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_lgraph_CypherRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_CypherRequest_descriptor, - new java.lang.String[] { "Query", "ParamNames", "ParamValues", "ResultInJsonFormat", "Graph", "Timeout", "PerNodeLimit", }); - internal_static_lgraph_CypherResponse_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_lgraph_CypherResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_CypherResponse_descriptor, - new java.lang.String[] { "JsonResult", "BinaryResult", "Result", }); - internal_static_lgraph_ImportRequest_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_lgraph_ImportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ImportRequest_descriptor, - new java.lang.String[] { "Graph", "Description", "Data", "ContinueOnError", "Delimiter", }); - internal_static_lgraph_ImportResponse_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_lgraph_ImportResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ImportResponse_descriptor, - new java.lang.String[] { "Log", "ErrorMessage", }); - internal_static_lgraph_SchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_lgraph_SchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SchemaRequest_descriptor, - new java.lang.String[] { "Graph", "Description", }); - internal_static_lgraph_SchemaResponse_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_lgraph_SchemaResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SchemaResponse_descriptor, - new java.lang.String[] { "Log", "ErrorMessage", }); - internal_static_lgraph_CallPluginRequest_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_lgraph_CallPluginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_CallPluginRequest_descriptor, - new java.lang.String[] { "Name", "Param", "Timeout", "InProcess", }); - internal_static_lgraph_CallPluginResponse_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_lgraph_CallPluginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_CallPluginResponse_descriptor, - new java.lang.String[] { "Reply", }); - internal_static_lgraph_LoadPluginRequest_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_lgraph_LoadPluginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LoadPluginRequest_descriptor, - new java.lang.String[] { "Name", "ReadOnly", "Code", "Desc", "CodeType", }); - internal_static_lgraph_LoadPluginResponse_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_lgraph_LoadPluginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LoadPluginResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_DelPluginRequest_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_lgraph_DelPluginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelPluginRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_lgraph_DelPluginResponse_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_lgraph_DelPluginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_DelPluginResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListPluginRequest_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_lgraph_ListPluginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListPluginRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListPluginResponse_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_lgraph_ListPluginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListPluginResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_PluginRequest_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_lgraph_PluginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_PluginRequest_descriptor, - new java.lang.String[] { "Type", "LoadPluginRequest", "DelPluginRequest", "CallPluginRequest", "ListPluginRequest", "Graph", "Req", }); - internal_static_lgraph_PluginResponse_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_lgraph_PluginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_PluginResponse_descriptor, - new java.lang.String[] { "LoadPluginResponse", "DelPluginResponse", "CallPluginResponse", "ListPluginResponse", "Resp", }); - internal_static_lgraph_HeartbeatRequest_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_lgraph_HeartbeatRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_HeartbeatRequest_descriptor, - new java.lang.String[] { "RpcAddr", "RestAddr", "State", }); - internal_static_lgraph_HeartbeatResponse_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_lgraph_HeartbeatResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_HeartbeatResponse_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_PeerInfo_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_lgraph_PeerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_PeerInfo_descriptor, - new java.lang.String[] { "RpcAddr", "RestAddr", "State", }); - internal_static_lgraph_ListPeersRequest_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_lgraph_ListPeersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListPeersRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_ListPeersResponse_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_lgraph_ListPeersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_ListPeersResponse_descriptor, - new java.lang.String[] { "Peers", }); - internal_static_lgraph_GetMasterRequest_descriptor = - getDescriptor().getMessageTypes().get(105); - internal_static_lgraph_GetMasterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetMasterRequest_descriptor, - new java.lang.String[] { }); - internal_static_lgraph_GetMasterResponse_descriptor = - getDescriptor().getMessageTypes().get(106); - internal_static_lgraph_GetMasterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_GetMasterResponse_descriptor, - new java.lang.String[] { "Master", }); - internal_static_lgraph_SyncMetaRequest_descriptor = - getDescriptor().getMessageTypes().get(107); - internal_static_lgraph_SyncMetaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SyncMetaRequest_descriptor, - new java.lang.String[] { "Confirm", }); - internal_static_lgraph_SyncMetaResponse_descriptor = - getDescriptor().getMessageTypes().get(108); - internal_static_lgraph_SyncMetaResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_SyncMetaResponse_descriptor, - new java.lang.String[] { "Ret", }); - internal_static_lgraph_HARequest_descriptor = - getDescriptor().getMessageTypes().get(109); - internal_static_lgraph_HARequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_HARequest_descriptor, - new java.lang.String[] { "HeartbeatRequest", "ListPeersRequest", "GetMasterRequest", "SyncMetaRequest", "Req", }); - internal_static_lgraph_HAResponse_descriptor = - getDescriptor().getMessageTypes().get(110); - internal_static_lgraph_HAResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_HAResponse_descriptor, - new java.lang.String[] { "HeartbeatResponse", "ListPeersResponse", "GetMasterResponse", "SyncMetaResponse", "Resp", }); - internal_static_lgraph_LGraphRequest_descriptor = - getDescriptor().getMessageTypes().get(111); - internal_static_lgraph_LGraphRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LGraphRequest_descriptor, - new java.lang.String[] { "ClientVersion", "Token", "IsWriteOp", "User", "GraphApiRequest", "CypherRequest", "PluginRequest", "HaRequest", "ImportRequest", "GraphRequest", "AclRequest", "ConfigRequest", "RestoreRequest", "SchemaRequest", "Req", }); - internal_static_lgraph_LGraphResponse_descriptor = - getDescriptor().getMessageTypes().get(112); - internal_static_lgraph_LGraphResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LGraphResponse_descriptor, - new java.lang.String[] { "ErrorCode", "Redirect", "Error", "ServerVersion", "GraphApiResponse", "CypherResponse", "PluginResponse", "HaResponse", "ImportResponse", "GraphResponse", "AclResponse", "ConfigResponse", "RestoreResponse", "SchemaResponse", "Resp", }); - internal_static_lgraph_BackupLogEntry_descriptor = - getDescriptor().getMessageTypes().get(113); - internal_static_lgraph_BackupLogEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_BackupLogEntry_descriptor, - new java.lang.String[] { "Index", "Time", "Req", }); - internal_static_lgraph_RestoreRequest_descriptor = - getDescriptor().getMessageTypes().get(114); - internal_static_lgraph_RestoreRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_RestoreRequest_descriptor, - new java.lang.String[] { "Logs", }); - internal_static_lgraph_RestoreResponse_descriptor = - getDescriptor().getMessageTypes().get(115); - internal_static_lgraph_RestoreResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_RestoreResponse_descriptor, - new java.lang.String[] { "LastSuccessIdx", }); - internal_static_lgraph_LogMessage_descriptor = - getDescriptor().getMessageTypes().get(116); - internal_static_lgraph_LogMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_lgraph_LogMessage_descriptor, - new java.lang.String[] { "Index", "Time", "BeginEnd", "User", "Graph", "Type", "ReadWrite", "Success", "Content", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tugraph/src/main/java/org/ldbcouncil/finbench/impls/tugraph/TuGraphTransactionDb.java b/tugraph/src/main/java/org/ldbcouncil/finbench/impls/tugraph/TuGraphTransactionDb.java index 5459ac4..a082a56 100644 --- a/tugraph/src/main/java/org/ldbcouncil/finbench/impls/tugraph/TuGraphTransactionDb.java +++ b/tugraph/src/main/java/org/ldbcouncil/finbench/impls/tugraph/TuGraphTransactionDb.java @@ -103,7 +103,7 @@ public void executeOperation(ComplexRead1 cr1, TuGraphDbConnectionState dbConnec ResultReporter resultReporter) throws DbException { try { TuGraphDbRpcClient client = dbConnectionState.popClient(); - String cypher = "MATCH p = (acc:Account {id:%d})-[e1:transfer *1..3]->(other:Account)<-[e2:signIn]-(medium) WHERE isAsc(relationships(e1, 'timestamp'))=true AND head(relationships(e1, 'timestamp')) > %d AND last(relationships(e1, 'timestamp')) < %d AND e2.timestamp > %d AND e2.timestamp < %d AND medium.isBlocked = true RETURN DISTINCT other.id as otherId, length(p)-1 as accountDistance, medium.id as mediumId, medium.type as mediumType ORDER BY accountDistance, otherId, mediumId;"; + String cypher = "MATCH p = (acc:Account {id:%d})-[e1:transfer *1..3]->(other:Account)<-[e2:signIn]-(medium) WHERE isAsc(getMemberProp(e1, 'timestamp'))=true AND head(getMemberProp(e1, 'timestamp')) > %d AND last(getMemberProp(e1, 'timestamp')) < %d AND e2.timestamp > %d AND e2.timestamp < %d AND medium.isBlocked = true RETURN DISTINCT other.id as otherId, length(p)-1 as accountDistance, medium.id as mediumId, medium.type as mediumType ORDER BY accountDistance, otherId, mediumId;"; long startTime = cr1.getStartTime().getTime(); long endTime = cr1.getEndTime().getTime(); cypher = String.format( @@ -137,7 +137,7 @@ public void executeOperation(ComplexRead2 cr2, TuGraphDbConnectionState dbConnec ResultReporter resultReporter) throws DbException { try { TuGraphDbRpcClient client = dbConnectionState.popClient(); - String cypher = "MATCH (p:Person {id:%d})-[e1:own]->(acc:Account) <-[e2:transfer*1..3]-(other:Account) WHERE isDesc(relationships(e2, 'timestamp'))=true AND head(relationships(e2, 'timestamp')) < %d AND last(relationships(e2, 'timestamp')) > %d WITH DISTINCT other MATCH (other)<-[e3:deposit]-(loan:Loan) WHERE e3.timestamp > %d AND e3.timestamp < %d WITH DISTINCT other.id AS otherId, loan.loanAmount AS loanAmount, loan.balance AS loanBalance WITH otherId AS otherId, sum(loanAmount) as sumLoanAmount, sum(loanBalance) as sumLoanBalance RETURN otherId, round(sumLoanAmount * 1000) / 1000 as sumLoanAmount, round(sumLoanBalance * 1000) / 1000 as sumLoanBalance ORDER BY sumLoanAmount DESC, otherId ASC;"; + String cypher = "MATCH (p:Person {id:%d})-[e1:own]->(acc:Account) <-[e2:transfer*1..3]-(other:Account) WHERE isDesc(getMemberProp(e2, 'timestamp'))=true AND head(getMemberProp(e2, 'timestamp')) < %d AND last(getMemberProp(e2, 'timestamp')) > %d WITH DISTINCT other MATCH (other)<-[e3:deposit]-(loan:Loan) WHERE e3.timestamp > %d AND e3.timestamp < %d WITH DISTINCT other.id AS otherId, loan.loanAmount AS loanAmount, loan.balance AS loanBalance WITH otherId AS otherId, sum(loanAmount) as sumLoanAmount, sum(loanBalance) as sumLoanBalance RETURN otherId, round(sumLoanAmount * 1000) / 1000 as sumLoanAmount, round(sumLoanBalance * 1000) / 1000 as sumLoanBalance ORDER BY sumLoanAmount DESC, otherId ASC;"; long startTime = cr2.getStartTime().getTime(); long endTime = cr2.getEndTime().getTime(); cypher = String.format( @@ -169,7 +169,7 @@ public void executeOperation(ComplexRead3 cr3, TuGraphDbConnectionState dbConnec ResultReporter resultReporter) throws DbException { try { TuGraphDbRpcClient client = dbConnectionState.popClient(); - String cypher = "MATCH (src:Account{id:%d}), (dst:Account{id:%d}) CALL algo.shortestPath( src, dst, { relationshipQuery:'transfer', edgeFilter: { timestamp: { smaller_than: %d, greater_than: %d } } } ) YIELD nodeCount RETURN nodeCount - 1 AS len;"; + String cypher = "MATCH (src:Account{id:%d}), (dst:Account{id:%d}) CALL algo.shortestPath( src, dst, { direction: 'PointingRight', relationshipQuery:'transfer', edgeFilter: { timestamp: { smaller_than: %d, greater_than: %d } } } ) YIELD nodeCount RETURN nodeCount - 1 AS len;"; long startTime = cr3.getStartTime().getTime(); long endTime = cr3.getEndTime().getTime(); cypher = String.format( @@ -236,7 +236,7 @@ public void executeOperation(ComplexRead5 cr5, TuGraphDbConnectionState dbConnec ResultReporter resultReporter) throws DbException { try { TuGraphDbRpcClient client = dbConnectionState.popClient(); - String cypher = "MATCH (person:Person {id:%d})-[e1:own]->(src:Account) WITH src MATCH p=(src)-[e2:transfer*1..3]->(dst:Account) WHERE isAsc(relationships(e2, 'timestamp'))=true AND head(relationships(e2, 'timestamp')) > %d AND last(relationships(e2, 'timestamp')) < %d WITH DISTINCT nodes(p, 'id') as path, length(p) as len ORDER BY len DESC WHERE hasDuplicates(path)=false RETURN path;"; + String cypher = "MATCH (person:Person {id:%d})-[e1:own]->(src:Account) WITH src MATCH p=(src)-[e2:transfer*1..3]->(dst:Account) WHERE isAsc(getMemberProp(e2, 'timestamp'))=true AND head(getMemberProp(e2, 'timestamp')) > %d AND last(getMemberProp(e2, 'timestamp')) < %d WITH DISTINCT getMemberProp(nodes(p), 'id') as path, length(p) as len ORDER BY len DESC WHERE hasDuplicates(path)=false RETURN path;"; long startTime = cr5.getStartTime().getTime(); long endTime = cr5.getEndTime().getTime(); cypher = String.format( @@ -437,7 +437,7 @@ public void executeOperation(ComplexRead11 cr11, TuGraphDbConnectionState dbConn ResultReporter resultReporter) throws DbException { try { TuGraphDbRpcClient client = dbConnectionState.popClient(); - String cypher = "MATCH (p1:Person {id:%d})-[edge:guarantee*1..5]->(pN:Person) -[:apply]->(loan:Loan) WHERE minInList(relationships(edge, 'timestamp')) > %d AND maxInList(relationships(edge, 'timestamp')) < %d WITH DISTINCT loan WITH sum(loan.loanAmount) as sumLoanAmount, count(distinct loan) as numLoans RETURN round(sumLoanAmount * 1000) / 1000 as sumLoanAmount, numLoans;"; + String cypher = "MATCH (p1:Person {id:%d})-[edge:guarantee*1..5]->(pN:Person) -[:apply]->(loan:Loan) WHERE minInList(getMemberProp(edge, 'timestamp')) > %d AND maxInList(getMemberProp(edge, 'timestamp')) < %d WITH DISTINCT loan WITH sum(loan.loanAmount) as sumLoanAmount, count(distinct loan) as numLoans RETURN round(sumLoanAmount * 1000) / 1000 as sumLoanAmount, numLoans;"; long startTime = cr11.getStartTime().getTime(); long endTime = cr11.getEndTime().getTime(); cypher = String.format( diff --git a/tugraph/src/main/proto/lgraph.proto b/tugraph/src/main/proto/lgraph.proto new file mode 100644 index 0000000..f3c3e45 --- /dev/null +++ b/tugraph/src/main/proto/lgraph.proto @@ -0,0 +1,791 @@ +// =============================================================== +// Proto version: 1.2.0 +// Increment the version number if the proto definition is updated +// =============================================================== +syntax="proto2"; +package lgraph; +option cc_generic_services = true; + +message Snapshot { + required int64 value = 1; +}; + +enum ProtoFieldType { + NUL = 0; + BOOL = 1; + INT8 = 2; + INT16 = 3; + INT32 = 4; + INT64 = 5; + FLOAT = 6; + DOUBLE = 7; + DATE = 8; + DATETIME = 9; + STRING = 10; + BLOB = 11; +}; + +enum ProtoAccessLevel { +// DO NOT change the value of the enums, we are relying on them + NONE = 0; + READ_ONLY = 1; + READ_WRITE = 2; + FULL = 3; +}; + +message ProtoFieldData { + oneof Data { + bool boolean = 1; + int32 int8_ = 2; + int32 int16_ = 3; + int32 int32_ = 4; + int64 int64_ = 5; + float sp = 6; + double dp = 7; + int32 date = 8; + int64 datetime = 9; + string str = 10; + bytes blob = 11; + } +}; + +message ListOfProtoFieldData { + repeated ProtoFieldData values = 1; +}; + +message ProtoFieldSpec { + required string name = 1; + required ProtoFieldType type = 2; + required bool nullable = 3; +}; + +message ProtoIndexSpec { + required string label = 1; + required string field = 2; + required bool unique = 3; +}; + +message SrcDstFieldValues { + required int64 src = 1; + required int64 dst = 2; + required ListOfProtoFieldData values = 3; +}; + +message Property { + required string key = 1; + required ProtoFieldData value = 2; +}; + +//-------------------------------- +// graph apis +//-------------------------------- +// label + +message EdgeConstraint { + required string src_label = 1; + required string dst_label = 2; +} + +message AddLabelRequest { + required bool is_vertex = 1; + required string label = 2; + optional string primary = 3; + repeated EdgeConstraint edge_constraints = 4; + repeated ProtoFieldSpec fields = 5; +}; + +message AddLabelResponse {}; + +message ListLabelsRequest { + required bool is_vertex = 1; +}; +message ListLabelsResponse { + repeated string labels = 1; +}; + +message GetLabelRequest { + required bool is_vertex = 1; +}; +message GetLabelResponse { + repeated ProtoFieldSpec fields = 1; +}; + +// index +message AddIndexRequest { + required string label = 1; + required string field = 2; + required bool is_unique = 3; +}; + +message AddIndexResponse {}; + +message DelIndexRequest { + required string label = 1; + required string field = 2; +}; + +message DelIndexResponse {}; + +// vertex +message AddVertexesRequest { + required string label = 1; + repeated string fields = 2; + repeated ListOfProtoFieldData vertexes = 3; // list of vector, each for one vertex +}; +message AddVertexesResponse { + repeated int64 vid = 1; // returns list of vids of each vertex if successful, otherwise -1 +}; + +message DelVertexRequest { + required int64 vid = 1; +}; + +message DelVertexResponse { + required int64 n_ins = 1; + required int64 n_outs = 2; +}; + +message ModVertexRequest { + required int64 vid = 1; + optional string label = 2; // if label not set, then + repeated string fields = 3; + required ListOfProtoFieldData values = 4; +}; + +message ModVertexResponse {}; + +// edge +message AddEdgesRequest { + required string label = 1; + repeated string fields = 2; + repeated SrcDstFieldValues edges = 3; +}; +message AddEdgesResponse { + required int64 lid = 1; + required int64 tid = 2; + repeated int64 eids = 3; +}; + +message DelEdgeRequest { + required int64 src = 1; + required int64 tid = 2; + required int64 lid = 3; + required int64 dst = 4; + required int64 eid = 5; +}; + +message DelEdgeResponse {}; + +message ModEdgeRequest { + required int64 src = 1; + required int64 tid = 2; + required int64 lid = 3; + required int64 dst = 4; + required int64 eid = 5; + repeated string fields = 6; + required ListOfProtoFieldData values = 7; +}; +message ModEdgeResponse {}; + +// flush +message FlushRequest {}; +message FlushResponse {}; + +message SubGraphRequest { + repeated int64 vids = 1; +}; + +message VertexData { + required int64 vid = 1; + required string label = 2; + repeated Property properties = 3; +}; + +message EdgeData { + required int64 src = 1; + required int64 tid = 2; + required int64 lid = 3; + required int64 dst = 4; + required int64 eid = 5; + required string label = 6; + repeated Property properties = 7; +}; + +message SubGraphResponse { + repeated VertexData nodes = 1; + repeated EdgeData edges = 2; +}; + +// native requests and responses +message GraphApiRequest { + oneof Req { + AddLabelRequest add_label_request = 1; + AddIndexRequest add_index_request = 2; + AddVertexesRequest add_vertexes_request = 3; + AddEdgesRequest add_edges_request = 4; + DelIndexRequest del_index_request = 5; + DelVertexRequest del_vertex_request = 6; + DelEdgeRequest del_edge_request = 7; + ModVertexRequest mod_vertex_request = 8; + ModEdgeRequest mod_edge_request = 9; + SubGraphRequest sub_graph_request = 10; + FlushRequest flush_request = 11; + }; + required string graph = 12; +}; +message GraphApiResponse { + oneof Resp { + AddLabelResponse add_label_response = 1; + AddIndexResponse add_index_response = 2; + AddVertexesResponse add_vertexes_response = 3; + AddEdgesResponse add_edges_response = 4; + DelIndexResponse del_index_response = 5; + DelVertexResponse del_vertex_response = 6; + DelEdgeResponse del_edge_response = 7; + ModVertexResponse mod_vertex_response = 8; + ModEdgeResponse mod_edge_response = 9; + SubGraphResponse sub_graph_response = 10; + FlushResponse flush_response = 11; + }; +}; + +//-------------------------------- +// config +//-------------------------------- +message ModConfigRequest { + repeated string keys = 1; + repeated ProtoFieldData values = 2; +}; + +message ModConfigResponse {}; + +message ConfigRequest { + oneof Req { + ModConfigRequest mod_config_request = 1; + }; +}; + +message ConfigResponse { + oneof Resp { + ModConfigResponse mod_config_response = 1; + }; +}; + +//-------------------------------- +// graph +//-------------------------------- +message ProtoDBConfig { + required int64 db_size = 1; + required bool async = 2; + required string desc = 3; +}; + +message AddGraphRequest { + required string name = 1; + required ProtoDBConfig config = 2; +}; + +message AddGraphResponse {}; + +message DeleteGraphRequest { + required string name = 1; +}; + +message DeleteGraphResponse {}; + +message ListGraphsRequest {}; + +message ListGraphsResponse { + repeated string names = 1; + repeated ProtoDBConfig configs = 2; +}; + +message GraphRequest { + oneof Req { + AddGraphRequest add_graph_request = 1; + DeleteGraphRequest delete_graph_request = 2; + ListGraphsRequest list_graphs_request = 3; + }; +}; + +message GraphResponse { + oneof Resp { + AddGraphResponse add_graph_response = 1; + DeleteGraphResponse delete_graph_response = 2; + ListGraphsResponse list_graphs_response = 3; + }; +}; + +//-------------------------------- +// acl +//-------------------------------- +// auth +message AuthRequest { + oneof action { + LoginRequest login = 1; + LogoutRequest logout = 2; + }; +}; + +message LoginRequest { + required string user = 1; + required string password = 2; +} + +message LogoutRequest { + required string token = 1; +} + +message AuthResponse { + required string token = 1; +}; + +// user +message AddUserRequest { + required string user = 1; + required string password = 2; + optional string auth_method = 3; + optional string desc = 4; +}; + +message AddUserResponse {}; + +message ListOfString { + repeated string values = 1; +}; + +message SetPasswordParam { + optional string old_pass = 1; + required string new_pass = 2; +}; + +message ModUserRequest { + required string user = 1; + oneof action { + SetPasswordParam set_password = 2; + ListOfString set_roles = 3; + ListOfString add_roles = 4; + ListOfString del_roles = 5; + bool enable = 6; + bool disable = 7; + string set_desc = 8; + }; +}; + +message ModUserResponse {}; + +message DelUserRequest { + required string user = 1; +}; + +message DelUserResponse {}; + +message GetUserInfoRequest { + required string user = 1; +}; + +message ProtoUserInfo { + required bool is_disabled = 1; + repeated string roles = 2; + optional string auth_method = 3; +}; + +message GetUserInfoResponse { + required ProtoUserInfo info = 1; +}; + +message ListUserRequest {}; + +message ListUserResponse { + map users = 1; +}; + +// roles +message ProtoGraphAccess { + map values = 1; +}; + +message AddRoleRequest { + required string role = 1; + optional string desc = 2; +}; + +message AddRoleResponse {}; + +message DelRoleRequest { + required string role = 1; +}; + +message DelRoleResponse {}; + +message ModRoleRequest { + required string role = 1; + oneof action { + string mod_desc = 2; + ProtoGraphAccess set_full_graph_access = 3; + ProtoGraphAccess set_diff_graph_access = 4; + bool enable = 5; + bool disable = 6; + }; +}; + +message ModRoleResponse {}; + +message GetRoleInfoRequest { + required string role = 1; +}; + +message ProtoRoleInfo { + required bool is_disabled = 1; + required string desc = 2; + required ProtoGraphAccess graph_access = 3; +}; + +message GetRoleInfoResponse { + required ProtoRoleInfo info = 1; +}; + +message ListRoleRequest {}; + +message ListRoleResponse { + map roles = 1; +}; + +message AclRequest { + oneof Req{ + AuthRequest auth_request = 1; + AddUserRequest add_user_request = 2; + ModUserRequest mod_user_request = 3; + DelUserRequest del_user_request = 4; + GetUserInfoRequest list_user_info_request = 5; + AddRoleRequest add_role_request = 6; + ModRoleRequest mod_role_request = 7; + DelRoleRequest del_role_request = 8; + GetRoleInfoRequest list_role_info_request = 9; + ListUserRequest list_user_request = 10; + ListRoleRequest list_role_request = 11; + }; +}; + +message AclResponse { + oneof Resp { + AuthResponse auth_response = 1; + AddUserResponse add_user_response = 2; + ModUserResponse mod_user_response = 3; + DelUserResponse del_user_response = 4; + GetUserInfoResponse list_user_info_response = 5; + AddRoleResponse add_role_response = 6; + ModRoleResponse mod_role_response = 7; + DelRoleResponse del_role_response = 8; + GetRoleInfoResponse list_role_info_response = 9; + ListUserResponse list_user_response = 10; + ListRoleResponse list_role_response = 11; + }; +}; + +//-------------------------------- +// graph query +//-------------------------------- +enum ProtoGraphQueryType { + CYPHER = 0; + GQL = 1; +}; + +message Header { + required string name = 1; + required int32 type = 2; +}; + +message GraphQueryRequest { + required ProtoGraphQueryType type = 1; + required string query = 2; + repeated string param_names = 3; + optional ListOfProtoFieldData param_values = 4; + required bool result_in_json_format = 5; + optional string graph = 6; + optional double timeout = 7; + optional int64 per_node_limit = 8; +}; + +message GraphQueryResult { + repeated Header header = 1; + repeated ListOfProtoFieldData result = 2; + required double elapsed = 3; +}; + +message GraphQueryResponse { + oneof Result { + string json_result = 1; + GraphQueryResult binary_result = 2; + } +}; + +//-------------------------------- +// import +//-------------------------------- + +message ImportRequest { + required string graph = 3; + required string description = 4; + required string data = 5; + required bool continue_on_error = 6; + required string delimiter = 7; +}; + +message ImportResponse { + optional string log = 1; + optional string error_message = 2; +}; + +message SchemaRequest { + required string graph = 3; + required string description = 4; +}; + +message SchemaResponse { + optional string log = 1; + optional string error_message = 2; +}; + +//-------------------------------- +// plugin +//-------------------------------- +message CallPluginRequest { + required string name = 1; + required bytes param = 2; + optional double timeout = 3; + optional bool in_process = 4; + optional bool result_in_json_format = 5; +}; + +message CallPluginResponse { + oneof CallPluginResult { + bytes reply = 1; + string json_result = 2; + } +}; + +message LoadPluginRequest { + enum CodeType { + PY = 1; + SO = 2; + CPP = 3; + ZIP = 4; + }; + + required string name = 1; + required bool read_only = 2; + required bytes code = 3; + optional string desc = 4; + optional CodeType code_type = 5; +}; + +message LoadPluginResponse {}; + +message DelPluginRequest { + required string name = 1; +}; + +message DelPluginResponse {}; + +message ListPluginRequest {}; + +message ListPluginResponse { + required string reply = 1; +}; + +message PluginRequest { + enum PluginType { + CPP = 1; + PYTHON = 2; + JAVA = 3; // not supported yet + ANY = 4; + }; + + required PluginType type = 1; + oneof Req { + LoadPluginRequest load_plugin_request = 2; + DelPluginRequest del_plugin_request = 3; + CallPluginRequest call_plugin_request = 4; + ListPluginRequest list_plugin_request = 5; + }; + required string graph = 6; + optional string version = 7; +}; + +message PluginResponse { + oneof Resp { + LoadPluginResponse load_plugin_response = 1; + DelPluginResponse del_plugin_response = 2; + CallPluginResponse call_plugin_response = 3; + ListPluginResponse list_plugin_response = 4; + }; +}; + +//-------------------------------- +// heartbeat +//-------------------------------- +enum NodeState { + UNINITIALIZED = 1; + LOADING_SNAPSHOT = 2; + REPLAYING_LOG = 3; + JOINED_FOLLOW = 4; + JOINED_MASTER = 5; + OFFLINE = 6; +}; + +message HeartbeatRequest { + required string rpc_addr = 1; + required string rest_addr = 2; + required NodeState state = 3; +}; + +message HeartbeatResponse { +}; + +message PeerInfo { + required string rpc_addr = 1; + required string rest_addr = 2; + required NodeState state = 3; +}; + +message ListPeersRequest { +}; + +message ListPeersResponse { + repeated PeerInfo peers = 1; +}; + +message GetMasterRequest {}; + +message GetMasterResponse { + required PeerInfo master = 1; +}; + +message SyncMetaRequest { + required string confirm = 1; +}; + +message SyncMetaResponse { + required int32 ret = 1; +}; + +message HARequest { + oneof Req { + HeartbeatRequest heartbeat_request = 1; + ListPeersRequest list_peers_request = 2; + GetMasterRequest get_master_request = 3; + SyncMetaRequest sync_meta_request = 4; + }; +}; + +message HAResponse { + oneof Resp { + HeartbeatResponse heartbeat_response = 1; + ListPeersResponse list_peers_response = 2; + GetMasterResponse get_master_response = 3; + SyncMetaResponse sync_meta_response = 4; + }; +}; + +//-------------------------------- +// envelope +//-------------------------------- +message LGraphRequest { + optional int64 client_version = 1; + required string token = 2; + optional bool is_write_op = 3; + optional string user = 4; + oneof Req { + GraphApiRequest graph_api_request = 11; + GraphQueryRequest graph_query_request = 12; + PluginRequest plugin_request = 13; + HARequest ha_request = 14; + ImportRequest import_request = 15; + GraphRequest graph_request = 17; + AclRequest acl_request = 18; + ConfigRequest config_request = 19; + RestoreRequest restore_request = 20; + SchemaRequest schema_request = 21; + }; +}; + +message LGraphResponse { + enum ErrorCode { + SUCCESS = 1; + BAD_REQUEST = 2; + AUTH_ERROR = 3; + KILLED = 4; + REDIRECT = 5; + FAILED = 6; + EXCEPTION = 255; + }; + + required ErrorCode error_code = 1; + optional string redirect = 2; + optional string error = 3; + optional int64 server_version = 4; + oneof Resp { + GraphApiResponse graph_api_response = 11; + GraphQueryResponse graph_query_response = 12; + PluginResponse plugin_response = 13; + HAResponse ha_response = 14; + ImportResponse import_response = 15; + GraphResponse graph_response = 17; + AclResponse acl_response = 18; + ConfigResponse config_response = 19; + RestoreResponse restore_response = 20; + SchemaResponse schema_response = 21; + }; +}; + +// For backup and restore +message BackupLogEntry { + required int64 index = 1; + required int64 time = 2; + required LGraphRequest req = 3; +}; + +message RestoreRequest { + repeated BackupLogEntry logs = 1; +}; + +message RestoreResponse { + required int64 last_success_idx = 1; +}; + +//-------------------------------- +// audit_log +//-------------------------------- +enum LogApiType { + SingleApi = 0; + Security = 1; + Plugin = 2; + Cypher = 3; + Gql = 4; +}; + +message LogMessage { + required int64 index = 1; + required int64 time = 2; + required bool begin_end = 3; + optional string user = 4; + optional string graph = 5; + optional LogApiType type = 6; + optional bool read_write = 7; + optional bool success = 8; + optional string content = 9; +}; + +service LGraphRPCService { + rpc HandleRequest(LGraphRequest) returns (LGraphResponse); +}; + +// For http2 server over RPC + +message HttpRequest {}; +message HttpResponse {}; + +service LGraphHttpService { + rpc Query(HttpRequest) returns (HttpResponse); +};