ai.grakn.rpc.proto.SessionProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Session.proto
package ai.grakn.rpc.proto;
public final class SessionProto {
private SessionProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TransactionOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction}
*/
public static final class Transaction extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction)
TransactionOrBuilder {
// Use Transaction.newBuilder() to construct.
private Transaction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Transaction() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Transaction(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.class, ai.grakn.rpc.proto.SessionProto.Transaction.Builder.class);
}
/**
* Protobuf enum {@code session.Transaction.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* READ = 0;
*/
READ(0),
/**
* WRITE = 1;
*/
WRITE(1),
/**
* BATCH = 2;
*/
BATCH(2),
UNRECOGNIZED(-1),
;
/**
* READ = 0;
*/
public static final int READ_VALUE = 0;
/**
* WRITE = 1;
*/
public static final int WRITE_VALUE = 1;
/**
* BATCH = 2;
*/
public static final int BATCH_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return READ;
case 1: return WRITE;
case 2: return BATCH;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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 ai.grakn.rpc.proto.SessionProto.Transaction.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:session.Transaction.Type)
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Req)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, string> metadata = 1000;
*/
int getMetadataCount();
/**
* map<string, string> metadata = 1000;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
* map<string, string> metadata = 1000;
*/
java.util.Map
getMetadataMap();
/**
* map<string, string> metadata = 1000;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> metadata = 1000;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq();
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder();
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq();
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder();
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq();
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder();
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq();
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder();
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq();
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder();
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq();
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder();
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq();
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder();
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq();
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder();
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq();
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder();
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq();
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder();
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq();
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder();
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq();
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder();
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq();
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder();
public ai.grakn.rpc.proto.SessionProto.Transaction.Req.ReqCase getReqCase();
}
/**
* Protobuf type {@code session.Transaction.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder subBuilder = null;
if (reqCase_ == 1) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 1;
break;
}
case 18: {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder subBuilder = null;
if (reqCase_ == 2) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 2;
break;
}
case 26: {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder subBuilder = null;
if (reqCase_ == 3) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 3;
break;
}
case 34: {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder subBuilder = null;
if (reqCase_ == 4) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 4;
break;
}
case 42: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder subBuilder = null;
if (reqCase_ == 5) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 5;
break;
}
case 50: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder subBuilder = null;
if (reqCase_ == 6) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 6;
break;
}
case 58: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder subBuilder = null;
if (reqCase_ == 7) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 7;
break;
}
case 66: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder subBuilder = null;
if (reqCase_ == 8) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 8;
break;
}
case 74: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder subBuilder = null;
if (reqCase_ == 9) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 9;
break;
}
case 82: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder subBuilder = null;
if (reqCase_ == 10) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 10;
break;
}
case 90: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder subBuilder = null;
if (reqCase_ == 11) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 11;
break;
}
case 98: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder subBuilder = null;
if (reqCase_ == 12) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 12;
break;
}
case 106: {
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder subBuilder = null;
if (reqCase_ == 13) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_).toBuilder();
}
req_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_);
req_ = subBuilder.buildPartial();
}
reqCase_ = 13;
break;
}
case 8002: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
metadata = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(metadata.getKey(), metadata.getValue());
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1000:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Req.Builder.class);
}
private int bitField0_;
private int reqCase_ = 0;
private java.lang.Object req_;
public enum ReqCase
implements com.google.protobuf.Internal.EnumLite {
OPEN_REQ(1),
COMMIT_REQ(2),
QUERY_REQ(3),
ITERATE_REQ(4),
GETSCHEMACONCEPT_REQ(5),
GETCONCEPT_REQ(6),
GETATTRIBUTES_REQ(7),
PUTENTITYTYPE_REQ(8),
PUTATTRIBUTETYPE_REQ(9),
PUTRELATIONTYPE_REQ(10),
PUTROLE_REQ(11),
PUTRULE_REQ(12),
CONCEPTMETHOD_REQ(13),
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 OPEN_REQ;
case 2: return COMMIT_REQ;
case 3: return QUERY_REQ;
case 4: return ITERATE_REQ;
case 5: return GETSCHEMACONCEPT_REQ;
case 6: return GETCONCEPT_REQ;
case 7: return GETATTRIBUTES_REQ;
case 8: return PUTENTITYTYPE_REQ;
case 9: return PUTATTRIBUTETYPE_REQ;
case 10: return PUTRELATIONTYPE_REQ;
case 11: return PUTROLE_REQ;
case 12: return PUTRULE_REQ;
case 13: return CONCEPTMETHOD_REQ;
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 METADATA_FIELD_NUMBER = 1000;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 1000;
*/
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int OPEN_REQ_FIELD_NUMBER = 1;
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq() {
if (reqCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder() {
if (reqCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
public static final int COMMIT_REQ_FIELD_NUMBER = 2;
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq() {
if (reqCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder() {
if (reqCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
public static final int QUERY_REQ_FIELD_NUMBER = 3;
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq() {
if (reqCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder() {
if (reqCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
public static final int ITERATE_REQ_FIELD_NUMBER = 4;
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq() {
if (reqCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder() {
if (reqCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
public static final int GETSCHEMACONCEPT_REQ_FIELD_NUMBER = 5;
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq() {
if (reqCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder() {
if (reqCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
public static final int GETCONCEPT_REQ_FIELD_NUMBER = 6;
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq() {
if (reqCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder() {
if (reqCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
public static final int GETATTRIBUTES_REQ_FIELD_NUMBER = 7;
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq() {
if (reqCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder() {
if (reqCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
public static final int PUTENTITYTYPE_REQ_FIELD_NUMBER = 8;
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq() {
if (reqCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder() {
if (reqCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
public static final int PUTATTRIBUTETYPE_REQ_FIELD_NUMBER = 9;
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq() {
if (reqCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder() {
if (reqCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
public static final int PUTRELATIONTYPE_REQ_FIELD_NUMBER = 10;
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq() {
if (reqCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder() {
if (reqCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
public static final int PUTROLE_REQ_FIELD_NUMBER = 11;
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq() {
if (reqCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder() {
if (reqCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
public static final int PUTRULE_REQ_FIELD_NUMBER = 12;
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq() {
if (reqCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder() {
if (reqCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
public static final int CONCEPTMETHOD_REQ_FIELD_NUMBER = 13;
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq() {
if (reqCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder() {
if (reqCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (reqCase_ == 1) {
output.writeMessage(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_);
}
if (reqCase_ == 2) {
output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_);
}
if (reqCase_ == 3) {
output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_);
}
if (reqCase_ == 4) {
output.writeMessage(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_);
}
if (reqCase_ == 5) {
output.writeMessage(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_);
}
if (reqCase_ == 6) {
output.writeMessage(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_);
}
if (reqCase_ == 7) {
output.writeMessage(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_);
}
if (reqCase_ == 8) {
output.writeMessage(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_);
}
if (reqCase_ == 9) {
output.writeMessage(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_);
}
if (reqCase_ == 10) {
output.writeMessage(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_);
}
if (reqCase_ == 11) {
output.writeMessage(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_);
}
if (reqCase_ == 12) {
output.writeMessage(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_);
}
if (reqCase_ == 13) {
output.writeMessage(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_);
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(1000, metadata);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reqCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_);
}
if (reqCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_);
}
if (reqCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_);
}
if (reqCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_);
}
if (reqCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_);
}
if (reqCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_);
}
if (reqCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_);
}
if (reqCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_);
}
if (reqCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_);
}
if (reqCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_);
}
if (reqCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_);
}
if (reqCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_);
}
if (reqCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_);
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1000, metadata);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Req) obj;
boolean result = true;
result = result && internalGetMetadata().equals(
other.internalGetMetadata());
result = result && getReqCase().equals(
other.getReqCase());
if (!result) return false;
switch (reqCase_) {
case 1:
result = result && getOpenReq()
.equals(other.getOpenReq());
break;
case 2:
result = result && getCommitReq()
.equals(other.getCommitReq());
break;
case 3:
result = result && getQueryReq()
.equals(other.getQueryReq());
break;
case 4:
result = result && getIterateReq()
.equals(other.getIterateReq());
break;
case 5:
result = result && getGetSchemaConceptReq()
.equals(other.getGetSchemaConceptReq());
break;
case 6:
result = result && getGetConceptReq()
.equals(other.getGetConceptReq());
break;
case 7:
result = result && getGetAttributesReq()
.equals(other.getGetAttributesReq());
break;
case 8:
result = result && getPutEntityTypeReq()
.equals(other.getPutEntityTypeReq());
break;
case 9:
result = result && getPutAttributeTypeReq()
.equals(other.getPutAttributeTypeReq());
break;
case 10:
result = result && getPutRelationTypeReq()
.equals(other.getPutRelationTypeReq());
break;
case 11:
result = result && getPutRoleReq()
.equals(other.getPutRoleReq());
break;
case 12:
result = result && getPutRuleReq()
.equals(other.getPutRuleReq());
break;
case 13:
result = result && getConceptMethodReq()
.equals(other.getConceptMethodReq());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
switch (reqCase_) {
case 1:
hash = (37 * hash) + OPEN_REQ_FIELD_NUMBER;
hash = (53 * hash) + getOpenReq().hashCode();
break;
case 2:
hash = (37 * hash) + COMMIT_REQ_FIELD_NUMBER;
hash = (53 * hash) + getCommitReq().hashCode();
break;
case 3:
hash = (37 * hash) + QUERY_REQ_FIELD_NUMBER;
hash = (53 * hash) + getQueryReq().hashCode();
break;
case 4:
hash = (37 * hash) + ITERATE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getIterateReq().hashCode();
break;
case 5:
hash = (37 * hash) + GETSCHEMACONCEPT_REQ_FIELD_NUMBER;
hash = (53 * hash) + getGetSchemaConceptReq().hashCode();
break;
case 6:
hash = (37 * hash) + GETCONCEPT_REQ_FIELD_NUMBER;
hash = (53 * hash) + getGetConceptReq().hashCode();
break;
case 7:
hash = (37 * hash) + GETATTRIBUTES_REQ_FIELD_NUMBER;
hash = (53 * hash) + getGetAttributesReq().hashCode();
break;
case 8:
hash = (37 * hash) + PUTENTITYTYPE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getPutEntityTypeReq().hashCode();
break;
case 9:
hash = (37 * hash) + PUTATTRIBUTETYPE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getPutAttributeTypeReq().hashCode();
break;
case 10:
hash = (37 * hash) + PUTRELATIONTYPE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getPutRelationTypeReq().hashCode();
break;
case 11:
hash = (37 * hash) + PUTROLE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getPutRoleReq().hashCode();
break;
case 12:
hash = (37 * hash) + PUTRULE_REQ_FIELD_NUMBER;
hash = (53 * hash) + getPutRuleReq().hashCode();
break;
case 13:
hash = (37 * hash) + CONCEPTMETHOD_REQ_FIELD_NUMBER;
hash = (53 * hash) + getConceptMethodReq().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1000:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1000:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
internalGetMutableMetadata().clear();
reqCase_ = 0;
req_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Req(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (reqCase_ == 1) {
if (openReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = openReqBuilder_.build();
}
}
if (reqCase_ == 2) {
if (commitReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = commitReqBuilder_.build();
}
}
if (reqCase_ == 3) {
if (queryReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = queryReqBuilder_.build();
}
}
if (reqCase_ == 4) {
if (iterateReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = iterateReqBuilder_.build();
}
}
if (reqCase_ == 5) {
if (getSchemaConceptReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = getSchemaConceptReqBuilder_.build();
}
}
if (reqCase_ == 6) {
if (getConceptReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = getConceptReqBuilder_.build();
}
}
if (reqCase_ == 7) {
if (getAttributesReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = getAttributesReqBuilder_.build();
}
}
if (reqCase_ == 8) {
if (putEntityTypeReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = putEntityTypeReqBuilder_.build();
}
}
if (reqCase_ == 9) {
if (putAttributeTypeReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = putAttributeTypeReqBuilder_.build();
}
}
if (reqCase_ == 10) {
if (putRelationTypeReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = putRelationTypeReqBuilder_.build();
}
}
if (reqCase_ == 11) {
if (putRoleReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = putRoleReqBuilder_.build();
}
}
if (reqCase_ == 12) {
if (putRuleReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = putRuleReqBuilder_.build();
}
}
if (reqCase_ == 13) {
if (conceptMethodReqBuilder_ == null) {
result.req_ = req_;
} else {
result.req_ = conceptMethodReqBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.reqCase_ = reqCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Req.getDefaultInstance()) return this;
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
switch (other.getReqCase()) {
case OPEN_REQ: {
mergeOpenReq(other.getOpenReq());
break;
}
case COMMIT_REQ: {
mergeCommitReq(other.getCommitReq());
break;
}
case QUERY_REQ: {
mergeQueryReq(other.getQueryReq());
break;
}
case ITERATE_REQ: {
mergeIterateReq(other.getIterateReq());
break;
}
case GETSCHEMACONCEPT_REQ: {
mergeGetSchemaConceptReq(other.getGetSchemaConceptReq());
break;
}
case GETCONCEPT_REQ: {
mergeGetConceptReq(other.getGetConceptReq());
break;
}
case GETATTRIBUTES_REQ: {
mergeGetAttributesReq(other.getGetAttributesReq());
break;
}
case PUTENTITYTYPE_REQ: {
mergePutEntityTypeReq(other.getPutEntityTypeReq());
break;
}
case PUTATTRIBUTETYPE_REQ: {
mergePutAttributeTypeReq(other.getPutAttributeTypeReq());
break;
}
case PUTRELATIONTYPE_REQ: {
mergePutRelationTypeReq(other.getPutRelationTypeReq());
break;
}
case PUTROLE_REQ: {
mergePutRoleReq(other.getPutRoleReq());
break;
}
case PUTRULE_REQ: {
mergePutRuleReq(other.getPutRuleReq());
break;
}
case CONCEPTMETHOD_REQ: {
mergeConceptMethodReq(other.getConceptMethodReq());
break;
}
case REQ_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Req) 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.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 1000;
*/
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
getMutableMetadata().clear();
return this;
}
/**
* map<string, string> metadata = 1000;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableMetadata().remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
* map<string, string> metadata = 1000;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
getMutableMetadata().put(key, value);
return this;
}
/**
* map<string, string> metadata = 1000;
*/
public Builder putAllMetadata(
java.util.Map values) {
getMutableMetadata().putAll(values);
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder> openReqBuilder_;
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getOpenReq() {
if (openReqBuilder_ == null) {
if (reqCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
} else {
if (reqCase_ == 1) {
return openReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public Builder setOpenReq(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req value) {
if (openReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
openReqBuilder_.setMessage(value);
}
reqCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public Builder setOpenReq(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder builderForValue) {
if (openReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
openReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public Builder mergeOpenReq(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req value) {
if (openReqBuilder_ == null) {
if (reqCase_ == 1 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 1) {
openReqBuilder_.mergeFrom(value);
}
openReqBuilder_.setMessage(value);
}
reqCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public Builder clearOpenReq() {
if (openReqBuilder_ == null) {
if (reqCase_ == 1) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 1) {
reqCase_ = 0;
req_ = null;
}
openReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder getOpenReqBuilder() {
return getOpenReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder getOpenReqOrBuilder() {
if ((reqCase_ == 1) && (openReqBuilder_ != null)) {
return openReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Open.Req open_req = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder>
getOpenReqFieldBuilder() {
if (openReqBuilder_ == null) {
if (!(reqCase_ == 1)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
openReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 1;
onChanged();;
return openReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder> commitReqBuilder_;
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getCommitReq() {
if (commitReqBuilder_ == null) {
if (reqCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
} else {
if (reqCase_ == 2) {
return commitReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public Builder setCommitReq(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req value) {
if (commitReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
commitReqBuilder_.setMessage(value);
}
reqCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public Builder setCommitReq(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder builderForValue) {
if (commitReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
commitReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public Builder mergeCommitReq(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req value) {
if (commitReqBuilder_ == null) {
if (reqCase_ == 2 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 2) {
commitReqBuilder_.mergeFrom(value);
}
commitReqBuilder_.setMessage(value);
}
reqCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public Builder clearCommitReq() {
if (commitReqBuilder_ == null) {
if (reqCase_ == 2) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 2) {
reqCase_ = 0;
req_ = null;
}
commitReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder getCommitReqBuilder() {
return getCommitReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder getCommitReqOrBuilder() {
if ((reqCase_ == 2) && (commitReqBuilder_ != null)) {
return commitReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Commit.Req commit_req = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder>
getCommitReqFieldBuilder() {
if (commitReqBuilder_ == null) {
if (!(reqCase_ == 2)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
commitReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 2;
onChanged();;
return commitReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder> queryReqBuilder_;
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getQueryReq() {
if (queryReqBuilder_ == null) {
if (reqCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
} else {
if (reqCase_ == 3) {
return queryReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public Builder setQueryReq(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req value) {
if (queryReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
queryReqBuilder_.setMessage(value);
}
reqCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public Builder setQueryReq(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder builderForValue) {
if (queryReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
queryReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public Builder mergeQueryReq(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req value) {
if (queryReqBuilder_ == null) {
if (reqCase_ == 3 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 3) {
queryReqBuilder_.mergeFrom(value);
}
queryReqBuilder_.setMessage(value);
}
reqCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public Builder clearQueryReq() {
if (queryReqBuilder_ == null) {
if (reqCase_ == 3) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 3) {
reqCase_ = 0;
req_ = null;
}
queryReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder getQueryReqBuilder() {
return getQueryReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder getQueryReqOrBuilder() {
if ((reqCase_ == 3) && (queryReqBuilder_ != null)) {
return queryReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Req query_req = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder>
getQueryReqFieldBuilder() {
if (queryReqBuilder_ == null) {
if (!(reqCase_ == 3)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
queryReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 3;
onChanged();;
return queryReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder> iterateReqBuilder_;
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getIterateReq() {
if (iterateReqBuilder_ == null) {
if (reqCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
} else {
if (reqCase_ == 4) {
return iterateReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public Builder setIterateReq(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req value) {
if (iterateReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
iterateReqBuilder_.setMessage(value);
}
reqCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public Builder setIterateReq(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder builderForValue) {
if (iterateReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
iterateReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public Builder mergeIterateReq(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req value) {
if (iterateReqBuilder_ == null) {
if (reqCase_ == 4 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 4) {
iterateReqBuilder_.mergeFrom(value);
}
iterateReqBuilder_.setMessage(value);
}
reqCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public Builder clearIterateReq() {
if (iterateReqBuilder_ == null) {
if (reqCase_ == 4) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 4) {
reqCase_ = 0;
req_ = null;
}
iterateReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder getIterateReqBuilder() {
return getIterateReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder getIterateReqOrBuilder() {
if ((reqCase_ == 4) && (iterateReqBuilder_ != null)) {
return iterateReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Iter.Req iterate_req = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder>
getIterateReqFieldBuilder() {
if (iterateReqBuilder_ == null) {
if (!(reqCase_ == 4)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
iterateReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 4;
onChanged();;
return iterateReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder> getSchemaConceptReqBuilder_;
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getGetSchemaConceptReq() {
if (getSchemaConceptReqBuilder_ == null) {
if (reqCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
} else {
if (reqCase_ == 5) {
return getSchemaConceptReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public Builder setGetSchemaConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req value) {
if (getSchemaConceptReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
getSchemaConceptReqBuilder_.setMessage(value);
}
reqCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public Builder setGetSchemaConceptReq(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder builderForValue) {
if (getSchemaConceptReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
getSchemaConceptReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public Builder mergeGetSchemaConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req value) {
if (getSchemaConceptReqBuilder_ == null) {
if (reqCase_ == 5 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 5) {
getSchemaConceptReqBuilder_.mergeFrom(value);
}
getSchemaConceptReqBuilder_.setMessage(value);
}
reqCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public Builder clearGetSchemaConceptReq() {
if (getSchemaConceptReqBuilder_ == null) {
if (reqCase_ == 5) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 5) {
reqCase_ = 0;
req_ = null;
}
getSchemaConceptReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder getGetSchemaConceptReqBuilder() {
return getGetSchemaConceptReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder getGetSchemaConceptReqOrBuilder() {
if ((reqCase_ == 5) && (getSchemaConceptReqBuilder_ != null)) {
return getSchemaConceptReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetSchemaConcept.Req getSchemaConcept_req = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder>
getGetSchemaConceptReqFieldBuilder() {
if (getSchemaConceptReqBuilder_ == null) {
if (!(reqCase_ == 5)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
getSchemaConceptReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 5;
onChanged();;
return getSchemaConceptReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder> getConceptReqBuilder_;
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getGetConceptReq() {
if (getConceptReqBuilder_ == null) {
if (reqCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
} else {
if (reqCase_ == 6) {
return getConceptReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public Builder setGetConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req value) {
if (getConceptReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
getConceptReqBuilder_.setMessage(value);
}
reqCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public Builder setGetConceptReq(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder builderForValue) {
if (getConceptReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
getConceptReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public Builder mergeGetConceptReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req value) {
if (getConceptReqBuilder_ == null) {
if (reqCase_ == 6 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 6) {
getConceptReqBuilder_.mergeFrom(value);
}
getConceptReqBuilder_.setMessage(value);
}
reqCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public Builder clearGetConceptReq() {
if (getConceptReqBuilder_ == null) {
if (reqCase_ == 6) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 6) {
reqCase_ = 0;
req_ = null;
}
getConceptReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder getGetConceptReqBuilder() {
return getGetConceptReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder getGetConceptReqOrBuilder() {
if ((reqCase_ == 6) && (getConceptReqBuilder_ != null)) {
return getConceptReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetConcept.Req getConcept_req = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder>
getGetConceptReqFieldBuilder() {
if (getConceptReqBuilder_ == null) {
if (!(reqCase_ == 6)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
getConceptReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 6;
onChanged();;
return getConceptReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder> getAttributesReqBuilder_;
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getGetAttributesReq() {
if (getAttributesReqBuilder_ == null) {
if (reqCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
} else {
if (reqCase_ == 7) {
return getAttributesReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public Builder setGetAttributesReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req value) {
if (getAttributesReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
getAttributesReqBuilder_.setMessage(value);
}
reqCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public Builder setGetAttributesReq(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder builderForValue) {
if (getAttributesReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
getAttributesReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public Builder mergeGetAttributesReq(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req value) {
if (getAttributesReqBuilder_ == null) {
if (reqCase_ == 7 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 7) {
getAttributesReqBuilder_.mergeFrom(value);
}
getAttributesReqBuilder_.setMessage(value);
}
reqCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public Builder clearGetAttributesReq() {
if (getAttributesReqBuilder_ == null) {
if (reqCase_ == 7) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 7) {
reqCase_ = 0;
req_ = null;
}
getAttributesReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder getGetAttributesReqBuilder() {
return getGetAttributesReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder getGetAttributesReqOrBuilder() {
if ((reqCase_ == 7) && (getAttributesReqBuilder_ != null)) {
return getAttributesReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Req getAttributes_req = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder>
getGetAttributesReqFieldBuilder() {
if (getAttributesReqBuilder_ == null) {
if (!(reqCase_ == 7)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
getAttributesReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 7;
onChanged();;
return getAttributesReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder> putEntityTypeReqBuilder_;
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getPutEntityTypeReq() {
if (putEntityTypeReqBuilder_ == null) {
if (reqCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
} else {
if (reqCase_ == 8) {
return putEntityTypeReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public Builder setPutEntityTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req value) {
if (putEntityTypeReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
putEntityTypeReqBuilder_.setMessage(value);
}
reqCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public Builder setPutEntityTypeReq(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder builderForValue) {
if (putEntityTypeReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
putEntityTypeReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public Builder mergePutEntityTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req value) {
if (putEntityTypeReqBuilder_ == null) {
if (reqCase_ == 8 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 8) {
putEntityTypeReqBuilder_.mergeFrom(value);
}
putEntityTypeReqBuilder_.setMessage(value);
}
reqCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public Builder clearPutEntityTypeReq() {
if (putEntityTypeReqBuilder_ == null) {
if (reqCase_ == 8) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 8) {
reqCase_ = 0;
req_ = null;
}
putEntityTypeReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder getPutEntityTypeReqBuilder() {
return getPutEntityTypeReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder getPutEntityTypeReqOrBuilder() {
if ((reqCase_ == 8) && (putEntityTypeReqBuilder_ != null)) {
return putEntityTypeReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutEntityType.Req putEntityType_req = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder>
getPutEntityTypeReqFieldBuilder() {
if (putEntityTypeReqBuilder_ == null) {
if (!(reqCase_ == 8)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
putEntityTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 8;
onChanged();;
return putEntityTypeReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder> putAttributeTypeReqBuilder_;
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getPutAttributeTypeReq() {
if (putAttributeTypeReqBuilder_ == null) {
if (reqCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
} else {
if (reqCase_ == 9) {
return putAttributeTypeReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public Builder setPutAttributeTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req value) {
if (putAttributeTypeReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
putAttributeTypeReqBuilder_.setMessage(value);
}
reqCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public Builder setPutAttributeTypeReq(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder builderForValue) {
if (putAttributeTypeReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
putAttributeTypeReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public Builder mergePutAttributeTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req value) {
if (putAttributeTypeReqBuilder_ == null) {
if (reqCase_ == 9 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 9) {
putAttributeTypeReqBuilder_.mergeFrom(value);
}
putAttributeTypeReqBuilder_.setMessage(value);
}
reqCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public Builder clearPutAttributeTypeReq() {
if (putAttributeTypeReqBuilder_ == null) {
if (reqCase_ == 9) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 9) {
reqCase_ = 0;
req_ = null;
}
putAttributeTypeReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder getPutAttributeTypeReqBuilder() {
return getPutAttributeTypeReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder getPutAttributeTypeReqOrBuilder() {
if ((reqCase_ == 9) && (putAttributeTypeReqBuilder_ != null)) {
return putAttributeTypeReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutAttributeType.Req putAttributeType_req = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder>
getPutAttributeTypeReqFieldBuilder() {
if (putAttributeTypeReqBuilder_ == null) {
if (!(reqCase_ == 9)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
putAttributeTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 9;
onChanged();;
return putAttributeTypeReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder> putRelationTypeReqBuilder_;
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getPutRelationTypeReq() {
if (putRelationTypeReqBuilder_ == null) {
if (reqCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
} else {
if (reqCase_ == 10) {
return putRelationTypeReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public Builder setPutRelationTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req value) {
if (putRelationTypeReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
putRelationTypeReqBuilder_.setMessage(value);
}
reqCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public Builder setPutRelationTypeReq(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder builderForValue) {
if (putRelationTypeReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
putRelationTypeReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public Builder mergePutRelationTypeReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req value) {
if (putRelationTypeReqBuilder_ == null) {
if (reqCase_ == 10 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 10) {
putRelationTypeReqBuilder_.mergeFrom(value);
}
putRelationTypeReqBuilder_.setMessage(value);
}
reqCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public Builder clearPutRelationTypeReq() {
if (putRelationTypeReqBuilder_ == null) {
if (reqCase_ == 10) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 10) {
reqCase_ = 0;
req_ = null;
}
putRelationTypeReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder getPutRelationTypeReqBuilder() {
return getPutRelationTypeReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder getPutRelationTypeReqOrBuilder() {
if ((reqCase_ == 10) && (putRelationTypeReqBuilder_ != null)) {
return putRelationTypeReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRelationType.Req putRelationType_req = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder>
getPutRelationTypeReqFieldBuilder() {
if (putRelationTypeReqBuilder_ == null) {
if (!(reqCase_ == 10)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
putRelationTypeReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 10;
onChanged();;
return putRelationTypeReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder> putRoleReqBuilder_;
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getPutRoleReq() {
if (putRoleReqBuilder_ == null) {
if (reqCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
} else {
if (reqCase_ == 11) {
return putRoleReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public Builder setPutRoleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req value) {
if (putRoleReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
putRoleReqBuilder_.setMessage(value);
}
reqCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public Builder setPutRoleReq(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder builderForValue) {
if (putRoleReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
putRoleReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public Builder mergePutRoleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req value) {
if (putRoleReqBuilder_ == null) {
if (reqCase_ == 11 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 11) {
putRoleReqBuilder_.mergeFrom(value);
}
putRoleReqBuilder_.setMessage(value);
}
reqCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public Builder clearPutRoleReq() {
if (putRoleReqBuilder_ == null) {
if (reqCase_ == 11) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 11) {
reqCase_ = 0;
req_ = null;
}
putRoleReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder getPutRoleReqBuilder() {
return getPutRoleReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder getPutRoleReqOrBuilder() {
if ((reqCase_ == 11) && (putRoleReqBuilder_ != null)) {
return putRoleReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRole.Req putRole_req = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder>
getPutRoleReqFieldBuilder() {
if (putRoleReqBuilder_ == null) {
if (!(reqCase_ == 11)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
putRoleReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 11;
onChanged();;
return putRoleReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder> putRuleReqBuilder_;
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getPutRuleReq() {
if (putRuleReqBuilder_ == null) {
if (reqCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
} else {
if (reqCase_ == 12) {
return putRuleReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public Builder setPutRuleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req value) {
if (putRuleReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
putRuleReqBuilder_.setMessage(value);
}
reqCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public Builder setPutRuleReq(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder builderForValue) {
if (putRuleReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
putRuleReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public Builder mergePutRuleReq(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req value) {
if (putRuleReqBuilder_ == null) {
if (reqCase_ == 12 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 12) {
putRuleReqBuilder_.mergeFrom(value);
}
putRuleReqBuilder_.setMessage(value);
}
reqCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public Builder clearPutRuleReq() {
if (putRuleReqBuilder_ == null) {
if (reqCase_ == 12) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 12) {
reqCase_ = 0;
req_ = null;
}
putRuleReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder getPutRuleReqBuilder() {
return getPutRuleReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder getPutRuleReqOrBuilder() {
if ((reqCase_ == 12) && (putRuleReqBuilder_ != null)) {
return putRuleReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRule.Req putRule_req = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder>
getPutRuleReqFieldBuilder() {
if (putRuleReqBuilder_ == null) {
if (!(reqCase_ == 12)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
putRuleReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 12;
onChanged();;
return putRuleReqBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder> conceptMethodReqBuilder_;
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getConceptMethodReq() {
if (conceptMethodReqBuilder_ == null) {
if (reqCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
} else {
if (reqCase_ == 13) {
return conceptMethodReqBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public Builder setConceptMethodReq(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req value) {
if (conceptMethodReqBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
req_ = value;
onChanged();
} else {
conceptMethodReqBuilder_.setMessage(value);
}
reqCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public Builder setConceptMethodReq(
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder builderForValue) {
if (conceptMethodReqBuilder_ == null) {
req_ = builderForValue.build();
onChanged();
} else {
conceptMethodReqBuilder_.setMessage(builderForValue.build());
}
reqCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public Builder mergeConceptMethodReq(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req value) {
if (conceptMethodReqBuilder_ == null) {
if (reqCase_ == 13 &&
req_ != ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance()) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_)
.mergeFrom(value).buildPartial();
} else {
req_ = value;
}
onChanged();
} else {
if (reqCase_ == 13) {
conceptMethodReqBuilder_.mergeFrom(value);
}
conceptMethodReqBuilder_.setMessage(value);
}
reqCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public Builder clearConceptMethodReq() {
if (conceptMethodReqBuilder_ == null) {
if (reqCase_ == 13) {
reqCase_ = 0;
req_ = null;
onChanged();
}
} else {
if (reqCase_ == 13) {
reqCase_ = 0;
req_ = null;
}
conceptMethodReqBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder getConceptMethodReqBuilder() {
return getConceptMethodReqFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder getConceptMethodReqOrBuilder() {
if ((reqCase_ == 13) && (conceptMethodReqBuilder_ != null)) {
return conceptMethodReqBuilder_.getMessageOrBuilder();
} else {
if (reqCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
}
/**
* optional .session.Transaction.ConceptMethod.Req conceptMethod_req = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder>
getConceptMethodReqFieldBuilder() {
if (conceptMethodReqBuilder_ == null) {
if (!(reqCase_ == 13)) {
req_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
conceptMethodReqBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) req_,
getParentForChildren(),
isClean());
req_ = null;
}
reqCase_ = 13;
onChanged();;
return conceptMethodReqBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Res)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, string> metadata = 1000;
*/
int getMetadataCount();
/**
* map<string, string> metadata = 1000;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
* map<string, string> metadata = 1000;
*/
java.util.Map
getMetadataMap();
/**
* map<string, string> metadata = 1000;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> metadata = 1000;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes();
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder();
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes();
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder();
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter();
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder();
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes();
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder();
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes();
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder();
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes();
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder();
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter();
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder();
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes();
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder();
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes();
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder();
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes();
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder();
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes();
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder();
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes();
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder();
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes();
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder();
public ai.grakn.rpc.proto.SessionProto.Transaction.Res.ResCase getResCase();
}
/**
* Protobuf type {@code session.Transaction.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder subBuilder = null;
if (resCase_ == 1) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 1;
break;
}
case 18: {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder subBuilder = null;
if (resCase_ == 2) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 2;
break;
}
case 26: {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder subBuilder = null;
if (resCase_ == 3) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 3;
break;
}
case 34: {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder subBuilder = null;
if (resCase_ == 4) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 4;
break;
}
case 42: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder subBuilder = null;
if (resCase_ == 5) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 5;
break;
}
case 50: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder subBuilder = null;
if (resCase_ == 6) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 6;
break;
}
case 58: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder subBuilder = null;
if (resCase_ == 7) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 7;
break;
}
case 66: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder subBuilder = null;
if (resCase_ == 8) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 8;
break;
}
case 74: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder subBuilder = null;
if (resCase_ == 9) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 9;
break;
}
case 82: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder subBuilder = null;
if (resCase_ == 10) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 10;
break;
}
case 90: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder subBuilder = null;
if (resCase_ == 11) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 11;
break;
}
case 98: {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder subBuilder = null;
if (resCase_ == 12) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 12;
break;
}
case 106: {
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder subBuilder = null;
if (resCase_ == 13) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 13;
break;
}
case 8002: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
metadata = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(metadata.getKey(), metadata.getValue());
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1000:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Res.Builder.class);
}
private int bitField0_;
private int resCase_ = 0;
private java.lang.Object res_;
public enum ResCase
implements com.google.protobuf.Internal.EnumLite {
OPEN_RES(1),
COMMIT_RES(2),
QUERY_ITER(3),
ITERATE_RES(4),
GETSCHEMACONCEPT_RES(5),
GETCONCEPT_RES(6),
GETATTRIBUTES_ITER(7),
PUTENTITYTYPE_RES(8),
PUTATTRIBUTETYPE_RES(9),
PUTRELATIONTYPE_RES(10),
PUTROLE_RES(11),
PUTRULE_RES(12),
CONCEPTMETHOD_RES(13),
RES_NOT_SET(0);
private final int value;
private ResCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResCase valueOf(int value) {
return forNumber(value);
}
public static ResCase forNumber(int value) {
switch (value) {
case 1: return OPEN_RES;
case 2: return COMMIT_RES;
case 3: return QUERY_ITER;
case 4: return ITERATE_RES;
case 5: return GETSCHEMACONCEPT_RES;
case 6: return GETCONCEPT_RES;
case 7: return GETATTRIBUTES_ITER;
case 8: return PUTENTITYTYPE_RES;
case 9: return PUTATTRIBUTETYPE_RES;
case 10: return PUTRELATIONTYPE_RES;
case 11: return PUTROLE_RES;
case 12: return PUTRULE_RES;
case 13: return CONCEPTMETHOD_RES;
case 0: return RES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public static final int METADATA_FIELD_NUMBER = 1000;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 1000;
*/
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int OPEN_RES_FIELD_NUMBER = 1;
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
public static final int COMMIT_RES_FIELD_NUMBER = 2;
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
public static final int QUERY_ITER_FIELD_NUMBER = 3;
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter() {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder() {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
public static final int ITERATE_RES_FIELD_NUMBER = 4;
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes() {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder() {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
public static final int GETSCHEMACONCEPT_RES_FIELD_NUMBER = 5;
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes() {
if (resCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder() {
if (resCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
public static final int GETCONCEPT_RES_FIELD_NUMBER = 6;
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes() {
if (resCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder() {
if (resCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
public static final int GETATTRIBUTES_ITER_FIELD_NUMBER = 7;
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter() {
if (resCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder() {
if (resCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
public static final int PUTENTITYTYPE_RES_FIELD_NUMBER = 8;
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes() {
if (resCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder() {
if (resCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
public static final int PUTATTRIBUTETYPE_RES_FIELD_NUMBER = 9;
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes() {
if (resCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder() {
if (resCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
public static final int PUTRELATIONTYPE_RES_FIELD_NUMBER = 10;
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes() {
if (resCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder() {
if (resCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
public static final int PUTROLE_RES_FIELD_NUMBER = 11;
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes() {
if (resCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder() {
if (resCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
public static final int PUTRULE_RES_FIELD_NUMBER = 12;
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes() {
if (resCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder() {
if (resCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
public static final int CONCEPTMETHOD_RES_FIELD_NUMBER = 13;
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes() {
if (resCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder() {
if (resCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (resCase_ == 1) {
output.writeMessage(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_);
}
if (resCase_ == 2) {
output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_);
}
if (resCase_ == 3) {
output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_);
}
if (resCase_ == 4) {
output.writeMessage(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_);
}
if (resCase_ == 5) {
output.writeMessage(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_);
}
if (resCase_ == 6) {
output.writeMessage(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_);
}
if (resCase_ == 7) {
output.writeMessage(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_);
}
if (resCase_ == 8) {
output.writeMessage(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_);
}
if (resCase_ == 9) {
output.writeMessage(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_);
}
if (resCase_ == 10) {
output.writeMessage(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_);
}
if (resCase_ == 11) {
output.writeMessage(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_);
}
if (resCase_ == 12) {
output.writeMessage(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_);
}
if (resCase_ == 13) {
output.writeMessage(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_);
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
output.writeMessage(1000, metadata);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_);
}
if (resCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_);
}
if (resCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_);
}
if (resCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_);
}
if (resCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_);
}
if (resCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_);
}
if (resCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_);
}
if (resCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_);
}
if (resCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_);
}
if (resCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_);
}
if (resCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_);
}
if (resCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_);
}
if (resCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_);
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1000, metadata);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Res) obj;
boolean result = true;
result = result && internalGetMetadata().equals(
other.internalGetMetadata());
result = result && getResCase().equals(
other.getResCase());
if (!result) return false;
switch (resCase_) {
case 1:
result = result && getOpenRes()
.equals(other.getOpenRes());
break;
case 2:
result = result && getCommitRes()
.equals(other.getCommitRes());
break;
case 3:
result = result && getQueryIter()
.equals(other.getQueryIter());
break;
case 4:
result = result && getIterateRes()
.equals(other.getIterateRes());
break;
case 5:
result = result && getGetSchemaConceptRes()
.equals(other.getGetSchemaConceptRes());
break;
case 6:
result = result && getGetConceptRes()
.equals(other.getGetConceptRes());
break;
case 7:
result = result && getGetAttributesIter()
.equals(other.getGetAttributesIter());
break;
case 8:
result = result && getPutEntityTypeRes()
.equals(other.getPutEntityTypeRes());
break;
case 9:
result = result && getPutAttributeTypeRes()
.equals(other.getPutAttributeTypeRes());
break;
case 10:
result = result && getPutRelationTypeRes()
.equals(other.getPutRelationTypeRes());
break;
case 11:
result = result && getPutRoleRes()
.equals(other.getPutRoleRes());
break;
case 12:
result = result && getPutRuleRes()
.equals(other.getPutRuleRes());
break;
case 13:
result = result && getConceptMethodRes()
.equals(other.getConceptMethodRes());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
switch (resCase_) {
case 1:
hash = (37 * hash) + OPEN_RES_FIELD_NUMBER;
hash = (53 * hash) + getOpenRes().hashCode();
break;
case 2:
hash = (37 * hash) + COMMIT_RES_FIELD_NUMBER;
hash = (53 * hash) + getCommitRes().hashCode();
break;
case 3:
hash = (37 * hash) + QUERY_ITER_FIELD_NUMBER;
hash = (53 * hash) + getQueryIter().hashCode();
break;
case 4:
hash = (37 * hash) + ITERATE_RES_FIELD_NUMBER;
hash = (53 * hash) + getIterateRes().hashCode();
break;
case 5:
hash = (37 * hash) + GETSCHEMACONCEPT_RES_FIELD_NUMBER;
hash = (53 * hash) + getGetSchemaConceptRes().hashCode();
break;
case 6:
hash = (37 * hash) + GETCONCEPT_RES_FIELD_NUMBER;
hash = (53 * hash) + getGetConceptRes().hashCode();
break;
case 7:
hash = (37 * hash) + GETATTRIBUTES_ITER_FIELD_NUMBER;
hash = (53 * hash) + getGetAttributesIter().hashCode();
break;
case 8:
hash = (37 * hash) + PUTENTITYTYPE_RES_FIELD_NUMBER;
hash = (53 * hash) + getPutEntityTypeRes().hashCode();
break;
case 9:
hash = (37 * hash) + PUTATTRIBUTETYPE_RES_FIELD_NUMBER;
hash = (53 * hash) + getPutAttributeTypeRes().hashCode();
break;
case 10:
hash = (37 * hash) + PUTRELATIONTYPE_RES_FIELD_NUMBER;
hash = (53 * hash) + getPutRelationTypeRes().hashCode();
break;
case 11:
hash = (37 * hash) + PUTROLE_RES_FIELD_NUMBER;
hash = (53 * hash) + getPutRoleRes().hashCode();
break;
case 12:
hash = (37 * hash) + PUTRULE_RES_FIELD_NUMBER;
hash = (53 * hash) + getPutRuleRes().hashCode();
break;
case 13:
hash = (37 * hash) + CONCEPTMETHOD_RES_FIELD_NUMBER;
hash = (53 * hash) + getConceptMethodRes().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1000:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1000:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
internalGetMutableMetadata().clear();
resCase_ = 0;
res_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Res(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (resCase_ == 1) {
if (openResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = openResBuilder_.build();
}
}
if (resCase_ == 2) {
if (commitResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = commitResBuilder_.build();
}
}
if (resCase_ == 3) {
if (queryIterBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = queryIterBuilder_.build();
}
}
if (resCase_ == 4) {
if (iterateResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = iterateResBuilder_.build();
}
}
if (resCase_ == 5) {
if (getSchemaConceptResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = getSchemaConceptResBuilder_.build();
}
}
if (resCase_ == 6) {
if (getConceptResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = getConceptResBuilder_.build();
}
}
if (resCase_ == 7) {
if (getAttributesIterBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = getAttributesIterBuilder_.build();
}
}
if (resCase_ == 8) {
if (putEntityTypeResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = putEntityTypeResBuilder_.build();
}
}
if (resCase_ == 9) {
if (putAttributeTypeResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = putAttributeTypeResBuilder_.build();
}
}
if (resCase_ == 10) {
if (putRelationTypeResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = putRelationTypeResBuilder_.build();
}
}
if (resCase_ == 11) {
if (putRoleResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = putRoleResBuilder_.build();
}
}
if (resCase_ == 12) {
if (putRuleResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = putRuleResBuilder_.build();
}
}
if (resCase_ == 13) {
if (conceptMethodResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = conceptMethodResBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.resCase_ = resCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Res.getDefaultInstance()) return this;
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
switch (other.getResCase()) {
case OPEN_RES: {
mergeOpenRes(other.getOpenRes());
break;
}
case COMMIT_RES: {
mergeCommitRes(other.getCommitRes());
break;
}
case QUERY_ITER: {
mergeQueryIter(other.getQueryIter());
break;
}
case ITERATE_RES: {
mergeIterateRes(other.getIterateRes());
break;
}
case GETSCHEMACONCEPT_RES: {
mergeGetSchemaConceptRes(other.getGetSchemaConceptRes());
break;
}
case GETCONCEPT_RES: {
mergeGetConceptRes(other.getGetConceptRes());
break;
}
case GETATTRIBUTES_ITER: {
mergeGetAttributesIter(other.getGetAttributesIter());
break;
}
case PUTENTITYTYPE_RES: {
mergePutEntityTypeRes(other.getPutEntityTypeRes());
break;
}
case PUTATTRIBUTETYPE_RES: {
mergePutAttributeTypeRes(other.getPutAttributeTypeRes());
break;
}
case PUTRELATIONTYPE_RES: {
mergePutRelationTypeRes(other.getPutRelationTypeRes());
break;
}
case PUTROLE_RES: {
mergePutRoleRes(other.getPutRoleRes());
break;
}
case PUTRULE_RES: {
mergePutRuleRes(other.getPutRuleRes());
break;
}
case CONCEPTMETHOD_RES: {
mergeConceptMethodRes(other.getConceptMethodRes());
break;
}
case RES_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resCase_ = 0;
private java.lang.Object res_;
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public Builder clearRes() {
resCase_ = 0;
res_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 1000;
*/
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 1000;
*/
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
getMutableMetadata().clear();
return this;
}
/**
* map<string, string> metadata = 1000;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
getMutableMetadata().remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
* map<string, string> metadata = 1000;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
getMutableMetadata().put(key, value);
return this;
}
/**
* map<string, string> metadata = 1000;
*/
public Builder putAllMetadata(
java.util.Map values) {
getMutableMetadata().putAll(values);
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder> openResBuilder_;
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getOpenRes() {
if (openResBuilder_ == null) {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
} else {
if (resCase_ == 1) {
return openResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public Builder setOpenRes(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res value) {
if (openResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
openResBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public Builder setOpenRes(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder builderForValue) {
if (openResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
openResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public Builder mergeOpenRes(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res value) {
if (openResBuilder_ == null) {
if (resCase_ == 1 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 1) {
openResBuilder_.mergeFrom(value);
}
openResBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public Builder clearOpenRes() {
if (openResBuilder_ == null) {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
}
openResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder getOpenResBuilder() {
return getOpenResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder getOpenResOrBuilder() {
if ((resCase_ == 1) && (openResBuilder_ != null)) {
return openResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Open.Res open_res = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder>
getOpenResFieldBuilder() {
if (openResBuilder_ == null) {
if (!(resCase_ == 1)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
openResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 1;
onChanged();;
return openResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder> commitResBuilder_;
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getCommitRes() {
if (commitResBuilder_ == null) {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
} else {
if (resCase_ == 2) {
return commitResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public Builder setCommitRes(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res value) {
if (commitResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
commitResBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public Builder setCommitRes(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder builderForValue) {
if (commitResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
commitResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public Builder mergeCommitRes(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res value) {
if (commitResBuilder_ == null) {
if (resCase_ == 2 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 2) {
commitResBuilder_.mergeFrom(value);
}
commitResBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public Builder clearCommitRes() {
if (commitResBuilder_ == null) {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
}
commitResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder getCommitResBuilder() {
return getCommitResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder getCommitResOrBuilder() {
if ((resCase_ == 2) && (commitResBuilder_ != null)) {
return commitResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Commit.Res commit_res = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder>
getCommitResFieldBuilder() {
if (commitResBuilder_ == null) {
if (!(resCase_ == 2)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
commitResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 2;
onChanged();;
return commitResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder> queryIterBuilder_;
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getQueryIter() {
if (queryIterBuilder_ == null) {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
} else {
if (resCase_ == 3) {
return queryIterBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public Builder setQueryIter(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter value) {
if (queryIterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
queryIterBuilder_.setMessage(value);
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public Builder setQueryIter(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder builderForValue) {
if (queryIterBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
queryIterBuilder_.setMessage(builderForValue.build());
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public Builder mergeQueryIter(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter value) {
if (queryIterBuilder_ == null) {
if (resCase_ == 3 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 3) {
queryIterBuilder_.mergeFrom(value);
}
queryIterBuilder_.setMessage(value);
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public Builder clearQueryIter() {
if (queryIterBuilder_ == null) {
if (resCase_ == 3) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 3) {
resCase_ = 0;
res_ = null;
}
queryIterBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder getQueryIterBuilder() {
return getQueryIterFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder getQueryIterOrBuilder() {
if ((resCase_ == 3) && (queryIterBuilder_ != null)) {
return queryIterBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Iter query_iter = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder>
getQueryIterFieldBuilder() {
if (queryIterBuilder_ == null) {
if (!(resCase_ == 3)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
queryIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 3;
onChanged();;
return queryIterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder> iterateResBuilder_;
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getIterateRes() {
if (iterateResBuilder_ == null) {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
} else {
if (resCase_ == 4) {
return iterateResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public Builder setIterateRes(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res value) {
if (iterateResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
iterateResBuilder_.setMessage(value);
}
resCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public Builder setIterateRes(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder builderForValue) {
if (iterateResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
iterateResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public Builder mergeIterateRes(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res value) {
if (iterateResBuilder_ == null) {
if (resCase_ == 4 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 4) {
iterateResBuilder_.mergeFrom(value);
}
iterateResBuilder_.setMessage(value);
}
resCase_ = 4;
return this;
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public Builder clearIterateRes() {
if (iterateResBuilder_ == null) {
if (resCase_ == 4) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 4) {
resCase_ = 0;
res_ = null;
}
iterateResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder getIterateResBuilder() {
return getIterateResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder getIterateResOrBuilder() {
if ((resCase_ == 4) && (iterateResBuilder_ != null)) {
return iterateResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Iter.Res iterate_res = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder>
getIterateResFieldBuilder() {
if (iterateResBuilder_ == null) {
if (!(resCase_ == 4)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
iterateResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 4;
onChanged();;
return iterateResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder> getSchemaConceptResBuilder_;
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getGetSchemaConceptRes() {
if (getSchemaConceptResBuilder_ == null) {
if (resCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
} else {
if (resCase_ == 5) {
return getSchemaConceptResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public Builder setGetSchemaConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res value) {
if (getSchemaConceptResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
getSchemaConceptResBuilder_.setMessage(value);
}
resCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public Builder setGetSchemaConceptRes(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder builderForValue) {
if (getSchemaConceptResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
getSchemaConceptResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public Builder mergeGetSchemaConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res value) {
if (getSchemaConceptResBuilder_ == null) {
if (resCase_ == 5 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 5) {
getSchemaConceptResBuilder_.mergeFrom(value);
}
getSchemaConceptResBuilder_.setMessage(value);
}
resCase_ = 5;
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public Builder clearGetSchemaConceptRes() {
if (getSchemaConceptResBuilder_ == null) {
if (resCase_ == 5) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 5) {
resCase_ = 0;
res_ = null;
}
getSchemaConceptResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder getGetSchemaConceptResBuilder() {
return getGetSchemaConceptResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder getGetSchemaConceptResOrBuilder() {
if ((resCase_ == 5) && (getSchemaConceptResBuilder_ != null)) {
return getSchemaConceptResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 5) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetSchemaConcept.Res getSchemaConcept_res = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder>
getGetSchemaConceptResFieldBuilder() {
if (getSchemaConceptResBuilder_ == null) {
if (!(resCase_ == 5)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
getSchemaConceptResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 5;
onChanged();;
return getSchemaConceptResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder> getConceptResBuilder_;
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getGetConceptRes() {
if (getConceptResBuilder_ == null) {
if (resCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
} else {
if (resCase_ == 6) {
return getConceptResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public Builder setGetConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res value) {
if (getConceptResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
getConceptResBuilder_.setMessage(value);
}
resCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public Builder setGetConceptRes(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder builderForValue) {
if (getConceptResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
getConceptResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public Builder mergeGetConceptRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res value) {
if (getConceptResBuilder_ == null) {
if (resCase_ == 6 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 6) {
getConceptResBuilder_.mergeFrom(value);
}
getConceptResBuilder_.setMessage(value);
}
resCase_ = 6;
return this;
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public Builder clearGetConceptRes() {
if (getConceptResBuilder_ == null) {
if (resCase_ == 6) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 6) {
resCase_ = 0;
res_ = null;
}
getConceptResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder getGetConceptResBuilder() {
return getGetConceptResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder getGetConceptResOrBuilder() {
if ((resCase_ == 6) && (getConceptResBuilder_ != null)) {
return getConceptResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 6) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetConcept.Res getConcept_res = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder>
getGetConceptResFieldBuilder() {
if (getConceptResBuilder_ == null) {
if (!(resCase_ == 6)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
getConceptResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 6;
onChanged();;
return getConceptResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder> getAttributesIterBuilder_;
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getGetAttributesIter() {
if (getAttributesIterBuilder_ == null) {
if (resCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
} else {
if (resCase_ == 7) {
return getAttributesIterBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public Builder setGetAttributesIter(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter value) {
if (getAttributesIterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
getAttributesIterBuilder_.setMessage(value);
}
resCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public Builder setGetAttributesIter(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder builderForValue) {
if (getAttributesIterBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
getAttributesIterBuilder_.setMessage(builderForValue.build());
}
resCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public Builder mergeGetAttributesIter(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter value) {
if (getAttributesIterBuilder_ == null) {
if (resCase_ == 7 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 7) {
getAttributesIterBuilder_.mergeFrom(value);
}
getAttributesIterBuilder_.setMessage(value);
}
resCase_ = 7;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public Builder clearGetAttributesIter() {
if (getAttributesIterBuilder_ == null) {
if (resCase_ == 7) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 7) {
resCase_ = 0;
res_ = null;
}
getAttributesIterBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder getGetAttributesIterBuilder() {
return getGetAttributesIterFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder getGetAttributesIterOrBuilder() {
if ((resCase_ == 7) && (getAttributesIterBuilder_ != null)) {
return getAttributesIterBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 7) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Iter getAttributes_iter = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder>
getGetAttributesIterFieldBuilder() {
if (getAttributesIterBuilder_ == null) {
if (!(resCase_ == 7)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
getAttributesIterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 7;
onChanged();;
return getAttributesIterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder> putEntityTypeResBuilder_;
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getPutEntityTypeRes() {
if (putEntityTypeResBuilder_ == null) {
if (resCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
} else {
if (resCase_ == 8) {
return putEntityTypeResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public Builder setPutEntityTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res value) {
if (putEntityTypeResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
putEntityTypeResBuilder_.setMessage(value);
}
resCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public Builder setPutEntityTypeRes(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder builderForValue) {
if (putEntityTypeResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
putEntityTypeResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public Builder mergePutEntityTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res value) {
if (putEntityTypeResBuilder_ == null) {
if (resCase_ == 8 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 8) {
putEntityTypeResBuilder_.mergeFrom(value);
}
putEntityTypeResBuilder_.setMessage(value);
}
resCase_ = 8;
return this;
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public Builder clearPutEntityTypeRes() {
if (putEntityTypeResBuilder_ == null) {
if (resCase_ == 8) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 8) {
resCase_ = 0;
res_ = null;
}
putEntityTypeResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder getPutEntityTypeResBuilder() {
return getPutEntityTypeResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder getPutEntityTypeResOrBuilder() {
if ((resCase_ == 8) && (putEntityTypeResBuilder_ != null)) {
return putEntityTypeResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 8) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutEntityType.Res putEntityType_res = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder>
getPutEntityTypeResFieldBuilder() {
if (putEntityTypeResBuilder_ == null) {
if (!(resCase_ == 8)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
putEntityTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 8;
onChanged();;
return putEntityTypeResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder> putAttributeTypeResBuilder_;
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getPutAttributeTypeRes() {
if (putAttributeTypeResBuilder_ == null) {
if (resCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
} else {
if (resCase_ == 9) {
return putAttributeTypeResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public Builder setPutAttributeTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res value) {
if (putAttributeTypeResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
putAttributeTypeResBuilder_.setMessage(value);
}
resCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public Builder setPutAttributeTypeRes(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder builderForValue) {
if (putAttributeTypeResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
putAttributeTypeResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public Builder mergePutAttributeTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res value) {
if (putAttributeTypeResBuilder_ == null) {
if (resCase_ == 9 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 9) {
putAttributeTypeResBuilder_.mergeFrom(value);
}
putAttributeTypeResBuilder_.setMessage(value);
}
resCase_ = 9;
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public Builder clearPutAttributeTypeRes() {
if (putAttributeTypeResBuilder_ == null) {
if (resCase_ == 9) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 9) {
resCase_ = 0;
res_ = null;
}
putAttributeTypeResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder getPutAttributeTypeResBuilder() {
return getPutAttributeTypeResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder getPutAttributeTypeResOrBuilder() {
if ((resCase_ == 9) && (putAttributeTypeResBuilder_ != null)) {
return putAttributeTypeResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 9) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutAttributeType.Res putAttributeType_res = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder>
getPutAttributeTypeResFieldBuilder() {
if (putAttributeTypeResBuilder_ == null) {
if (!(resCase_ == 9)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
putAttributeTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 9;
onChanged();;
return putAttributeTypeResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder> putRelationTypeResBuilder_;
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getPutRelationTypeRes() {
if (putRelationTypeResBuilder_ == null) {
if (resCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
} else {
if (resCase_ == 10) {
return putRelationTypeResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public Builder setPutRelationTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res value) {
if (putRelationTypeResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
putRelationTypeResBuilder_.setMessage(value);
}
resCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public Builder setPutRelationTypeRes(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder builderForValue) {
if (putRelationTypeResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
putRelationTypeResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public Builder mergePutRelationTypeRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res value) {
if (putRelationTypeResBuilder_ == null) {
if (resCase_ == 10 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 10) {
putRelationTypeResBuilder_.mergeFrom(value);
}
putRelationTypeResBuilder_.setMessage(value);
}
resCase_ = 10;
return this;
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public Builder clearPutRelationTypeRes() {
if (putRelationTypeResBuilder_ == null) {
if (resCase_ == 10) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 10) {
resCase_ = 0;
res_ = null;
}
putRelationTypeResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder getPutRelationTypeResBuilder() {
return getPutRelationTypeResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder getPutRelationTypeResOrBuilder() {
if ((resCase_ == 10) && (putRelationTypeResBuilder_ != null)) {
return putRelationTypeResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 10) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRelationType.Res putRelationType_res = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder>
getPutRelationTypeResFieldBuilder() {
if (putRelationTypeResBuilder_ == null) {
if (!(resCase_ == 10)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
putRelationTypeResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 10;
onChanged();;
return putRelationTypeResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder> putRoleResBuilder_;
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getPutRoleRes() {
if (putRoleResBuilder_ == null) {
if (resCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
} else {
if (resCase_ == 11) {
return putRoleResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public Builder setPutRoleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res value) {
if (putRoleResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
putRoleResBuilder_.setMessage(value);
}
resCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public Builder setPutRoleRes(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder builderForValue) {
if (putRoleResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
putRoleResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public Builder mergePutRoleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res value) {
if (putRoleResBuilder_ == null) {
if (resCase_ == 11 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 11) {
putRoleResBuilder_.mergeFrom(value);
}
putRoleResBuilder_.setMessage(value);
}
resCase_ = 11;
return this;
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public Builder clearPutRoleRes() {
if (putRoleResBuilder_ == null) {
if (resCase_ == 11) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 11) {
resCase_ = 0;
res_ = null;
}
putRoleResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder getPutRoleResBuilder() {
return getPutRoleResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder getPutRoleResOrBuilder() {
if ((resCase_ == 11) && (putRoleResBuilder_ != null)) {
return putRoleResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 11) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRole.Res putRole_res = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder>
getPutRoleResFieldBuilder() {
if (putRoleResBuilder_ == null) {
if (!(resCase_ == 11)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
putRoleResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 11;
onChanged();;
return putRoleResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder> putRuleResBuilder_;
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getPutRuleRes() {
if (putRuleResBuilder_ == null) {
if (resCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
} else {
if (resCase_ == 12) {
return putRuleResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public Builder setPutRuleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res value) {
if (putRuleResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
putRuleResBuilder_.setMessage(value);
}
resCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public Builder setPutRuleRes(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder builderForValue) {
if (putRuleResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
putRuleResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public Builder mergePutRuleRes(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res value) {
if (putRuleResBuilder_ == null) {
if (resCase_ == 12 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 12) {
putRuleResBuilder_.mergeFrom(value);
}
putRuleResBuilder_.setMessage(value);
}
resCase_ = 12;
return this;
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public Builder clearPutRuleRes() {
if (putRuleResBuilder_ == null) {
if (resCase_ == 12) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 12) {
resCase_ = 0;
res_ = null;
}
putRuleResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder getPutRuleResBuilder() {
return getPutRuleResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder getPutRuleResOrBuilder() {
if ((resCase_ == 12) && (putRuleResBuilder_ != null)) {
return putRuleResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 12) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.PutRule.Res putRule_res = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder>
getPutRuleResFieldBuilder() {
if (putRuleResBuilder_ == null) {
if (!(resCase_ == 12)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
putRuleResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 12;
onChanged();;
return putRuleResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder> conceptMethodResBuilder_;
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res getConceptMethodRes() {
if (conceptMethodResBuilder_ == null) {
if (resCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
} else {
if (resCase_ == 13) {
return conceptMethodResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public Builder setConceptMethodRes(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res value) {
if (conceptMethodResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
conceptMethodResBuilder_.setMessage(value);
}
resCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public Builder setConceptMethodRes(
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder builderForValue) {
if (conceptMethodResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
conceptMethodResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public Builder mergeConceptMethodRes(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res value) {
if (conceptMethodResBuilder_ == null) {
if (resCase_ == 13 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 13) {
conceptMethodResBuilder_.mergeFrom(value);
}
conceptMethodResBuilder_.setMessage(value);
}
resCase_ = 13;
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public Builder clearConceptMethodRes() {
if (conceptMethodResBuilder_ == null) {
if (resCase_ == 13) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 13) {
resCase_ = 0;
res_ = null;
}
conceptMethodResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder getConceptMethodResBuilder() {
return getConceptMethodResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder getConceptMethodResOrBuilder() {
if ((resCase_ == 13) && (conceptMethodResBuilder_ != null)) {
return conceptMethodResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 13) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.ConceptMethod.Res conceptMethod_res = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder>
getConceptMethodResFieldBuilder() {
if (conceptMethodResBuilder_ == null) {
if (!(resCase_ == 13)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.getDefaultInstance();
}
conceptMethodResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 13;
onChanged();;
return conceptMethodResBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IterOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Iter)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Iter}
*/
public static final class Iter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Iter)
IterOrBuilder {
// Use Iter.newBuilder() to construct.
private Iter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Iter() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Iter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Iter.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 id = 1;
*/
int getId();
}
/**
* Protobuf type {@code session.Transaction.Iter.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Iter.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
id_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
id_ = input.readInt32();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeInt32(1, id_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) obj;
boolean result = true;
result = result && (getId()
== other.getId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Iter.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Iter.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req(this);
result.id_ = id_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional int32 id = 1;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* optional int32 id = 1;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Iter.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Iter.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Iter.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional bool done = 1;
*/
boolean getDone();
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes();
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder();
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes();
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder();
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes();
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder();
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.ResCase getResCase();
}
/**
* Protobuf type {@code session.Transaction.Iter.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Iter.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
resCase_ = 1;
res_ = input.readBool();
break;
}
case 18: {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder subBuilder = null;
if (resCase_ == 2) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 2;
break;
}
case 26: {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder subBuilder = null;
if (resCase_ == 3) {
subBuilder = ((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 3;
break;
}
case 34: {
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder subBuilder = null;
if (resCase_ == 4) {
subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 4;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder.class);
}
private int resCase_ = 0;
private java.lang.Object res_;
public enum ResCase
implements com.google.protobuf.Internal.EnumLite {
DONE(1),
QUERY_ITER_RES(2),
GETATTRIBUTES_ITER_RES(3),
CONCEPTMETHOD_ITER_RES(4),
RES_NOT_SET(0);
private final int value;
private ResCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResCase valueOf(int value) {
return forNumber(value);
}
public static ResCase forNumber(int value) {
switch (value) {
case 1: return DONE;
case 2: return QUERY_ITER_RES;
case 3: return GETATTRIBUTES_ITER_RES;
case 4: return CONCEPTMETHOD_ITER_RES;
case 0: return RES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public static final int DONE_FIELD_NUMBER = 1;
/**
* optional bool done = 1;
*/
public boolean getDone() {
if (resCase_ == 1) {
return (java.lang.Boolean) res_;
}
return false;
}
public static final int QUERY_ITER_RES_FIELD_NUMBER = 2;
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
public static final int GETATTRIBUTES_ITER_RES_FIELD_NUMBER = 3;
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes() {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder() {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
public static final int CONCEPTMETHOD_ITER_RES_FIELD_NUMBER = 4;
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes() {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder() {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (resCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) res_));
}
if (resCase_ == 2) {
output.writeMessage(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_);
}
if (resCase_ == 3) {
output.writeMessage(3, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_);
}
if (resCase_ == 4) {
output.writeMessage(4, (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) res_));
}
if (resCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_);
}
if (resCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_);
}
if (resCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) obj;
boolean result = true;
result = result && getResCase().equals(
other.getResCase());
if (!result) return false;
switch (resCase_) {
case 1:
result = result && (getDone()
== other.getDone());
break;
case 2:
result = result && getQueryIterRes()
.equals(other.getQueryIterRes());
break;
case 3:
result = result && getGetAttributesIterRes()
.equals(other.getGetAttributesIterRes());
break;
case 4:
result = result && getConceptMethodIterRes()
.equals(other.getConceptMethodIterRes());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
switch (resCase_) {
case 1:
hash = (37 * hash) + DONE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDone());
break;
case 2:
hash = (37 * hash) + QUERY_ITER_RES_FIELD_NUMBER;
hash = (53 * hash) + getQueryIterRes().hashCode();
break;
case 3:
hash = (37 * hash) + GETATTRIBUTES_ITER_RES_FIELD_NUMBER;
hash = (53 * hash) + getGetAttributesIterRes().hashCode();
break;
case 4:
hash = (37 * hash) + CONCEPTMETHOD_ITER_RES_FIELD_NUMBER;
hash = (53 * hash) + getConceptMethodIterRes().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Iter.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Iter.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
resCase_ = 0;
res_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res(this);
if (resCase_ == 1) {
result.res_ = res_;
}
if (resCase_ == 2) {
if (queryIterResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = queryIterResBuilder_.build();
}
}
if (resCase_ == 3) {
if (getAttributesIterResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = getAttributesIterResBuilder_.build();
}
}
if (resCase_ == 4) {
if (conceptMethodIterResBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = conceptMethodIterResBuilder_.build();
}
}
result.resCase_ = resCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res.getDefaultInstance()) return this;
switch (other.getResCase()) {
case DONE: {
setDone(other.getDone());
break;
}
case QUERY_ITER_RES: {
mergeQueryIterRes(other.getQueryIterRes());
break;
}
case GETATTRIBUTES_ITER_RES: {
mergeGetAttributesIterRes(other.getGetAttributesIterRes());
break;
}
case CONCEPTMETHOD_ITER_RES: {
mergeConceptMethodIterRes(other.getConceptMethodIterRes());
break;
}
case RES_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resCase_ = 0;
private java.lang.Object res_;
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public Builder clearRes() {
resCase_ = 0;
res_ = null;
onChanged();
return this;
}
/**
* optional bool done = 1;
*/
public boolean getDone() {
if (resCase_ == 1) {
return (java.lang.Boolean) res_;
}
return false;
}
/**
* optional bool done = 1;
*/
public Builder setDone(boolean value) {
resCase_ = 1;
res_ = value;
onChanged();
return this;
}
/**
* optional bool done = 1;
*/
public Builder clearDone() {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder> queryIterResBuilder_;
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getQueryIterRes() {
if (queryIterResBuilder_ == null) {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
} else {
if (resCase_ == 2) {
return queryIterResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public Builder setQueryIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res value) {
if (queryIterResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
queryIterResBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public Builder setQueryIterRes(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder builderForValue) {
if (queryIterResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
queryIterResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public Builder mergeQueryIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res value) {
if (queryIterResBuilder_ == null) {
if (resCase_ == 2 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 2) {
queryIterResBuilder_.mergeFrom(value);
}
queryIterResBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public Builder clearQueryIterRes() {
if (queryIterResBuilder_ == null) {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
}
queryIterResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder getQueryIterResBuilder() {
return getQueryIterResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder getQueryIterResOrBuilder() {
if ((resCase_ == 2) && (queryIterResBuilder_ != null)) {
return queryIterResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.Query.Iter.Res query_iter_res = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder>
getQueryIterResFieldBuilder() {
if (queryIterResBuilder_ == null) {
if (!(resCase_ == 2)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
queryIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 2;
onChanged();;
return queryIterResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder> getAttributesIterResBuilder_;
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getGetAttributesIterRes() {
if (getAttributesIterResBuilder_ == null) {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
} else {
if (resCase_ == 3) {
return getAttributesIterResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public Builder setGetAttributesIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res value) {
if (getAttributesIterResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
getAttributesIterResBuilder_.setMessage(value);
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public Builder setGetAttributesIterRes(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder builderForValue) {
if (getAttributesIterResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
getAttributesIterResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public Builder mergeGetAttributesIterRes(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res value) {
if (getAttributesIterResBuilder_ == null) {
if (resCase_ == 3 &&
res_ != ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.newBuilder((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 3) {
getAttributesIterResBuilder_.mergeFrom(value);
}
getAttributesIterResBuilder_.setMessage(value);
}
resCase_ = 3;
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public Builder clearGetAttributesIterRes() {
if (getAttributesIterResBuilder_ == null) {
if (resCase_ == 3) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 3) {
resCase_ = 0;
res_ = null;
}
getAttributesIterResBuilder_.clear();
}
return this;
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder getGetAttributesIterResBuilder() {
return getGetAttributesIterResFieldBuilder().getBuilder();
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder getGetAttributesIterResOrBuilder() {
if ((resCase_ == 3) && (getAttributesIterResBuilder_ != null)) {
return getAttributesIterResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 3) {
return (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_;
}
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Transaction.GetAttributes.Iter.Res getAttributes_iter_res = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder>
getGetAttributesIterResFieldBuilder() {
if (getAttributesIterResBuilder_ == null) {
if (!(resCase_ == 3)) {
res_ = ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
getAttributesIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder>(
(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 3;
onChanged();;
return getAttributesIterResBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder> conceptMethodIterResBuilder_;
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res getConceptMethodIterRes() {
if (conceptMethodIterResBuilder_ == null) {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
} else {
if (resCase_ == 4) {
return conceptMethodIterResBuilder_.getMessage();
}
return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public Builder setConceptMethodIterRes(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res value) {
if (conceptMethodIterResBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
conceptMethodIterResBuilder_.setMessage(value);
}
resCase_ = 4;
return this;
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public Builder setConceptMethodIterRes(
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder builderForValue) {
if (conceptMethodIterResBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
conceptMethodIterResBuilder_.setMessage(builderForValue.build());
}
resCase_ = 4;
return this;
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public Builder mergeConceptMethodIterRes(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res value) {
if (conceptMethodIterResBuilder_ == null) {
if (resCase_ == 4 &&
res_ != ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.newBuilder((ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 4) {
conceptMethodIterResBuilder_.mergeFrom(value);
}
conceptMethodIterResBuilder_.setMessage(value);
}
resCase_ = 4;
return this;
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public Builder clearConceptMethodIterRes() {
if (conceptMethodIterResBuilder_ == null) {
if (resCase_ == 4) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 4) {
resCase_ = 0;
res_ = null;
}
conceptMethodIterResBuilder_.clear();
}
return this;
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder getConceptMethodIterResBuilder() {
return getConceptMethodIterResFieldBuilder().getBuilder();
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder getConceptMethodIterResOrBuilder() {
if ((resCase_ == 4) && (conceptMethodIterResBuilder_ != null)) {
return conceptMethodIterResBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 4) {
return (ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
}
}
/**
* optional .session.Method.Iter.Res conceptMethod_iter_res = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder>
getConceptMethodIterResFieldBuilder() {
if (conceptMethodIterResBuilder_ == null) {
if (!(resCase_ == 4)) {
res_ = ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.getDefaultInstance();
}
conceptMethodIterResBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res, ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res.Builder, ai.grakn.rpc.proto.ConceptProto.Method.Iter.ResOrBuilder>(
(ai.grakn.rpc.proto.ConceptProto.Method.Iter.Res) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 4;
onChanged();;
return conceptMethodIterResBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Iter.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Iter.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Iter other = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Iter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Iter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Iter)
ai.grakn.rpc.proto.SessionProto.Transaction.IterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Iter.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Iter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Iter_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Iter.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter result = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Iter) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Iter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Iter other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Iter.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Iter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Iter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Iter)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Iter)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Iter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Iter();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Iter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Iter(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Iter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Open)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Open}
*/
public static final class Open extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Open)
OpenOrBuilder {
// Use Open.newBuilder() to construct.
private Open(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Open() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Open(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Open.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string keyspace = 1;
*/
java.lang.String getKeyspace();
/**
* optional string keyspace = 1;
*/
com.google.protobuf.ByteString
getKeyspaceBytes();
/**
* optional .session.Transaction.Type type = 2;
*/
int getTypeValue();
/**
* optional .session.Transaction.Type type = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Type getType();
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
java.lang.String getUsername();
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
com.google.protobuf.ByteString
getUsernameBytes();
/**
* optional string password = 4;
*/
java.lang.String getPassword();
/**
* optional string password = 4;
*/
com.google.protobuf.ByteString
getPasswordBytes();
}
/**
* Protobuf type {@code session.Transaction.Open.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Open.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
keyspace_ = "";
type_ = 0;
username_ = "";
password_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
keyspace_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
username_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
password_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder.class);
}
public static final int KEYSPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object keyspace_;
/**
* optional string keyspace = 1;
*/
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
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();
keyspace_ = s;
return s;
}
}
/**
* optional string keyspace = 1;
*/
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* optional .session.Transaction.Type type = 2;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .session.Transaction.Type type = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Type getType() {
ai.grakn.rpc.proto.SessionProto.Transaction.Type result = ai.grakn.rpc.proto.SessionProto.Transaction.Type.valueOf(type_);
return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Type.UNRECOGNIZED : result;
}
public static final int USERNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object username_;
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public java.lang.String getUsername() {
java.lang.Object ref = username_;
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();
username_ = s;
return s;
}
}
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public com.google.protobuf.ByteString
getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 4;
private volatile java.lang.Object password_;
/**
* optional string password = 4;
*/
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();
password_ = s;
return s;
}
}
/**
* optional string password = 4;
*/
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;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKeyspaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyspace_);
}
if (type_ != ai.grakn.rpc.proto.SessionProto.Transaction.Type.READ.getNumber()) {
output.writeEnum(2, type_);
}
if (!getUsernameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_);
}
if (!getPasswordBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyspaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyspace_);
}
if (type_ != ai.grakn.rpc.proto.SessionProto.Transaction.Type.READ.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (!getUsernameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_);
}
if (!getPasswordBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) obj;
boolean result = true;
result = result && getKeyspace()
.equals(other.getKeyspace());
result = result && type_ == other.type_;
result = result && getUsername()
.equals(other.getUsername());
result = result && getPassword()
.equals(other.getPassword());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + KEYSPACE_FIELD_NUMBER;
hash = (53 * hash) + getKeyspace().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getUsername().hashCode();
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Open.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Open.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.Open.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
keyspace_ = "";
type_ = 0;
username_ = "";
password_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req(this);
result.keyspace_ = keyspace_;
result.type_ = type_;
result.username_ = username_;
result.password_ = password_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req.getDefaultInstance()) return this;
if (!other.getKeyspace().isEmpty()) {
keyspace_ = other.keyspace_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getUsername().isEmpty()) {
username_ = other.username_;
onChanged();
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object keyspace_ = "";
/**
* optional string keyspace = 1;
*/
public java.lang.String getKeyspace() {
java.lang.Object ref = keyspace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyspace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string keyspace = 1;
*/
public com.google.protobuf.ByteString
getKeyspaceBytes() {
java.lang.Object ref = keyspace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyspace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string keyspace = 1;
*/
public Builder setKeyspace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyspace_ = value;
onChanged();
return this;
}
/**
* optional string keyspace = 1;
*/
public Builder clearKeyspace() {
keyspace_ = getDefaultInstance().getKeyspace();
onChanged();
return this;
}
/**
* optional string keyspace = 1;
*/
public Builder setKeyspaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyspace_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .session.Transaction.Type type = 2;
*/
public int getTypeValue() {
return type_;
}
/**
* optional .session.Transaction.Type type = 2;
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
* optional .session.Transaction.Type type = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Type getType() {
ai.grakn.rpc.proto.SessionProto.Transaction.Type result = ai.grakn.rpc.proto.SessionProto.Transaction.Type.valueOf(type_);
return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Type.UNRECOGNIZED : result;
}
/**
* optional .session.Transaction.Type type = 2;
*/
public Builder setType(ai.grakn.rpc.proto.SessionProto.Transaction.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .session.Transaction.Type type = 2;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object username_ = "";
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public java.lang.String getUsername() {
java.lang.Object ref = username_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
username_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public com.google.protobuf.ByteString
getUsernameBytes() {
java.lang.Object ref = username_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
username_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public Builder setUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
username_ = value;
onChanged();
return this;
}
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public Builder clearUsername() {
username_ = getDefaultInstance().getUsername();
onChanged();
return this;
}
/**
*
* Fields ignored in the open-source version.
*
*
* optional string username = 3;
*/
public Builder setUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
username_ = value;
onChanged();
return this;
}
private java.lang.Object password_ = "";
/**
* optional string password = 4;
*/
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();
password_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string password = 4;
*/
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;
}
}
/**
* optional string password = 4;
*/
public Builder setPassword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
return this;
}
/**
* optional string password = 4;
*/
public Builder clearPassword() {
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
}
/**
* optional string password = 4;
*/
public Builder setPasswordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
password_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Open.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Open.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Open.Res)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Open.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Open.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Open.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Open.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.Open.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Open.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Open.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Open other = (ai.grakn.rpc.proto.SessionProto.Transaction.Open) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open 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 ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Open prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Open}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Open)
ai.grakn.rpc.proto.SessionProto.Transaction.OpenOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Open.class, ai.grakn.rpc.proto.SessionProto.Transaction.Open.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Open.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Open_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Open.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Open result = new ai.grakn.rpc.proto.SessionProto.Transaction.Open(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Open) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Open)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Open other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Open.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Open parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Open) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Open)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Open)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Open DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Open();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Open getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Open parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Open(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Open getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommitOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Commit)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Commit}
*/
public static final class Commit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Commit)
CommitOrBuilder {
// Use Commit.newBuilder() to construct.
private Commit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Commit() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Commit(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Commit.Req)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Commit.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Commit.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Commit.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Commit.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Commit.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Commit.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Commit.Res)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Commit.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Commit.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder.class);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Commit.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Commit.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Commit.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Commit.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Commit other = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit 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 ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Commit prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Commit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Commit)
ai.grakn.rpc.proto.SessionProto.Transaction.CommitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Commit.class, ai.grakn.rpc.proto.SessionProto.Transaction.Commit.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Commit.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Commit_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Commit.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit result = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Commit) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Commit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Commit other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Commit.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Commit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Commit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Commit)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Commit)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Commit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Commit();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Commit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Commit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Commit(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Commit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Query)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.Query}
*/
public static final class Query extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Query)
QueryOrBuilder {
// Use Query.newBuilder() to construct.
private Query(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Query() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Query(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Builder.class);
}
/**
* Protobuf enum {@code session.Transaction.Query.INFER}
*/
public enum INFER
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TRUE = 0;
*/
TRUE(0),
/**
*
* The default value of this enum is 0 (TRUE)
*
*
* FALSE = 1;
*/
FALSE(1),
UNRECOGNIZED(-1),
;
/**
* TRUE = 0;
*/
public static final int TRUE_VALUE = 0;
/**
*
* The default value of this enum is 0 (TRUE)
*
*
* FALSE = 1;
*/
public static final int FALSE_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static INFER valueOf(int value) {
return forNumber(value);
}
public static INFER forNumber(int value) {
switch (value) {
case 0: return TRUE;
case 1: return FALSE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
INFER> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public INFER findValueByNumber(int number) {
return INFER.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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.getDescriptor().getEnumTypes().get(0);
}
private static final INFER[] VALUES = values();
public static INFER valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private INFER(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:session.Transaction.Query.INFER)
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Query.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string query = 1;
*/
java.lang.String getQuery();
/**
* optional string query = 1;
*/
com.google.protobuf.ByteString
getQueryBytes();
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
int getInferValue();
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER getInfer();
}
/**
* Protobuf type {@code session.Transaction.Query.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Query.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
query_ = "";
infer_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
query_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
infer_ = rawValue;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder.class);
}
public static final int QUERY_FIELD_NUMBER = 1;
private volatile java.lang.Object query_;
/**
* optional 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();
query_ = s;
return s;
}
}
/**
* optional 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 INFER_FIELD_NUMBER = 2;
private int infer_;
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public int getInferValue() {
return infer_;
}
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER getInfer() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER result = ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.valueOf(infer_);
return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getQueryBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
}
if (infer_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.TRUE.getNumber()) {
output.writeEnum(2, infer_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getQueryBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
}
if (infer_ != ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.TRUE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, infer_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) obj;
boolean result = true;
result = result && getQuery()
.equals(other.getQuery());
result = result && infer_ == other.infer_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().hashCode();
hash = (37 * hash) + INFER_FIELD_NUMBER;
hash = (53 * hash) + infer_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Query.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Query.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.Query.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
query_ = "";
infer_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req(this);
result.query_ = query_;
result.infer_ = infer_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req.getDefaultInstance()) return this;
if (!other.getQuery().isEmpty()) {
query_ = other.query_;
onChanged();
}
if (other.infer_ != 0) {
setInferValue(other.getInferValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object query_ = "";
/**
* optional 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();
query_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string query = 1;
*/
public Builder setQuery(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
return this;
}
/**
* optional string query = 1;
*/
public Builder clearQuery() {
query_ = getDefaultInstance().getQuery();
onChanged();
return this;
}
/**
* optional string query = 1;
*/
public Builder setQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
query_ = value;
onChanged();
return this;
}
private int infer_ = 0;
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public int getInferValue() {
return infer_;
}
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public Builder setInferValue(int value) {
infer_ = value;
onChanged();
return this;
}
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER getInfer() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER result = ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.valueOf(infer_);
return result == null ? ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER.UNRECOGNIZED : result;
}
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public Builder setInfer(ai.grakn.rpc.proto.SessionProto.Transaction.Query.INFER value) {
if (value == null) {
throw new NullPointerException();
}
infer_ = value.getNumber();
onChanged();
return this;
}
/**
*
* We cannot use bool for `infer` because GRPC's default value for bool is FALSE
* We use enum INFER instead, because the default value is index 0 (TRUE)
*
*
* optional .session.Transaction.Query.INFER infer = 2;
*/
public Builder clearInfer() {
infer_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Query.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Query.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IterOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Query.Iter)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 id = 1;
*/
int getId();
}
/**
* Protobuf type {@code session.Transaction.Query.Iter}
*/
public static final class Iter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Query.Iter)
IterOrBuilder {
// Use Iter.newBuilder() to construct.
private Iter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Iter() {
id_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Iter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
id_ = input.readInt32();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder.class);
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.Query.Iter.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Answer answer = 1;
*/
boolean hasAnswer();
/**
* optional .session.Answer answer = 1;
*/
ai.grakn.rpc.proto.AnswerProto.Answer getAnswer();
/**
* optional .session.Answer answer = 1;
*/
ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswerOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.Query.Iter.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.Query.Iter.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.AnswerProto.Answer.Builder subBuilder = null;
if (answer_ != null) {
subBuilder = answer_.toBuilder();
}
answer_ = input.readMessage(ai.grakn.rpc.proto.AnswerProto.Answer.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(answer_);
answer_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder.class);
}
public static final int ANSWER_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.AnswerProto.Answer answer_;
/**
* optional .session.Answer answer = 1;
*/
public boolean hasAnswer() {
return answer_ != null;
}
/**
* optional .session.Answer answer = 1;
*/
public ai.grakn.rpc.proto.AnswerProto.Answer getAnswer() {
return answer_ == null ? ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance() : answer_;
}
/**
* optional .session.Answer answer = 1;
*/
public ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswerOrBuilder() {
return getAnswer();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (answer_ != null) {
output.writeMessage(1, getAnswer());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (answer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAnswer());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) obj;
boolean result = true;
result = result && (hasAnswer() == other.hasAnswer());
if (hasAnswer()) {
result = result && getAnswer()
.equals(other.getAnswer());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasAnswer()) {
hash = (37 * hash) + ANSWER_FIELD_NUMBER;
hash = (53 * hash) + getAnswer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Query.Iter.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Query.Iter.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (answerBuilder_ == null) {
answer_ = null;
} else {
answer_ = null;
answerBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res(this);
if (answerBuilder_ == null) {
result.answer_ = answer_;
} else {
result.answer_ = answerBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res.getDefaultInstance()) return this;
if (other.hasAnswer()) {
mergeAnswer(other.getAnswer());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.AnswerProto.Answer answer_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder> answerBuilder_;
/**
* optional .session.Answer answer = 1;
*/
public boolean hasAnswer() {
return answerBuilder_ != null || answer_ != null;
}
/**
* optional .session.Answer answer = 1;
*/
public ai.grakn.rpc.proto.AnswerProto.Answer getAnswer() {
if (answerBuilder_ == null) {
return answer_ == null ? ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance() : answer_;
} else {
return answerBuilder_.getMessage();
}
}
/**
* optional .session.Answer answer = 1;
*/
public Builder setAnswer(ai.grakn.rpc.proto.AnswerProto.Answer value) {
if (answerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
answer_ = value;
onChanged();
} else {
answerBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Answer answer = 1;
*/
public Builder setAnswer(
ai.grakn.rpc.proto.AnswerProto.Answer.Builder builderForValue) {
if (answerBuilder_ == null) {
answer_ = builderForValue.build();
onChanged();
} else {
answerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Answer answer = 1;
*/
public Builder mergeAnswer(ai.grakn.rpc.proto.AnswerProto.Answer value) {
if (answerBuilder_ == null) {
if (answer_ != null) {
answer_ =
ai.grakn.rpc.proto.AnswerProto.Answer.newBuilder(answer_).mergeFrom(value).buildPartial();
} else {
answer_ = value;
}
onChanged();
} else {
answerBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Answer answer = 1;
*/
public Builder clearAnswer() {
if (answerBuilder_ == null) {
answer_ = null;
onChanged();
} else {
answer_ = null;
answerBuilder_ = null;
}
return this;
}
/**
* optional .session.Answer answer = 1;
*/
public ai.grakn.rpc.proto.AnswerProto.Answer.Builder getAnswerBuilder() {
onChanged();
return getAnswerFieldBuilder().getBuilder();
}
/**
* optional .session.Answer answer = 1;
*/
public ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder getAnswerOrBuilder() {
if (answerBuilder_ != null) {
return answerBuilder_.getMessageOrBuilder();
} else {
return answer_ == null ?
ai.grakn.rpc.proto.AnswerProto.Answer.getDefaultInstance() : answer_;
}
}
/**
* optional .session.Answer answer = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder>
getAnswerFieldBuilder() {
if (answerBuilder_ == null) {
answerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.AnswerProto.Answer, ai.grakn.rpc.proto.AnswerProto.Answer.Builder, ai.grakn.rpc.proto.AnswerProto.AnswerOrBuilder>(
getAnswer(),
getParentForChildren(),
isClean());
answer_ = null;
}
return answerBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Query.Iter.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Query.Iter.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeInt32(1, id_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter other = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) obj;
boolean result = true;
result = result && (getId()
== other.getId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Query.Iter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Query.Iter)
ai.grakn.rpc.proto.SessionProto.Transaction.Query.IterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_Iter_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter result = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter(this);
result.id_ = id_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional int32 id = 1;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* optional int32 id = 1;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Query.Iter)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Query.Iter)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Iter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Iter(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query.Iter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.Query other = (ai.grakn.rpc.proto.SessionProto.Transaction.Query) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query 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 ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.Query prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.Query}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.Query)
ai.grakn.rpc.proto.SessionProto.Transaction.QueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.Query.class, ai.grakn.rpc.proto.SessionProto.Transaction.Query.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.Query.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_Query_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.Query.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query build() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.Query result = new ai.grakn.rpc.proto.SessionProto.Transaction.Query(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.Query) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.Query)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.Query other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.Query.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.Query parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.Query) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.Query)
}
// @@protoc_insertion_point(class_scope:session.Transaction.Query)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.Query DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.Query();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.Query getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Query parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Query(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.Query getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetSchemaConceptOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetSchemaConcept)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.GetSchemaConcept}
*/
public static final class GetSchemaConcept extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetSchemaConcept)
GetSchemaConceptOrBuilder {
// Use GetSchemaConcept.newBuilder() to construct.
private GetSchemaConcept(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSchemaConcept() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private GetSchemaConcept(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetSchemaConcept.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code session.Transaction.GetSchemaConcept.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetSchemaConcept.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetSchemaConcept.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetSchemaConcept.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req(this);
result.label_ = label_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetSchemaConcept.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetSchemaConcept.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetSchemaConcept.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept schemaConcept = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept();
/**
* optional .session.Concept schemaConcept = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder();
/**
* optional .session.Null null = 2;
*/
ai.grakn.rpc.proto.ConceptProto.Null getNull();
/**
* optional .session.Null null = 2;
*/
ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder();
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.ResCase getResCase();
}
/**
* Protobuf type {@code session.Transaction.GetSchemaConcept.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetSchemaConcept.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (resCase_ == 1) {
subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Concept) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 1;
break;
}
case 18: {
ai.grakn.rpc.proto.ConceptProto.Null.Builder subBuilder = null;
if (resCase_ == 2) {
subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Null) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.ConceptProto.Null.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Null) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 2;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder.class);
}
private int resCase_ = 0;
private java.lang.Object res_;
public enum ResCase
implements com.google.protobuf.Internal.EnumLite {
SCHEMACONCEPT(1),
NULL(2),
RES_NOT_SET(0);
private final int value;
private ResCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResCase valueOf(int value) {
return forNumber(value);
}
public static ResCase forNumber(int value) {
switch (value) {
case 1: return SCHEMACONCEPT;
case 2: return NULL;
case 0: return RES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public static final int SCHEMACONCEPT_FIELD_NUMBER = 1;
/**
* optional .session.Concept schemaConcept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
public static final int NULL_FIELD_NUMBER = 2;
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null getNull() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (resCase_ == 1) {
output.writeMessage(1, (ai.grakn.rpc.proto.ConceptProto.Concept) res_);
}
if (resCase_ == 2) {
output.writeMessage(2, (ai.grakn.rpc.proto.ConceptProto.Null) res_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.grakn.rpc.proto.ConceptProto.Concept) res_);
}
if (resCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.grakn.rpc.proto.ConceptProto.Null) res_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) obj;
boolean result = true;
result = result && getResCase().equals(
other.getResCase());
if (!result) return false;
switch (resCase_) {
case 1:
result = result && getSchemaConcept()
.equals(other.getSchemaConcept());
break;
case 2:
result = result && getNull()
.equals(other.getNull());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
switch (resCase_) {
case 1:
hash = (37 * hash) + SCHEMACONCEPT_FIELD_NUMBER;
hash = (53 * hash) + getSchemaConcept().hashCode();
break;
case 2:
hash = (37 * hash) + NULL_FIELD_NUMBER;
hash = (53 * hash) + getNull().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetSchemaConcept.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetSchemaConcept.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
resCase_ = 0;
res_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res(this);
if (resCase_ == 1) {
if (schemaConceptBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = schemaConceptBuilder_.build();
}
}
if (resCase_ == 2) {
if (nullBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = nullBuilder_.build();
}
}
result.resCase_ = resCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res.getDefaultInstance()) return this;
switch (other.getResCase()) {
case SCHEMACONCEPT: {
mergeSchemaConcept(other.getSchemaConcept());
break;
}
case NULL: {
mergeNull(other.getNull());
break;
}
case RES_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resCase_ = 0;
private java.lang.Object res_;
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public Builder clearRes() {
resCase_ = 0;
res_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> schemaConceptBuilder_;
/**
* optional .session.Concept schemaConcept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getSchemaConcept() {
if (schemaConceptBuilder_ == null) {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
} else {
if (resCase_ == 1) {
return schemaConceptBuilder_.getMessage();
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public Builder setSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (schemaConceptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
schemaConceptBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public Builder setSchemaConcept(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (schemaConceptBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
schemaConceptBuilder_.setMessage(builderForValue.build());
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public Builder mergeSchemaConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (schemaConceptBuilder_ == null) {
if (resCase_ == 1 &&
res_ != ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder((ai.grakn.rpc.proto.ConceptProto.Concept) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 1) {
schemaConceptBuilder_.mergeFrom(value);
}
schemaConceptBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public Builder clearSchemaConcept() {
if (schemaConceptBuilder_ == null) {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
}
schemaConceptBuilder_.clear();
}
return this;
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getSchemaConceptBuilder() {
return getSchemaConceptFieldBuilder().getBuilder();
}
/**
* optional .session.Concept schemaConcept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getSchemaConceptOrBuilder() {
if ((resCase_ == 1) && (schemaConceptBuilder_ != null)) {
return schemaConceptBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
}
/**
* optional .session.Concept schemaConcept = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getSchemaConceptFieldBuilder() {
if (schemaConceptBuilder_ == null) {
if (!(resCase_ == 1)) {
res_ = ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
schemaConceptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
(ai.grakn.rpc.proto.ConceptProto.Concept) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 1;
onChanged();;
return schemaConceptBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder> nullBuilder_;
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null getNull() {
if (nullBuilder_ == null) {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
} else {
if (resCase_ == 2) {
return nullBuilder_.getMessage();
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
}
/**
* optional .session.Null null = 2;
*/
public Builder setNull(ai.grakn.rpc.proto.ConceptProto.Null value) {
if (nullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
nullBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder setNull(
ai.grakn.rpc.proto.ConceptProto.Null.Builder builderForValue) {
if (nullBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
nullBuilder_.setMessage(builderForValue.build());
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder mergeNull(ai.grakn.rpc.proto.ConceptProto.Null value) {
if (nullBuilder_ == null) {
if (resCase_ == 2 &&
res_ != ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.ConceptProto.Null.newBuilder((ai.grakn.rpc.proto.ConceptProto.Null) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 2) {
nullBuilder_.mergeFrom(value);
}
nullBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder clearNull() {
if (nullBuilder_ == null) {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
}
nullBuilder_.clear();
}
return this;
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() {
return getNullFieldBuilder().getBuilder();
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder() {
if ((resCase_ == 2) && (nullBuilder_ != null)) {
return nullBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
}
/**
* optional .session.Null null = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder>
getNullFieldBuilder() {
if (nullBuilder_ == null) {
if (!(resCase_ == 2)) {
res_ = ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
nullBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder>(
(ai.grakn.rpc.proto.ConceptProto.Null) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 2;
onChanged();;
return nullBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetSchemaConcept.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetSchemaConcept.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetSchemaConcept}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetSchemaConcept)
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConceptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetSchemaConcept_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetSchemaConcept)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetSchemaConcept)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetSchemaConcept parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetSchemaConcept(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetSchemaConcept getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetConceptOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetConcept)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.GetConcept}
*/
public static final class GetConcept extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetConcept)
GetConceptOrBuilder {
// Use GetConcept.newBuilder() to construct.
private GetConcept(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetConcept() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private GetConcept(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetConcept.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string id = 1;
*/
java.lang.String getId();
/**
* optional string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
}
/**
* Protobuf type {@code session.Transaction.GetConcept.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetConcept.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
id_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetConcept.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetConcept.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req(this);
result.id_ = id_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetConcept.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetConcept.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetConcept.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept concept = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getConcept();
/**
* optional .session.Concept concept = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getConceptOrBuilder();
/**
* optional .session.Null null = 2;
*/
ai.grakn.rpc.proto.ConceptProto.Null getNull();
/**
* optional .session.Null null = 2;
*/
ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder();
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.ResCase getResCase();
}
/**
* Protobuf type {@code session.Transaction.GetConcept.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetConcept.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (resCase_ == 1) {
subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Concept) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Concept) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 1;
break;
}
case 18: {
ai.grakn.rpc.proto.ConceptProto.Null.Builder subBuilder = null;
if (resCase_ == 2) {
subBuilder = ((ai.grakn.rpc.proto.ConceptProto.Null) res_).toBuilder();
}
res_ =
input.readMessage(ai.grakn.rpc.proto.ConceptProto.Null.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.grakn.rpc.proto.ConceptProto.Null) res_);
res_ = subBuilder.buildPartial();
}
resCase_ = 2;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder.class);
}
private int resCase_ = 0;
private java.lang.Object res_;
public enum ResCase
implements com.google.protobuf.Internal.EnumLite {
CONCEPT(1),
NULL(2),
RES_NOT_SET(0);
private final int value;
private ResCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResCase valueOf(int value) {
return forNumber(value);
}
public static ResCase forNumber(int value) {
switch (value) {
case 1: return CONCEPT;
case 2: return NULL;
case 0: return RES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public static final int CONCEPT_FIELD_NUMBER = 1;
/**
* optional .session.Concept concept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getConcept() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
/**
* optional .session.Concept concept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getConceptOrBuilder() {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
public static final int NULL_FIELD_NUMBER = 2;
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null getNull() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder() {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (resCase_ == 1) {
output.writeMessage(1, (ai.grakn.rpc.proto.ConceptProto.Concept) res_);
}
if (resCase_ == 2) {
output.writeMessage(2, (ai.grakn.rpc.proto.ConceptProto.Null) res_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (resCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.grakn.rpc.proto.ConceptProto.Concept) res_);
}
if (resCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.grakn.rpc.proto.ConceptProto.Null) res_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) obj;
boolean result = true;
result = result && getResCase().equals(
other.getResCase());
if (!result) return false;
switch (resCase_) {
case 1:
result = result && getConcept()
.equals(other.getConcept());
break;
case 2:
result = result && getNull()
.equals(other.getNull());
break;
case 0:
default:
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
switch (resCase_) {
case 1:
hash = (37 * hash) + CONCEPT_FIELD_NUMBER;
hash = (53 * hash) + getConcept().hashCode();
break;
case 2:
hash = (37 * hash) + NULL_FIELD_NUMBER;
hash = (53 * hash) + getNull().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetConcept.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetConcept.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
resCase_ = 0;
res_ = null;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res(this);
if (resCase_ == 1) {
if (conceptBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = conceptBuilder_.build();
}
}
if (resCase_ == 2) {
if (nullBuilder_ == null) {
result.res_ = res_;
} else {
result.res_ = nullBuilder_.build();
}
}
result.resCase_ = resCase_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res.getDefaultInstance()) return this;
switch (other.getResCase()) {
case CONCEPT: {
mergeConcept(other.getConcept());
break;
}
case NULL: {
mergeNull(other.getNull());
break;
}
case RES_NOT_SET: {
break;
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resCase_ = 0;
private java.lang.Object res_;
public ResCase
getResCase() {
return ResCase.forNumber(
resCase_);
}
public Builder clearRes() {
resCase_ = 0;
res_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> conceptBuilder_;
/**
* optional .session.Concept concept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getConcept() {
if (conceptBuilder_ == null) {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
} else {
if (resCase_ == 1) {
return conceptBuilder_.getMessage();
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
}
/**
* optional .session.Concept concept = 1;
*/
public Builder setConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (conceptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
conceptBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept concept = 1;
*/
public Builder setConcept(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (conceptBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
conceptBuilder_.setMessage(builderForValue.build());
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept concept = 1;
*/
public Builder mergeConcept(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (conceptBuilder_ == null) {
if (resCase_ == 1 &&
res_ != ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder((ai.grakn.rpc.proto.ConceptProto.Concept) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 1) {
conceptBuilder_.mergeFrom(value);
}
conceptBuilder_.setMessage(value);
}
resCase_ = 1;
return this;
}
/**
* optional .session.Concept concept = 1;
*/
public Builder clearConcept() {
if (conceptBuilder_ == null) {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 1) {
resCase_ = 0;
res_ = null;
}
conceptBuilder_.clear();
}
return this;
}
/**
* optional .session.Concept concept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getConceptBuilder() {
return getConceptFieldBuilder().getBuilder();
}
/**
* optional .session.Concept concept = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getConceptOrBuilder() {
if ((resCase_ == 1) && (conceptBuilder_ != null)) {
return conceptBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 1) {
return (ai.grakn.rpc.proto.ConceptProto.Concept) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
}
/**
* optional .session.Concept concept = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getConceptFieldBuilder() {
if (conceptBuilder_ == null) {
if (!(resCase_ == 1)) {
res_ = ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance();
}
conceptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
(ai.grakn.rpc.proto.ConceptProto.Concept) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 1;
onChanged();;
return conceptBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder> nullBuilder_;
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null getNull() {
if (nullBuilder_ == null) {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
} else {
if (resCase_ == 2) {
return nullBuilder_.getMessage();
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
}
/**
* optional .session.Null null = 2;
*/
public Builder setNull(ai.grakn.rpc.proto.ConceptProto.Null value) {
if (nullBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
res_ = value;
onChanged();
} else {
nullBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder setNull(
ai.grakn.rpc.proto.ConceptProto.Null.Builder builderForValue) {
if (nullBuilder_ == null) {
res_ = builderForValue.build();
onChanged();
} else {
nullBuilder_.setMessage(builderForValue.build());
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder mergeNull(ai.grakn.rpc.proto.ConceptProto.Null value) {
if (nullBuilder_ == null) {
if (resCase_ == 2 &&
res_ != ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance()) {
res_ = ai.grakn.rpc.proto.ConceptProto.Null.newBuilder((ai.grakn.rpc.proto.ConceptProto.Null) res_)
.mergeFrom(value).buildPartial();
} else {
res_ = value;
}
onChanged();
} else {
if (resCase_ == 2) {
nullBuilder_.mergeFrom(value);
}
nullBuilder_.setMessage(value);
}
resCase_ = 2;
return this;
}
/**
* optional .session.Null null = 2;
*/
public Builder clearNull() {
if (nullBuilder_ == null) {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
onChanged();
}
} else {
if (resCase_ == 2) {
resCase_ = 0;
res_ = null;
}
nullBuilder_.clear();
}
return this;
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Null.Builder getNullBuilder() {
return getNullFieldBuilder().getBuilder();
}
/**
* optional .session.Null null = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.NullOrBuilder getNullOrBuilder() {
if ((resCase_ == 2) && (nullBuilder_ != null)) {
return nullBuilder_.getMessageOrBuilder();
} else {
if (resCase_ == 2) {
return (ai.grakn.rpc.proto.ConceptProto.Null) res_;
}
return ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
}
/**
* optional .session.Null null = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder>
getNullFieldBuilder() {
if (nullBuilder_ == null) {
if (!(resCase_ == 2)) {
res_ = ai.grakn.rpc.proto.ConceptProto.Null.getDefaultInstance();
}
nullBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Null, ai.grakn.rpc.proto.ConceptProto.Null.Builder, ai.grakn.rpc.proto.ConceptProto.NullOrBuilder>(
(ai.grakn.rpc.proto.ConceptProto.Null) res_,
getParentForChildren(),
isClean());
res_ = null;
}
resCase_ = 2;
onChanged();;
return nullBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetConcept.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetConcept.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetConcept}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetConcept)
ai.grakn.rpc.proto.SessionProto.Transaction.GetConceptOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetConcept_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetConcept)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetConcept)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetConcept parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetConcept(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetConcept getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetAttributesOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetAttributes)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.GetAttributes}
*/
public static final class GetAttributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetAttributes)
GetAttributesOrBuilder {
// Use GetAttributes.newBuilder() to construct.
private GetAttributes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetAttributes() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private GetAttributes(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetAttributes.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.ValueObject value = 1;
*/
boolean hasValue();
/**
* optional .session.ValueObject value = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ValueObject getValue();
/**
* optional .session.ValueObject value = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.GetAttributes.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetAttributes.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder subBuilder = null;
if (value_ != null) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.ValueObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.ValueObject value_;
/**
* optional .session.ValueObject value = 1;
*/
public boolean hasValue() {
return value_ != null;
}
/**
* optional .session.ValueObject value = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() {
return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_;
}
/**
* optional .session.ValueObject value = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder() {
return getValue();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != null) {
output.writeMessage(1, getValue());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getValue());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) obj;
boolean result = true;
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetAttributes.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetAttributes.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (valueBuilder_ == null) {
value_ = null;
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req(this);
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req.getDefaultInstance()) return this;
if (other.hasValue()) {
mergeValue(other.getValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.ValueObject value_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.ValueObject, ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder, ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder> valueBuilder_;
/**
* optional .session.ValueObject value = 1;
*/
public boolean hasValue() {
return valueBuilder_ != null || value_ != null;
}
/**
* optional .session.ValueObject value = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ValueObject getValue() {
if (valueBuilder_ == null) {
return value_ == null ? ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .session.ValueObject value = 1;
*/
public Builder setValue(ai.grakn.rpc.proto.ConceptProto.ValueObject value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.ValueObject value = 1;
*/
public Builder setValue(
ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.ValueObject value = 1;
*/
public Builder mergeValue(ai.grakn.rpc.proto.ConceptProto.ValueObject value) {
if (valueBuilder_ == null) {
if (value_ != null) {
value_ =
ai.grakn.rpc.proto.ConceptProto.ValueObject.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.ValueObject value = 1;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
value_ = null;
valueBuilder_ = null;
}
return this;
}
/**
* optional .session.ValueObject value = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder getValueBuilder() {
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .session.ValueObject value = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
ai.grakn.rpc.proto.ConceptProto.ValueObject.getDefaultInstance() : value_;
}
}
/**
* optional .session.ValueObject value = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.ValueObject, ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder, ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.ValueObject, ai.grakn.rpc.proto.ConceptProto.ValueObject.Builder, ai.grakn.rpc.proto.ConceptProto.ValueObjectOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetAttributes.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetAttributes.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IterOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetAttributes.Iter)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 id = 1;
*/
int getId();
}
/**
* Protobuf type {@code session.Transaction.GetAttributes.Iter}
*/
public static final class Iter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetAttributes.Iter)
IterOrBuilder {
// Use Iter.newBuilder() to construct.
private Iter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Iter() {
id_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Iter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
id_ = input.readInt32();
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder.class);
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.GetAttributes.Iter.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept attribute = 1;
*/
boolean hasAttribute();
/**
* optional .session.Concept attribute = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getAttribute();
/**
* optional .session.Concept attribute = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.GetAttributes.Iter.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.GetAttributes.Iter.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (attribute_ != null) {
subBuilder = attribute_.toBuilder();
}
attribute_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attribute_);
attribute_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder.class);
}
public static final int ATTRIBUTE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept attribute_;
/**
* optional .session.Concept attribute = 1;
*/
public boolean hasAttribute() {
return attribute_ != null;
}
/**
* optional .session.Concept attribute = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() {
return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_;
}
/**
* optional .session.Concept attribute = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder() {
return getAttribute();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (attribute_ != null) {
output.writeMessage(1, getAttribute());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (attribute_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAttribute());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) obj;
boolean result = true;
result = result && (hasAttribute() == other.hasAttribute());
if (hasAttribute()) {
result = result && getAttribute()
.equals(other.getAttribute());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasAttribute()) {
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttribute().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetAttributes.Iter.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetAttributes.Iter.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (attributeBuilder_ == null) {
attribute_ = null;
} else {
attribute_ = null;
attributeBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res(this);
if (attributeBuilder_ == null) {
result.attribute_ = attribute_;
} else {
result.attribute_ = attributeBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res.getDefaultInstance()) return this;
if (other.hasAttribute()) {
mergeAttribute(other.getAttribute());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept attribute_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> attributeBuilder_;
/**
* optional .session.Concept attribute = 1;
*/
public boolean hasAttribute() {
return attributeBuilder_ != null || attribute_ != null;
}
/**
* optional .session.Concept attribute = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getAttribute() {
if (attributeBuilder_ == null) {
return attribute_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_;
} else {
return attributeBuilder_.getMessage();
}
}
/**
* optional .session.Concept attribute = 1;
*/
public Builder setAttribute(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attribute_ = value;
onChanged();
} else {
attributeBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept attribute = 1;
*/
public Builder setAttribute(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (attributeBuilder_ == null) {
attribute_ = builderForValue.build();
onChanged();
} else {
attributeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept attribute = 1;
*/
public Builder mergeAttribute(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (attributeBuilder_ == null) {
if (attribute_ != null) {
attribute_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(attribute_).mergeFrom(value).buildPartial();
} else {
attribute_ = value;
}
onChanged();
} else {
attributeBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept attribute = 1;
*/
public Builder clearAttribute() {
if (attributeBuilder_ == null) {
attribute_ = null;
onChanged();
} else {
attribute_ = null;
attributeBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept attribute = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeBuilder() {
onChanged();
return getAttributeFieldBuilder().getBuilder();
}
/**
* optional .session.Concept attribute = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeOrBuilder() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilder();
} else {
return attribute_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attribute_;
}
}
/**
* optional .session.Concept attribute = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getAttribute(),
getParentForChildren(),
isClean());
attribute_ = null;
}
return attributeBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetAttributes.Iter.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetAttributes.Iter.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (id_ != 0) {
output.writeInt32(1, id_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) obj;
boolean result = true;
result = result && (getId()
== other.getId());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetAttributes.Iter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetAttributes.Iter)
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.IterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_Iter_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter(this);
result.id_ = id_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int id_ ;
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional int32 id = 1;
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* optional int32 id = 1;
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetAttributes.Iter)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetAttributes.Iter)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Iter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Iter(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Iter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes other = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes 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 ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.GetAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.GetAttributes)
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.class, ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_GetAttributes_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes build() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes result = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.GetAttributes)
}
// @@protoc_insertion_point(class_scope:session.Transaction.GetAttributes)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GetAttributes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetAttributes(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.GetAttributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutEntityTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutEntityType)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.PutEntityType}
*/
public static final class PutEntityType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutEntityType)
PutEntityTypeOrBuilder {
// Use PutEntityType.newBuilder() to construct.
private PutEntityType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutEntityType() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PutEntityType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutEntityType.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code session.Transaction.PutEntityType.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutEntityType.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutEntityType.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutEntityType.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req(this);
result.label_ = label_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutEntityType.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutEntityType.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutEntityType.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept entityType = 1;
*/
boolean hasEntityType();
/**
* optional .session.Concept entityType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getEntityType();
/**
* optional .session.Concept entityType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityTypeOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.PutEntityType.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutEntityType.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (entityType_ != null) {
subBuilder = entityType_.toBuilder();
}
entityType_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(entityType_);
entityType_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder.class);
}
public static final int ENTITYTYPE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept entityType_;
/**
* optional .session.Concept entityType = 1;
*/
public boolean hasEntityType() {
return entityType_ != null;
}
/**
* optional .session.Concept entityType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getEntityType() {
return entityType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entityType_;
}
/**
* optional .session.Concept entityType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityTypeOrBuilder() {
return getEntityType();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (entityType_ != null) {
output.writeMessage(1, getEntityType());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (entityType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEntityType());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) obj;
boolean result = true;
result = result && (hasEntityType() == other.hasEntityType());
if (hasEntityType()) {
result = result && getEntityType()
.equals(other.getEntityType());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasEntityType()) {
hash = (37 * hash) + ENTITYTYPE_FIELD_NUMBER;
hash = (53 * hash) + getEntityType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutEntityType.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutEntityType.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (entityTypeBuilder_ == null) {
entityType_ = null;
} else {
entityType_ = null;
entityTypeBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res(this);
if (entityTypeBuilder_ == null) {
result.entityType_ = entityType_;
} else {
result.entityType_ = entityTypeBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res.getDefaultInstance()) return this;
if (other.hasEntityType()) {
mergeEntityType(other.getEntityType());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept entityType_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> entityTypeBuilder_;
/**
* optional .session.Concept entityType = 1;
*/
public boolean hasEntityType() {
return entityTypeBuilder_ != null || entityType_ != null;
}
/**
* optional .session.Concept entityType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getEntityType() {
if (entityTypeBuilder_ == null) {
return entityType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entityType_;
} else {
return entityTypeBuilder_.getMessage();
}
}
/**
* optional .session.Concept entityType = 1;
*/
public Builder setEntityType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (entityTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
entityType_ = value;
onChanged();
} else {
entityTypeBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept entityType = 1;
*/
public Builder setEntityType(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (entityTypeBuilder_ == null) {
entityType_ = builderForValue.build();
onChanged();
} else {
entityTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept entityType = 1;
*/
public Builder mergeEntityType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (entityTypeBuilder_ == null) {
if (entityType_ != null) {
entityType_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(entityType_).mergeFrom(value).buildPartial();
} else {
entityType_ = value;
}
onChanged();
} else {
entityTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept entityType = 1;
*/
public Builder clearEntityType() {
if (entityTypeBuilder_ == null) {
entityType_ = null;
onChanged();
} else {
entityType_ = null;
entityTypeBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept entityType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getEntityTypeBuilder() {
onChanged();
return getEntityTypeFieldBuilder().getBuilder();
}
/**
* optional .session.Concept entityType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getEntityTypeOrBuilder() {
if (entityTypeBuilder_ != null) {
return entityTypeBuilder_.getMessageOrBuilder();
} else {
return entityType_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : entityType_;
}
}
/**
* optional .session.Concept entityType = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getEntityTypeFieldBuilder() {
if (entityTypeBuilder_ == null) {
entityTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getEntityType(),
getParentForChildren(),
isClean());
entityType_ = null;
}
return entityTypeBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutEntityType.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutEntityType.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutEntityType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutEntityType)
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutEntityType_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutEntityType)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutEntityType)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutEntityType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutEntityType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutEntityType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutAttributeTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutAttributeType)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.PutAttributeType}
*/
public static final class PutAttributeType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutAttributeType)
PutAttributeTypeOrBuilder {
// Use PutAttributeType.newBuilder() to construct.
private PutAttributeType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutAttributeType() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PutAttributeType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutAttributeType.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
int getDataTypeValue();
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType();
}
/**
* Protobuf type {@code session.Transaction.PutAttributeType.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutAttributeType.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
dataType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
dataType_ = rawValue;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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 DATATYPE_FIELD_NUMBER = 2;
private int dataType_;
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType() {
ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE result = ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.valueOf(dataType_);
return result == null ? ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
if (dataType_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.STRING.getNumber()) {
output.writeEnum(2, dataType_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
if (dataType_ != ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.STRING.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, dataType_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
result = result && dataType_ == other.dataType_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + dataType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutAttributeType.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutAttributeType.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
dataType_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req(this);
result.label_ = label_;
result.dataType_ = dataType_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (other.dataType_ != 0) {
setDataTypeValue(other.getDataTypeValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private int dataType_ = 0;
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public int getDataTypeValue() {
return dataType_;
}
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public Builder setDataTypeValue(int value) {
dataType_ = value;
onChanged();
return this;
}
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE getDataType() {
ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE result = ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.valueOf(dataType_);
return result == null ? ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE.UNRECOGNIZED : result;
}
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public Builder setDataType(ai.grakn.rpc.proto.ConceptProto.AttributeType.DATA_TYPE value) {
if (value == null) {
throw new NullPointerException();
}
dataType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .session.AttributeType.DATA_TYPE dataType = 2;
*/
public Builder clearDataType() {
dataType_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutAttributeType.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutAttributeType.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutAttributeType.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept attributeType = 1;
*/
boolean hasAttributeType();
/**
* optional .session.Concept attributeType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType();
/**
* optional .session.Concept attributeType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.PutAttributeType.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutAttributeType.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (attributeType_ != null) {
subBuilder = attributeType_.toBuilder();
}
attributeType_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attributeType_);
attributeType_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder.class);
}
public static final int ATTRIBUTETYPE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_;
/**
* optional .session.Concept attributeType = 1;
*/
public boolean hasAttributeType() {
return attributeType_ != null;
}
/**
* optional .session.Concept attributeType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() {
return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_;
}
/**
* optional .session.Concept attributeType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder() {
return getAttributeType();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (attributeType_ != null) {
output.writeMessage(1, getAttributeType());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (attributeType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAttributeType());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) obj;
boolean result = true;
result = result && (hasAttributeType() == other.hasAttributeType());
if (hasAttributeType()) {
result = result && getAttributeType()
.equals(other.getAttributeType());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasAttributeType()) {
hash = (37 * hash) + ATTRIBUTETYPE_FIELD_NUMBER;
hash = (53 * hash) + getAttributeType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutAttributeType.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutAttributeType.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (attributeTypeBuilder_ == null) {
attributeType_ = null;
} else {
attributeType_ = null;
attributeTypeBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res(this);
if (attributeTypeBuilder_ == null) {
result.attributeType_ = attributeType_;
} else {
result.attributeType_ = attributeTypeBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res.getDefaultInstance()) return this;
if (other.hasAttributeType()) {
mergeAttributeType(other.getAttributeType());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept attributeType_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> attributeTypeBuilder_;
/**
* optional .session.Concept attributeType = 1;
*/
public boolean hasAttributeType() {
return attributeTypeBuilder_ != null || attributeType_ != null;
}
/**
* optional .session.Concept attributeType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getAttributeType() {
if (attributeTypeBuilder_ == null) {
return attributeType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_;
} else {
return attributeTypeBuilder_.getMessage();
}
}
/**
* optional .session.Concept attributeType = 1;
*/
public Builder setAttributeType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (attributeTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attributeType_ = value;
onChanged();
} else {
attributeTypeBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept attributeType = 1;
*/
public Builder setAttributeType(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (attributeTypeBuilder_ == null) {
attributeType_ = builderForValue.build();
onChanged();
} else {
attributeTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept attributeType = 1;
*/
public Builder mergeAttributeType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (attributeTypeBuilder_ == null) {
if (attributeType_ != null) {
attributeType_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(attributeType_).mergeFrom(value).buildPartial();
} else {
attributeType_ = value;
}
onChanged();
} else {
attributeTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept attributeType = 1;
*/
public Builder clearAttributeType() {
if (attributeTypeBuilder_ == null) {
attributeType_ = null;
onChanged();
} else {
attributeType_ = null;
attributeTypeBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept attributeType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getAttributeTypeBuilder() {
onChanged();
return getAttributeTypeFieldBuilder().getBuilder();
}
/**
* optional .session.Concept attributeType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getAttributeTypeOrBuilder() {
if (attributeTypeBuilder_ != null) {
return attributeTypeBuilder_.getMessageOrBuilder();
} else {
return attributeType_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : attributeType_;
}
}
/**
* optional .session.Concept attributeType = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getAttributeTypeFieldBuilder() {
if (attributeTypeBuilder_ == null) {
attributeTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getAttributeType(),
getParentForChildren(),
isClean());
attributeType_ = null;
}
return attributeTypeBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutAttributeType.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutAttributeType.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutAttributeType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutAttributeType)
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutAttributeType_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutAttributeType)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutAttributeType)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutAttributeType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutAttributeType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutAttributeType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutRelationTypeOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRelationType)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.PutRelationType}
*/
public static final class PutRelationType extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRelationType)
PutRelationTypeOrBuilder {
// Use PutRelationType.newBuilder() to construct.
private PutRelationType(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutRelationType() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PutRelationType(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRelationType.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code session.Transaction.PutRelationType.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRelationType.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRelationType.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRelationType.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req(this);
result.label_ = label_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRelationType.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRelationType.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRelationType.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept relationType = 1;
*/
boolean hasRelationType();
/**
* optional .session.Concept relationType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getRelationType();
/**
* optional .session.Concept relationType = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationTypeOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.PutRelationType.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRelationType.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (relationType_ != null) {
subBuilder = relationType_.toBuilder();
}
relationType_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(relationType_);
relationType_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder.class);
}
public static final int RELATIONTYPE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept relationType_;
/**
* optional .session.Concept relationType = 1;
*/
public boolean hasRelationType() {
return relationType_ != null;
}
/**
* optional .session.Concept relationType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRelationType() {
return relationType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relationType_;
}
/**
* optional .session.Concept relationType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationTypeOrBuilder() {
return getRelationType();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (relationType_ != null) {
output.writeMessage(1, getRelationType());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (relationType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRelationType());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) obj;
boolean result = true;
result = result && (hasRelationType() == other.hasRelationType());
if (hasRelationType()) {
result = result && getRelationType()
.equals(other.getRelationType());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasRelationType()) {
hash = (37 * hash) + RELATIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + getRelationType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRelationType.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRelationType.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (relationTypeBuilder_ == null) {
relationType_ = null;
} else {
relationType_ = null;
relationTypeBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res(this);
if (relationTypeBuilder_ == null) {
result.relationType_ = relationType_;
} else {
result.relationType_ = relationTypeBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res.getDefaultInstance()) return this;
if (other.hasRelationType()) {
mergeRelationType(other.getRelationType());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept relationType_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> relationTypeBuilder_;
/**
* optional .session.Concept relationType = 1;
*/
public boolean hasRelationType() {
return relationTypeBuilder_ != null || relationType_ != null;
}
/**
* optional .session.Concept relationType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRelationType() {
if (relationTypeBuilder_ == null) {
return relationType_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relationType_;
} else {
return relationTypeBuilder_.getMessage();
}
}
/**
* optional .session.Concept relationType = 1;
*/
public Builder setRelationType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (relationTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relationType_ = value;
onChanged();
} else {
relationTypeBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept relationType = 1;
*/
public Builder setRelationType(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (relationTypeBuilder_ == null) {
relationType_ = builderForValue.build();
onChanged();
} else {
relationTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept relationType = 1;
*/
public Builder mergeRelationType(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (relationTypeBuilder_ == null) {
if (relationType_ != null) {
relationType_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(relationType_).mergeFrom(value).buildPartial();
} else {
relationType_ = value;
}
onChanged();
} else {
relationTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept relationType = 1;
*/
public Builder clearRelationType() {
if (relationTypeBuilder_ == null) {
relationType_ = null;
onChanged();
} else {
relationType_ = null;
relationTypeBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept relationType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRelationTypeBuilder() {
onChanged();
return getRelationTypeFieldBuilder().getBuilder();
}
/**
* optional .session.Concept relationType = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRelationTypeOrBuilder() {
if (relationTypeBuilder_ != null) {
return relationTypeBuilder_.getMessageOrBuilder();
} else {
return relationType_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : relationType_;
}
}
/**
* optional .session.Concept relationType = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getRelationTypeFieldBuilder() {
if (relationTypeBuilder_ == null) {
relationTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getRelationType(),
getParentForChildren(),
isClean());
relationType_ = null;
}
return relationTypeBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRelationType.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRelationType.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRelationType}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRelationType)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationTypeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRelationType_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRelationType)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRelationType)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutRelationType parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutRelationType(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRelationType getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutRoleOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRole)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.PutRole}
*/
public static final class PutRole extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRole)
PutRoleOrBuilder {
// Use PutRole.newBuilder() to construct.
private PutRole(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutRole() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PutRole(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRole.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code session.Transaction.PutRole.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRole.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRole.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRole.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req(this);
result.label_ = label_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRole.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRole.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRole.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept role = 1;
*/
boolean hasRole();
/**
* optional .session.Concept role = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getRole();
/**
* optional .session.Concept role = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.PutRole.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRole.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (role_ != null) {
subBuilder = role_.toBuilder();
}
role_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(role_);
role_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder.class);
}
public static final int ROLE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept role_;
/**
* optional .session.Concept role = 1;
*/
public boolean hasRole() {
return role_ != null;
}
/**
* optional .session.Concept role = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRole() {
return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_;
}
/**
* optional .session.Concept role = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder() {
return getRole();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (role_ != null) {
output.writeMessage(1, getRole());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (role_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRole());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) obj;
boolean result = true;
result = result && (hasRole() == other.hasRole());
if (hasRole()) {
result = result && getRole()
.equals(other.getRole());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRole.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRole.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (roleBuilder_ == null) {
role_ = null;
} else {
role_ = null;
roleBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res(this);
if (roleBuilder_ == null) {
result.role_ = role_;
} else {
result.role_ = roleBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res.getDefaultInstance()) return this;
if (other.hasRole()) {
mergeRole(other.getRole());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept role_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> roleBuilder_;
/**
* optional .session.Concept role = 1;
*/
public boolean hasRole() {
return roleBuilder_ != null || role_ != null;
}
/**
* optional .session.Concept role = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRole() {
if (roleBuilder_ == null) {
return role_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_;
} else {
return roleBuilder_.getMessage();
}
}
/**
* optional .session.Concept role = 1;
*/
public Builder setRole(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (roleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
role_ = value;
onChanged();
} else {
roleBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept role = 1;
*/
public Builder setRole(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (roleBuilder_ == null) {
role_ = builderForValue.build();
onChanged();
} else {
roleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept role = 1;
*/
public Builder mergeRole(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (roleBuilder_ == null) {
if (role_ != null) {
role_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(role_).mergeFrom(value).buildPartial();
} else {
role_ = value;
}
onChanged();
} else {
roleBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept role = 1;
*/
public Builder clearRole() {
if (roleBuilder_ == null) {
role_ = null;
onChanged();
} else {
role_ = null;
roleBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept role = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRoleBuilder() {
onChanged();
return getRoleFieldBuilder().getBuilder();
}
/**
* optional .session.Concept role = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRoleOrBuilder() {
if (roleBuilder_ != null) {
return roleBuilder_.getMessageOrBuilder();
} else {
return role_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : role_;
}
}
/**
* optional .session.Concept role = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getRoleFieldBuilder() {
if (roleBuilder_ == null) {
roleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getRole(),
getParentForChildren(),
isClean());
role_ = null;
}
return roleBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRole.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRole.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRole}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRole)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRoleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRole_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRole) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRole)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRole other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRole.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRole parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRole) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRole)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRole)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRole DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRole();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRole getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutRole parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutRole(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRole getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PutRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRule)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.PutRule}
*/
public static final class PutRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRule)
PutRuleOrBuilder {
// Use PutRule.newBuilder() to construct.
private PutRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PutRule() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private PutRule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRule.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string label = 1;
*/
java.lang.String getLabel();
/**
* optional string label = 1;
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
* optional string when = 2;
*/
java.lang.String getWhen();
/**
* optional string when = 2;
*/
com.google.protobuf.ByteString
getWhenBytes();
/**
* optional string then = 3;
*/
java.lang.String getThen();
/**
* optional string then = 3;
*/
com.google.protobuf.ByteString
getThenBytes();
}
/**
* Protobuf type {@code session.Transaction.PutRule.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRule.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
label_ = "";
when_ = "";
then_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
label_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
when_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
then_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder.class);
}
public static final int LABEL_FIELD_NUMBER = 1;
private volatile java.lang.Object label_;
/**
* optional 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();
label_ = s;
return s;
}
}
/**
* optional 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 WHEN_FIELD_NUMBER = 2;
private volatile java.lang.Object when_;
/**
* optional string when = 2;
*/
public java.lang.String getWhen() {
java.lang.Object ref = when_;
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();
when_ = s;
return s;
}
}
/**
* optional string when = 2;
*/
public com.google.protobuf.ByteString
getWhenBytes() {
java.lang.Object ref = when_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
when_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int THEN_FIELD_NUMBER = 3;
private volatile java.lang.Object then_;
/**
* optional string then = 3;
*/
public java.lang.String getThen() {
java.lang.Object ref = then_;
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();
then_ = s;
return s;
}
}
/**
* optional string then = 3;
*/
public com.google.protobuf.ByteString
getThenBytes() {
java.lang.Object ref = then_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
then_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getLabelBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, label_);
}
if (!getWhenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, when_);
}
if (!getThenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, then_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getLabelBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, label_);
}
if (!getWhenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, when_);
}
if (!getThenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, then_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) obj;
boolean result = true;
result = result && getLabel()
.equals(other.getLabel());
result = result && getWhen()
.equals(other.getWhen());
result = result && getThen()
.equals(other.getThen());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (37 * hash) + WHEN_FIELD_NUMBER;
hash = (53 * hash) + getWhen().hashCode();
hash = (37 * hash) + THEN_FIELD_NUMBER;
hash = (53 * hash) + getThen().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRule.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRule.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
label_ = "";
when_ = "";
then_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req(this);
result.label_ = label_;
result.when_ = when_;
result.then_ = then_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req.getDefaultInstance()) return this;
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
if (!other.getWhen().isEmpty()) {
when_ = other.when_;
onChanged();
}
if (!other.getThen().isEmpty()) {
then_ = other.then_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object label_ = "";
/**
* optional 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();
label_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional 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;
}
}
/**
* optional string label = 1;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder clearLabel() {
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 1;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
private java.lang.Object when_ = "";
/**
* optional string when = 2;
*/
public java.lang.String getWhen() {
java.lang.Object ref = when_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
when_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string when = 2;
*/
public com.google.protobuf.ByteString
getWhenBytes() {
java.lang.Object ref = when_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
when_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string when = 2;
*/
public Builder setWhen(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
when_ = value;
onChanged();
return this;
}
/**
* optional string when = 2;
*/
public Builder clearWhen() {
when_ = getDefaultInstance().getWhen();
onChanged();
return this;
}
/**
* optional string when = 2;
*/
public Builder setWhenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
when_ = value;
onChanged();
return this;
}
private java.lang.Object then_ = "";
/**
* optional string then = 3;
*/
public java.lang.String getThen() {
java.lang.Object ref = then_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
then_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string then = 3;
*/
public com.google.protobuf.ByteString
getThenBytes() {
java.lang.Object ref = then_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
then_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string then = 3;
*/
public Builder setThen(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
then_ = value;
onChanged();
return this;
}
/**
* optional string then = 3;
*/
public Builder clearThen() {
then_ = getDefaultInstance().getThen();
onChanged();
return this;
}
/**
* optional string then = 3;
*/
public Builder setThenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
then_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRule.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRule.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Req getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.PutRule.Res)
com.google.protobuf.MessageOrBuilder {
/**
* optional .session.Concept rule = 1;
*/
boolean hasRule();
/**
* optional .session.Concept rule = 1;
*/
ai.grakn.rpc.proto.ConceptProto.Concept getRule();
/**
* optional .session.Concept rule = 1;
*/
ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRuleOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.PutRule.Res}
*/
public static final class Res extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.PutRule.Res)
ResOrBuilder {
// Use Res.newBuilder() to construct.
private Res(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Res() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Res(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
ai.grakn.rpc.proto.ConceptProto.Concept.Builder subBuilder = null;
if (rule_ != null) {
subBuilder = rule_.toBuilder();
}
rule_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Concept.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(rule_);
rule_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder.class);
}
public static final int RULE_FIELD_NUMBER = 1;
private ai.grakn.rpc.proto.ConceptProto.Concept rule_;
/**
* optional .session.Concept rule = 1;
*/
public boolean hasRule() {
return rule_ != null;
}
/**
* optional .session.Concept rule = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRule() {
return rule_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : rule_;
}
/**
* optional .session.Concept rule = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRuleOrBuilder() {
return getRule();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (rule_ != null) {
output.writeMessage(1, getRule());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRule());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) obj;
boolean result = true;
result = result && (hasRule() == other.hasRule());
if (hasRule()) {
result = result && getRule()
.equals(other.getRule());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasRule()) {
hash = (37 * hash) + RULE_FIELD_NUMBER;
hash = (53 * hash) + getRule().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRule.Res}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRule.Res)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.ResOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Res_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Res_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (ruleBuilder_ == null) {
rule_ = null;
} else {
rule_ = null;
ruleBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_Res_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res(this);
if (ruleBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = ruleBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res.getDefaultInstance()) return this;
if (other.hasRule()) {
mergeRule(other.getRule());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Concept rule_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder> ruleBuilder_;
/**
* optional .session.Concept rule = 1;
*/
public boolean hasRule() {
return ruleBuilder_ != null || rule_ != null;
}
/**
* optional .session.Concept rule = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept getRule() {
if (ruleBuilder_ == null) {
return rule_ == null ? ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : rule_;
} else {
return ruleBuilder_.getMessage();
}
}
/**
* optional .session.Concept rule = 1;
*/
public Builder setRule(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (ruleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rule_ = value;
onChanged();
} else {
ruleBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Concept rule = 1;
*/
public Builder setRule(
ai.grakn.rpc.proto.ConceptProto.Concept.Builder builderForValue) {
if (ruleBuilder_ == null) {
rule_ = builderForValue.build();
onChanged();
} else {
ruleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Concept rule = 1;
*/
public Builder mergeRule(ai.grakn.rpc.proto.ConceptProto.Concept value) {
if (ruleBuilder_ == null) {
if (rule_ != null) {
rule_ =
ai.grakn.rpc.proto.ConceptProto.Concept.newBuilder(rule_).mergeFrom(value).buildPartial();
} else {
rule_ = value;
}
onChanged();
} else {
ruleBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Concept rule = 1;
*/
public Builder clearRule() {
if (ruleBuilder_ == null) {
rule_ = null;
onChanged();
} else {
rule_ = null;
ruleBuilder_ = null;
}
return this;
}
/**
* optional .session.Concept rule = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.Concept.Builder getRuleBuilder() {
onChanged();
return getRuleFieldBuilder().getBuilder();
}
/**
* optional .session.Concept rule = 1;
*/
public ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder getRuleOrBuilder() {
if (ruleBuilder_ != null) {
return ruleBuilder_.getMessageOrBuilder();
} else {
return rule_ == null ?
ai.grakn.rpc.proto.ConceptProto.Concept.getDefaultInstance() : rule_;
}
}
/**
* optional .session.Concept rule = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>
getRuleFieldBuilder() {
if (ruleBuilder_ == null) {
ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Concept, ai.grakn.rpc.proto.ConceptProto.Concept.Builder, ai.grakn.rpc.proto.ConceptProto.ConceptOrBuilder>(
getRule(),
getParentForChildren(),
isClean());
rule_ = null;
}
return ruleBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRule.Res)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRule.Res)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Res parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Res(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Res getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule other = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule) obj;
boolean result = true;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule 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 ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.PutRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.PutRule)
ai.grakn.rpc.proto.SessionProto.Transaction.PutRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.class, ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_PutRule_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule build() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule result = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule(this);
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.PutRule) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.PutRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.PutRule other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.PutRule.getDefaultInstance()) return this;
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.PutRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.PutRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.PutRule)
}
// @@protoc_insertion_point(class_scope:session.Transaction.PutRule)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.PutRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.PutRule();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.PutRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public PutRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PutRule(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.PutRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConceptMethodOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.ConceptMethod)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code session.Transaction.ConceptMethod}
*/
public static final class ConceptMethod extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.ConceptMethod)
ConceptMethodOrBuilder {
// Use ConceptMethod.newBuilder() to construct.
private ConceptMethod(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConceptMethod() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ConceptMethod(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.class, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Builder.class);
}
public interface ReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:session.Transaction.ConceptMethod.Req)
com.google.protobuf.MessageOrBuilder {
/**
* optional string id = 1;
*/
java.lang.String getId();
/**
* optional string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* optional .session.Method.Req method = 2;
*/
boolean hasMethod();
/**
* optional .session.Method.Req method = 2;
*/
ai.grakn.rpc.proto.ConceptProto.Method.Req getMethod();
/**
* optional .session.Method.Req method = 2;
*/
ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder getMethodOrBuilder();
}
/**
* Protobuf type {@code session.Transaction.ConceptMethod.Req}
*/
public static final class Req extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:session.Transaction.ConceptMethod.Req)
ReqOrBuilder {
// Use Req.newBuilder() to construct.
private Req(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Req() {
id_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Req(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder subBuilder = null;
if (method_ != null) {
subBuilder = method_.toBuilder();
}
method_ = input.readMessage(ai.grakn.rpc.proto.ConceptProto.Method.Req.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(method_);
method_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METHOD_FIELD_NUMBER = 2;
private ai.grakn.rpc.proto.ConceptProto.Method.Req method_;
/**
* optional .session.Method.Req method = 2;
*/
public boolean hasMethod() {
return method_ != null;
}
/**
* optional .session.Method.Req method = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Req getMethod() {
return method_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance() : method_;
}
/**
* optional .session.Method.Req method = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder getMethodOrBuilder() {
return getMethod();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (method_ != null) {
output.writeMessage(2, getMethod());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (method_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMethod());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req)) {
return super.equals(obj);
}
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req other = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) obj;
boolean result = true;
result = result && getId()
.equals(other.getId());
result = result && (hasMethod() == other.hasMethod());
if (hasMethod()) {
result = result && getMethod()
.equals(other.getMethod());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (hasMethod()) {
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req 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 ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 session.Transaction.ConceptMethod.Req}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:session.Transaction.ConceptMethod.Req)
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.ReqOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Req_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Req_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.class, ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.Builder.class);
}
// Construct using ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
id_ = "";
if (methodBuilder_ == null) {
method_ = null;
} else {
method_ = null;
methodBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.grakn.rpc.proto.SessionProto.internal_static_session_Transaction_ConceptMethod_Req_descriptor;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getDefaultInstanceForType() {
return ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance();
}
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req build() {
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req buildPartial() {
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req result = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req(this);
result.id_ = id_;
if (methodBuilder_ == null) {
result.method_ = method_;
} else {
result.method_ = methodBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) {
return mergeFrom((ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req other) {
if (other == ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasMethod()) {
mergeMethod(other.getMethod());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
* optional string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* optional string id = 1;
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private ai.grakn.rpc.proto.ConceptProto.Method.Req method_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Req, ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder> methodBuilder_;
/**
* optional .session.Method.Req method = 2;
*/
public boolean hasMethod() {
return methodBuilder_ != null || method_ != null;
}
/**
* optional .session.Method.Req method = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Req getMethod() {
if (methodBuilder_ == null) {
return method_ == null ? ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance() : method_;
} else {
return methodBuilder_.getMessage();
}
}
/**
* optional .session.Method.Req method = 2;
*/
public Builder setMethod(ai.grakn.rpc.proto.ConceptProto.Method.Req value) {
if (methodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
method_ = value;
onChanged();
} else {
methodBuilder_.setMessage(value);
}
return this;
}
/**
* optional .session.Method.Req method = 2;
*/
public Builder setMethod(
ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder builderForValue) {
if (methodBuilder_ == null) {
method_ = builderForValue.build();
onChanged();
} else {
methodBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* optional .session.Method.Req method = 2;
*/
public Builder mergeMethod(ai.grakn.rpc.proto.ConceptProto.Method.Req value) {
if (methodBuilder_ == null) {
if (method_ != null) {
method_ =
ai.grakn.rpc.proto.ConceptProto.Method.Req.newBuilder(method_).mergeFrom(value).buildPartial();
} else {
method_ = value;
}
onChanged();
} else {
methodBuilder_.mergeFrom(value);
}
return this;
}
/**
* optional .session.Method.Req method = 2;
*/
public Builder clearMethod() {
if (methodBuilder_ == null) {
method_ = null;
onChanged();
} else {
method_ = null;
methodBuilder_ = null;
}
return this;
}
/**
* optional .session.Method.Req method = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder getMethodBuilder() {
onChanged();
return getMethodFieldBuilder().getBuilder();
}
/**
* optional .session.Method.Req method = 2;
*/
public ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder getMethodOrBuilder() {
if (methodBuilder_ != null) {
return methodBuilder_.getMessageOrBuilder();
} else {
return method_ == null ?
ai.grakn.rpc.proto.ConceptProto.Method.Req.getDefaultInstance() : method_;
}
}
/**
* optional .session.Method.Req method = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Req, ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder>
getMethodFieldBuilder() {
if (methodBuilder_ == null) {
methodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.grakn.rpc.proto.ConceptProto.Method.Req, ai.grakn.rpc.proto.ConceptProto.Method.Req.Builder, ai.grakn.rpc.proto.ConceptProto.Method.ReqOrBuilder>(
getMethod(),
getParentForChildren(),
isClean());
method_ = null;
}
return methodBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:session.Transaction.ConceptMethod.Req)
}
// @@protoc_insertion_point(class_scope:session.Transaction.ConceptMethod.Req)
private static final ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req();
}
public static ai.grakn.rpc.proto.SessionProto.Transaction.ConceptMethod.Req getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Req parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Req(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser