Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* 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)
*
* 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)
*
* 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)
*
* 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